/* ═══════════════════════════════════════════════
   BONGDA.CSS — kiểu kqbd.mobi
   ═══════════════════════════════════════════════ */

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    background: #e8eaed;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #c0392b; }
table { border-collapse: collapse; width: 100%; }
ul,ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Site wrap ──────────────────────────────── */
.site-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ─── Header / menu chính ────────────────────── */
.site-header {
    background: #1a1a2e;
}

.topbar {
    background: #111;
    border-bottom: 1px solid #2a2a2a;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.topbar-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.topbar-menu li a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    color: #bbb;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid #2a2a2a;
}

.topbar-menu li a:hover,
.topbar-menu li a.active {
    background: #c0392b;
    color: #fff;
}

.topbar-menu li.hide-xs { display: block; }

.topbar-search {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin-left: auto;
    height: 24px;
}

.topbar-search input[type=search] {
    width: 148px;
    border: 0;
    background: #2a2a2a;
    color: #eee;
    font: inherit;
    font-size: 14px;
    padding: 0 8px;
    outline: none;
}

.topbar-search input[type=search]::placeholder { color: #888; }
.topbar-search input[type=search]::-webkit-search-decoration,
.topbar-search input[type=search]::-webkit-search-cancel-button { display: none; }

.topbar-search button {
    width: 28px;
    border: 0;
    background: #c0392b;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-search button:hover { background: #e74c3c; }

.live-dot {
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, .55);
    animation: live-pulse 1.4s ease-out infinite;
}

@keyframes live-pulse {
    70% { box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.brand-bar {
    background: #1a1a2e;
    padding: 10px 0 8px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.8px;
    line-height: 1;
}

.brand:hover { color: #fff; }
.brand span { color: #e74c3c; }

.brand--logo {
    align-items: center;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(240px, 70vw);
    object-fit: contain;
}

.country-bar {
    background: #151528;
    border-bottom: 3px solid #c0392b;
}

.country-bar-inner {
    display: flex;
    align-items: stretch;
    min-height: 42px;
}

.country-menu {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
}

.country-menu a {
    flex: 0 0 auto;
    color: #ddd;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15px;
    padding: 0 8px;
    line-height: 42px;
    white-space: nowrap;
}

.country-menu a:hover,
.country-menu a.active {
    background: #c0392b;
    color: #fff;
}

.country-more {
    position: relative;
    flex-shrink: 0;
    background: #c0392b;
}

.country-more summary {
    list-style: none;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 42px;
    padding: 0 14px;
    cursor: pointer;
    user-select: none;
}

.country-more summary::-webkit-details-marker { display: none; }
.country-more summary::after { content: " ▾"; font-size: 13px; }
.country-more summary:hover { color: #fff; }

.country-more-drop {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 40;
}

.country-more-drop a {
    display: block;
    padding: 9px 14px;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #f3f3f3;
}

.country-more-drop a:last-child { border-bottom: 0; }
.country-more-drop a:hover,
.country-more-drop a.active {
    background: #c0392b;
    color: #fff;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.crumb a { color: #c0392b; font-weight: 700; }
.crumb-flag { width: 18px; height: 12px; object-fit: cover; }

.country-hero {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.country-hero h1 { font-size: 18px; margin-bottom: 4px; color: #c0392b; }
.country-hero p { color: #666; font-size: 14px; }

.country-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.country-tabs a {
    border: 1px solid #c0392b;
    color: #c0392b;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    background: #fff;
}
.country-tabs a:hover,
.country-tabs a.active {
    background: #c0392b;
    color: #fff;
}

.country-league-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.country-league-chips a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.country-league-chips a img { width: 14px; height: 14px; object-fit: contain; }
.country-league-chips a:hover { border-color: #c0392b; color: #c0392b; }
.country-league-chips a.active { background: #c0392b; border-color: #c0392b; color: #fff; }

.country-league-list { padding: 0; }
.country-league-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}
.country-league-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    flex: 1;
}
.country-league-actions { display: flex; gap: 8px; font-size: 13px; }
.country-league-actions a { color: #c0392b; }

.standings-table { font-size: 14px; }
.standings-table th,
.standings-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.standings-table th { background: #f7f7f7; font-size: 13px; color: #666; }

/* ─── Layout: 2 cột ──────────────────────────── */
.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 10px;
    align-items: start;
}

.layout-main { min-width: 0; }
.layout-sidebar {
    min-width: 0;
    width: 350px;
}
.mob-below-main { display: none; }

.match-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 7px 8px;
}

.match-filter a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    background: #f8f8f8;
    color: #333;
}

.match-filter a:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.match-filter a.active {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.match-filter a.is-live.active {
    background: #c0392b;
}

.match-filter-date {
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background: #fff;
    color: #333;
    height: 32px;
}

.match-filter-count {
    min-width: 18px;
    padding: 0 5px;
    border-radius: 8px;
    background: rgba(0,0,0,.12);
    font-size: 13px;
    line-height: 16px;
    text-align: center;
}

.match-filter a.active .match-filter-count,
.match-filter a:hover .match-filter-count {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ─── League block ───────────────────────────── */
.day-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 14px 0 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}
.day-heading:first-of-type { margin-top: 0; }
.day-heading-date { font-size: 13px; font-weight: 500; color: #777; }

.league-block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.league-header {
    background: #1a1a2e;
    color: #fff;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.league-header .league-title,
.league-header span.league-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 0;
    word-break: break-word;
}

.league-country {
    color: #aaa;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
}

.league-header .league-title:hover { color: #f1c40f; }

.league-header .league-links {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.league-header .league-links a {
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 2px;
    color: #aaa;
    background: rgba(255,255,255,.07);
}

.league-header .league-links a:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ─── Logo helpers ───────────────────────────── */
.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-logo-lg {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
}

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

.sb-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.sb-league-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 2px;
}

/* ─── Match row ──────────────────────────────── */
.match-row {
    display: grid;
    grid-template-columns: 58px 1fr 66px 1fr auto;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    min-height: 40px;
    cursor: pointer;
    transition: background .1s;
    color: inherit;
    text-decoration: none;
}

.match-row:last-child { border-bottom: none; }
.match-row:hover { background: #f5f7fa; }
.match-row.live-row { background: #fff8f8; }
.match-row.live-row:hover { background: #fff2f2; }

.match-row .col-time {
    padding: 5px 4px 5px 8px;
    text-align: center;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    line-height: 1.35;
}

.match-row .col-time .col-time-date {
    font-size: 11px;
    color: #aaa;
    display: block;
}

.match-row .col-home {
    padding: 6px 4px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: 14px;
    min-width: 0;
}

.match-row .col-home .team-name-text {
    text-align: right;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-width: 0;
}

.match-row .col-score {
    padding: 4px 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 1px;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.match-row .col-score .vs {
    font-size: 13px;
    color: #bbb;
    font-weight: 400;
    letter-spacing: 0;
}

.match-row .col-away {
    padding: 6px 4px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-size: 14px;
    min-width: 0;
}

.match-row .col-away .team-name-text {
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-width: 0;
}

.match-row .col-round {
    padding: 5px 8px 5px 4px;
    text-align: right;
    font-size: 12px;
    color: #aaa;
    white-space: normal;
    word-break: break-word;
    max-width: 80px;
}

/* Live badge */
.live-min {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    animation: live-pulse 1.6s ease-in-out infinite;
}

.halftime-badge {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.finished-score { color: #555; }

@keyframes live-pulse {
    0%,100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ─── Sidebar ────────────────────────────────── */
.sb-block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.sb-header {
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 10px;
    border-bottom: 1px solid #2a3a5a;
}

/* Trận nổi bật */
.sb-match {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .1s;
}

.sb-match:last-child { border-bottom: none; }
.sb-match:hover { background: #fafafa; }

.sb-match-league {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    flex-wrap: wrap;
}

.sb-nt {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: #1a6b3c;
    border-radius: 2px;
    padding: 1px 4px;
    letter-spacing: .3px;
}

.sb-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4px;
}

.sb-team {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.sb-team span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-team-away {
    justify-content: flex-end;
}

.sb-score {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    padding: 0 4px;
    white-space: nowrap;
}

.sb-vs {
    font-size: 12px;
    font-weight: 500;
    color: #bbb;
}

.sb-live {
    color: #e74c3c;
    animation: live-pulse 1.6s ease-in-out infinite;
}

.sb-match-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.sb-st {
    font-weight: 700;
}

.sb-st--live {
    color: #e74c3c;
}

.sb-st--ht {
    color: #d35400;
}

.sb-st--fin {
    color: #666;
}

.sb-st--post {
    color: #888;
}

.sb-st--soon {
    color: #1a1a2e;
}

.sb-st-time {
    color: #999;
    font-weight: 500;
}

.sb-st-sep {
    color: #ccc;
    font-weight: 400;
}

/* Danh sách giải — 2 cột trong cùng 1 block (kiểu kqbd) */
.sb-league-list {
    padding: 4px 2px;
    list-style: none;
}

.sb-league-list-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4px;
    row-gap: 0;
}

.sb-league-list li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 5px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: background .1s;
    min-width: 0;
}

.sb-league-list li a:hover {
    background: #f5f7fa;
    color: #c0392b;
}

.sb-league-name {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.sb-league-list li a .sb-hot {
    margin-left: auto;
    flex-shrink: 0;
}

.sb-hot {
    font-size: 10px;
    font-weight: 800;
    color: #c0392b;
    background: #fff0f0;
    border: 1px solid #c0392b;
    border-radius: 2px;
    padding: 1px 4px;
}

/* ─── Sidebar article list ───────────────────── */
.sb-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-article-list li {
    border-bottom: 1px solid #f0f0f0;
}

.sb-article-list li:last-child {
    border-bottom: none;
}

.sb-article-link {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 10px;
    color: #222;
    text-decoration: none;
    transition: background .1s;
}

.sb-article-link:hover {
    background: #fafafa;
    color: #0057b7;
}

.sb-article-type {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    border-radius: 2px;
    padding: 2px 4px;
    margin-top: 1px;
    line-height: 1.2;
}

.sb-article-type--news {
    background: #e8f4fd;
    color: #0066cc;
    border: 1px solid #b3d7f7;
}

.sb-article-type--preview {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.sb-article-title {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Match detail ───────────────────────────── */
.match-detail-header {
    background: #1a1a2e;
    color: #fff;
    border-radius: 4px;
    padding: 18px 16px;
    margin-bottom: 10px;
}

.match-detail-header .league-link {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 14px;
}

.match-detail-header .league-link a:hover { color: #f1c40f; }

.score-board {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 8px;
    align-items: center;
}

.score-board .team-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    text-align: center;
    gap: 6px;
}
.score-board .team-name .team-logo-lg { margin: 0; }

.score-board .team-name a { color: inherit; }
.score-board .team-name a:hover { color: #f1c40f; }
.score-board .score-center { text-align: center; }

.score-board .score-num {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: 2px;
}

.score-board .score-status {
    font-size: 14px;
    color: #aaa;
    margin-top: 4px;
}

.score-board .score-status .live { color: #e74c3c; font-weight: 700; }
.score-board .score-ht { font-size: 13px; color: #777; margin-top: 3px; }

.blv-chip {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: #c0392b;
    border-radius: 2px;
    padding: 1px 4px;
    line-height: 1.3;
}

.blv-chip--audio {
    background: #1a7f4b;
}

.blv-chip--anim {
    background: #1e4f8a;
}

.blv-player {
    background: #111218;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.blv-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    background: repeating-linear-gradient(
        -45deg,
        #16161f,
        #16161f 8px,
        #1a1a24 8px,
        #1a1a24 16px
    );
    color: #555;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blv-ad-slot--top {
    border-bottom: 1px solid #222;
}

.blv-ad-slot--bottom {
    border-top: 1px solid #222;
}

.blv-player-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 10px 12px 6px;
}

.blv-player-title {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.blv-player-note {
    color: #888;
    font-size: 11px;
}

.blv-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    overflow-x: auto;
    border-top: 1px solid #222;
    background: #0d0d14;
}

.blv-tabs--single {
    padding: 8px 12px;
}

.blv-tab.is-label {
    cursor: default;
    pointer-events: none;
}

.blv-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #333;
    background: #1c1c28;
    color: #ddd;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.blv-tab:hover { border-color: #c0392b; color: #fff; }
.blv-tab.is-active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.blv-tab-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.14);
    color: inherit;
}

.blv-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.blv-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0a0a12;
}

.blv-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blv-frame,
.blv-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    z-index: 2;
}

.blv-video {
    object-fit: contain;
}

.blv-audio {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 520px);
    z-index: 2;
}

.blv-link-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 12px;
    background: #12121a;
    border-top: 1px solid #222;
    font-size: 12px;
}

.blv-link-bar a,
.blv-link-bar button {
    appearance: none;
    border: 1px solid #444;
    background: #1c1c28;
    color: #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.blv-link-bar a:hover,
.blv-link-bar button:hover {
    border-color: #c0392b;
    color: #fff;
}

.blv-external {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    text-align: center;
    color: #ddd;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(192,57,43,.22), transparent 55%),
        #0d0d0d;
}

.blv-external-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f5c6c0;
}

.blv-external-hint {
    margin: 0;
    max-width: 36rem;
    font-size: 14px;
    line-height: 1.45;
    color: #ccc;
}

.blv-external-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.blv-external-open,
.blv-external-copy {
    appearance: none;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.blv-external-open {
    background: #c0392b;
    color: #fff;
}

.blv-external-copy {
    background: #2a2a2a;
    color: #eee;
    border: 1px solid #555;
}

.blv-external-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
    max-width: 32rem;
}

.blv-frame-wrap--compact {
    aspect-ratio: auto;
    height: 120px;
}

.blv-frame-wrap--under-sim {
    border-top: 1px solid #222;
}

.blv-frame--audio {
    position: relative;
    height: 120px;
}

.blv-waiting {
    padding: 24px 16px 16px;
    text-align: center;
    color: #ccc;
}

.blv-waiting--poster {
    position: relative;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    background: #0a0a12;
}

.blv-waiting-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blv-waiting--poster .blv-waiting-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.62) 100%);
}

.blv-waiting-status {
    font-size: 13px;
    font-weight: 800;
    color: #f39c12;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blv-waiting--poster .blv-waiting-status {
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.blv-waiting-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.blv-waiting--poster .blv-waiting-teams {
    margin-bottom: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.blv-waiting-teams strong {
    color: #888;
    font-size: 13px;
}

.blv-waiting-msg {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.blv-waiting--poster .blv-waiting-msg {
    color: #ddd;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
}


.blv-sim-wrap {
    padding: 8px 10px 12px;
    background: #0d0d14;
}

.blv-sim-wrap .sim {
    margin-bottom: 0;
}

.sim--compact .sim-pitch {
    max-height: 220px;
}

.sim--compact .sim-controls {
    margin-top: 6px;
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 2px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.detail-tabs .tab-btn {
    flex: 1;
    padding: 9px 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #f8f8f8;
    border: none;
    border-right: 1px solid #e5e5e5;
    cursor: pointer;
    transition: background .12s;
}

.detail-tabs .tab-btn:last-child { border-right: none; }
.detail-tabs .tab-btn:hover { background: #eee; color: #c0392b; }
.detail-tabs .tab-btn.active { background: #1a1a2e; color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.match-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.match-section { margin-bottom: 0; }

.match-preview-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.match-preview-link {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: #1a1a2e;
    text-decoration: none;
}
.match-preview-link:hover { color: #c0392b; }
.match-preview-link-mark {
    color: #c0392b;
    font-weight: 700;
    margin-right: 4px;
}

.match-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.match-info-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
}
.match-info-label {
    flex-shrink: 0;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}
.match-info-value {
    color: #1a1a2e;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-info-value a { color: #c0392b; }
.match-info-articles {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.match-info-articles-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.match-info-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.match-info-articles-list li {
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.match-info-articles-list a { color: #c0392b; }
.match-info-articles-meta { color: #bbb; font-size: 13px; }

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

/* ─── Section card ───────────────────────────── */
.section-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.section-card-header {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.section-card-body { padding: 12px; }

/* ─── Odds ───────────────────────────────────── */
.odds-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.odds-cell {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 10px 8px;
    text-align: center;
}

.odds-cell .odds-label { font-size: 13px; color: #888; margin-bottom: 6px; }
.odds-cell .odds-line { font-size: 13px; color: #555; margin-bottom: 4px; }
.odds-cell .odds-val { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.odds-cell .odds-val.home { color: #2980b9; }
.odds-cell .odds-val.draw { color: #7f8c8d; }
.odds-cell .odds-val.away { color: #c0392b; }

.odds-board {
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #fff;
}
.odds-board-brand {
    padding: 8px 10px;
    font-weight: 800;
    font-size: 16px;
    color: #126e51;
    letter-spacing: .2px;
    border-bottom: 1px solid #e8ecef;
}
.odds-board-desktop { display: block; }
.odds-board-mobile { display: none; }

.odds-board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}
.odds-board-table th,
.odds-board-table td {
    border: 1px solid #e8ecef;
    padding: 5px 3px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}
.odds-board-table thead th {
    background: #f7f9fb;
    font-weight: 700;
    color: #333;
    font-size: 10px;
}
.odds-board-subhead th {
    font-size: 10px;
    font-weight: 600;
    color: #666;
}
.odds-board-phase-col {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
}
.odds-board-phase {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding: 4px 2px !important;
    text-align: center !important;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.15;
    color: #444;
    white-space: normal;
    word-break: break-word;
}
.odds-board-group {
    border-bottom: 2px solid #d9dee3;
}
.odds-board-row--opening { background: #fafcff; }
.odds-board-row--prematch { background: #fff; }
.odds-board-row--live { background: #f6fff8; }
.odds-board-line .line {
    display: block;
    color: #e67e22;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.15;
}
.odds-board-line .odd {
    display: block;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 13px;
}
.odds-board-line-val {
    color: #e67e22;
    font-weight: 700;
    font-size: 10px;
}
.odds-live-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
    margin: 0 auto 2px;
}

/* Mobile: thẻ thay bảng */
.odds-board-mobile { gap: 8px; }
.odds-board-card {
    border: 1px solid #e8ecef;
    border-radius: 4px;
    overflow: hidden;
}
.odds-board-card-head {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f7f9fb;
    border-bottom: 1px solid #e8ecef;
    display: flex;
    align-items: center;
    gap: 6px;
}
.odds-board-card-head .odds-live-dot {
    display: inline-block;
    margin: 0;
    flex-shrink: 0;
}
.odds-board-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e8ecef;
}
.odds-board-block {
    background: #fff;
    padding: 8px 10px;
}
.odds-board-block-title {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.odds-board-block-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}
.odds-board-block-row--2 span { flex: 1; }
.odds-board-block-row em {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    margin-right: 3px;
}
.odds-board-block-row em.line {
    color: #e67e22;
    font-weight: 700;
}
.odds-board-card--opening .odds-board-card-head { background: #fafcff; }
.odds-board-card--live .odds-board-card-head { background: #f6fff8; }

@media (max-width: 720px) {
    .odds-board-desktop { display: none; }
    .odds-board-mobile { display: flex; flex-direction: column; }
}

@media (max-width: 420px) {
    .odds-board-card-grid { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 960px) {
    .odds-board-desktop { overflow-x: auto; }
    .odds-board-table { min-width: 560px; }
}

/* ─── Events ─────────────────────────────────── */
.events-list { list-style: none; margin-top: 12px; }

.sim { margin-bottom: 12px; }
.sim-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
}
.sim-clock { font-weight: 800; color: #c0392b; min-width: 42px; }
.sim-score { font-weight: 800; color: #1a1a2e; font-size: 16px; }
.sim-phase { margin-left: auto; font-size: 13px; color: #888; }
.sim-pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 2.15 / 1;
    border-radius: 6px;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, #2f9e3a 0 12.5%, #278833 12.5% 25%);
}
.sim-arrow {
    position: absolute;
    top: 8px;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.sim-arrow-home { left: 10px; }
.sim-arrow-away { right: 10px; }
.sim-ball {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #ddd 40%, #333 41%, #fff 70%);
    box-shadow: 0 1px 4px rgba(0,0,0,.45);
    z-index: 2;
}
.sim-flash {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: none;
    z-index: 3;
}
.sim-flash.is-on { animation: simFlash .55s ease; }
@keyframes simFlash {
    0% { background: rgba(255,255,255,.35); }
    100% { background: rgba(255,255,255,0); }
}
.sim-popup {
    position: absolute;
    transform: translate(-50%, -120%);
    display: none;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(26,26,46,.88);
    color: #fff;
    font-size: 13px;
    text-align: center;
    z-index: 4;
    pointer-events: none;
}
.sim-popup.is-on { display: flex; }
.sim-popup-icon { font-size: 16px; line-height: 1.1; }
.sim-popup small { color: #ccc; font-size: 10px; }
.sim-ticker {
    margin-top: 6px;
    font-size: 14px;
    color: #333;
    min-height: 18px;
}
.sim-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.sim-play {
    width: 32px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.sim-seek { flex: 1; }
.sim-end { font-size: 13px; color: #888; min-width: 28px; }

.event-row {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.event-row:last-child { border-bottom: none; }
.event-side { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.event-home { text-align: right; align-items: flex-end; }
.event-away { text-align: left; align-items: flex-start; }
.event-mid { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.event-min { font-weight: 700; color: #666; font-size: 13px; }
.event-icon { width: 18px; text-align: center; font-size: 14px; }
.event-player { font-weight: 600; }
.event-type { font-size: 13px; color: #999; }

.league-links-inline { margin-left: 8px; font-size: 13px; }
.league-links-inline a { color: #c0392b; margin-right: 6px; }
.lineup-coach { font-size: 13px; color: #888; margin: 0 0 8px; }
.lineup-label { font-size: 13px; font-weight: 700; color: #888; margin: 8px 0 4px; text-transform: uppercase; }
.lineup-pos { font-size: 10px; color: #aaa; margin-left: 4px; }
.lineup-list.is-sub li { color: #666; }
.bxh-table tr.is-focus td { background: #fff6f5; font-weight: 700; }
a.h2h-row { color: inherit; text-decoration: none; }
a.h2h-row:hover { background: #f7f7f7; }

/* ─── H2H ────────────────────────────────────── */
.h2h-row {
    display: grid;
    grid-template-columns: 58px 1fr 52px 1fr;
    gap: 4px;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.h2h-row:last-child { border-bottom: none; }
.h2h-date { color: #bbb; font-size: 13px; }
.h2h-home { text-align: right; }
.h2h-score { text-align: center; font-weight: 700; font-size: 14px; color: #1a1a2e; }
.h2h-away { text-align: left; }

/* ─── Lineup ─────────────────────────────────── */
.pitch-wrap { margin-bottom: 14px; }
.pitch-legend {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.pitch-legend em { font-style: normal; font-weight: 400; color: #888; margin: 0 4px; }
.pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 2.15 / 1;
    border-radius: 6px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            90deg,
            #2f9e3a 0 12.5%,
            #278833 12.5% 25%
        );
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.pitch-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.pitch-player {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    z-index: 1;
}
.pitch-shirt {
    width: 30px;
    height: 34px;
    border-radius: 5px 5px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--num, #fff);
    background:
        repeating-linear-gradient(
            90deg,
            var(--shirt, #edf0f3) 0 4px,
            color-mix(in srgb, var(--shirt, #edf0f3) 82%, #000) 4px 6px
        );
    border: 1px solid var(--border, #ccc);
    box-shadow: 0 1px 3px rgba(0,0,0,.35);
    clip-path: polygon(18% 0, 82% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.pitch-note {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
    background: rgba(0,0,0,.35);
    border-radius: 3px;
    padding: 3px 8px;
}
.pitch-name {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.8);
    white-space: nowrap;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.lineup-team { min-width: 0; }
.lineup-team-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
.lineup-col { min-width: 0; }
.lineup-col-title {
    font-size: 14px; font-weight: 700; color: #1a1a2e;
    padding-bottom: 4px; border-bottom: 2px solid #1a1a2e; margin-bottom: 6px;
}

.lineup-list li {
    display: flex; gap: 6px; align-items: center;
    padding: 3px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px;
}

.lineup-num { min-width: 20px; text-align: center; font-weight: 700; color: #aaa; font-size: 13px; }

/* ─── BXH ────────────────────────────────────── */
.bxh-table th {
    background: #1a1a2e; color: #ccc; font-size: 13px; font-weight: 600;
    padding: 7px 6px; text-align: center;
}

.bxh-table th:nth-child(2) { text-align: left; }
.bxh-table td { padding: 6px; font-size: 14px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.bxh-table td:nth-child(2) { text-align: left; font-weight: 500; }
.bxh-table .bxh-team-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}
.bxh-table .bxh-team-link:hover span { text-decoration: underline; }
.bxh-table tr:last-child td { border-bottom: none; }
.bxh-table tr:hover td { background: #fafafa; }
.bxh-table .pts { font-weight: 700; color: #1a1a2e; }

/* ─── Articles ───────────────────────────────── */
.article-card {
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 12px; margin-bottom: 8px;
}

.article-card h2 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.article-card h2 a:hover { color: #c0392b; }
.article-card .meta { font-size: 13px; color: #999; margin-bottom: 6px; }
.article-card .excerpt { font-size: 14px; color: #555; line-height: 1.5; }
.article-card.has-thumb { display: flex; gap: 12px; align-items: flex-start; }
.article-card-text { flex: 1; min-width: 0; }
.article-thumb { flex: 0 0 180px; display: block; border-radius: 4px; overflow: hidden; background: #f2f2f2; }
.article-thumb img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; height: auto; }
@media (max-width: 600px) {
    .article-thumb { flex-basis: 110px; }
    .article-card .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

.article-cover { margin: 0 0 14px; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; }
.article-body figure.image { margin: 12px auto; text-align: center; }
.article-body figure.image figcaption { font-size: 12px; color: #777; margin-top: 4px; }
.article-body .image-style-side { float: right; max-width: 50%; margin: 0 0 10px 14px; }

/* ─── Article body + embeds ──────────────────── */
.article-body { font-size: 14px; line-height: 1.75; color: #333; }
.article-body h2 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #1a1a2e; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 10px; }
.article-body a { color: #c0392b; }
.article-body img { max-width: 100%; height: auto; }
.article-body ul, .article-body ol { margin: 0 0 10px 22px; }
.article-body li { margin: 0 0 4px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; }
.article-body th, .article-body td { border: 1px solid #e8e8e8; padding: 6px 8px; }
.article-body th { background: #f4f4f6; }
.article-body blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #c0392b; color: #555; background: #fafafa; }
.article-body figure { margin: 12px 0; }
.article-body figcaption { font-size: 12px; color: #888; }

/* CMS content slots (league / country / team / match) */
.cms-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.75;
    color: #333;
}
.cms-content--footer {
    margin-top: 10px;
    margin-bottom: 0;
    background: #111;
    border: 0;
    border-radius: 0;
    padding: 20px 14px;
    color: #e5e5e5;
    text-align: center;
}

.cms-content--footer h2,
.cms-content--footer h3 { color: #fff; }

.cms-content--footer p { color: #e5e5e5; text-align: center; }
.cms-content--footer a { color: #ff6b6b; }
.cms-content--footer ul,
.cms-content--footer ol { margin-left: auto; margin-right: auto; padding-left: 22px; }
.cms-content--footer li { text-align: center; }

.cms-content--footer blockquote {
    background: rgba(255,255,255,.06);
    border-left-color: #c0392b;
    color: #e5e5e5;
}
.cms-content h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 18px 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #1a1a2e;
}
.cms-content h2:first-child { margin-top: 0; }
.cms-content h3 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.cms-content p { margin: 0 0 10px; }
.cms-content a { color: #c0392b; }
.cms-content img { max-width: 100%; height: auto; }
.cms-content ul, .cms-content ol { margin: 0 0 10px 22px; }
.cms-content li { margin: 0 0 4px; }
.cms-content table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; }
.cms-content th, .cms-content td { border: 1px solid #e8e8e8; padding: 6px 8px; }
.cms-content th { background: #f4f4f6; }
.cms-content blockquote {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-left: 3px solid #c0392b;
    color: #555;
    background: #fafafa;
}

.related-articles {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}
.related-articles-head {
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
}
.related-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.related-articles-list li {
    border-bottom: 1px solid #eee;
}
.related-articles-list li:last-child { border-bottom: 0; }
.related-articles-list a {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    color: #222;
    font-size: 13px;
}
.related-articles-list a:hover {
    background: #fff8f6;
    color: #c0392b;
}
.related-articles-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #c0392b;
    background: #fdecea;
    padding: 2px 6px;
    border-radius: 3px;
    text-align: center;
}
.related-articles-title { font-weight: 600; line-height: 1.35; }
.related-articles-date { color: #888; font-size: 11px; white-space: nowrap; }

.league-info-block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}
.league-info-head {
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
}
.league-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.league-info-table th,
.league-info-table td {
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}
.league-info-table tr:last-child th,
.league-info-table tr:last-child td { border-bottom: 0; }
.league-info-table th {
    width: 38%;
    color: #555;
    font-weight: 600;
    background: #fafafa;
}
.league-info-table td a { color: #c0392b; font-weight: 700; }
.league-info-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    vertical-align: middle;
}
.league-info-team-count {
    font-weight: 700;
    margin-right: 6px;
}
.league-info-teams {
    display: inline;
    line-height: 1.85;
}
.league-info-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 3px;
    display: inline-block;
}
.league-info-teams a {
    color: #c0392b;
    font-weight: 600;
    white-space: nowrap;
}
.league-info-team-sep {
    color: #666;
    font-weight: 400;
}

@media (max-width: 640px) {
    .related-articles-list a {
        grid-template-columns: 64px 1fr;
    }
    .related-articles-date {
        grid-column: 2;
    }
    .league-info-table th { width: 42%; }
}



.article-embed {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fafafa;
    overflow-x: auto;
}
.article-embed-empty,
.article-embed-empty-inline { color: #bbb; font-size: 14px; padding: 8px 0; }
.article-embed-subtitle { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.article-embed-meta { font-size: 13px; color: #888; }
.article-embed-note { font-size: 10px; color: #999; margin: 8px 0 0; }
.article-embed-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-embed-lineup-cols { margin-top: 8px; }
.article-embed-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.article-embed-list li { padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
.article-embed-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-embed-table th { background: #1a1a2e; color: #ccc; padding: 6px 8px; text-align: left; font-weight: 600; }
.article-embed-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; }
.form-badge { display: inline-block; min-width: 18px; text-align: center; font-size: 10px; font-weight: 700; border-radius: 2px; margin-right: 4px; }
.form-w { background: #d4edda; color: #155724; }
.form-d { background: #fff3cd; color: #856404; }
.form-l { background: #f8d7da; color: #721c24; }

.article-embed-odds .odds-board { margin: 0; }
.article-embed-odds .odds-board-brand { font-size: 13px; }

@media (max-width: 640px) {
    .article-embed-grid-2 { grid-template-columns: 1fr; }
    .article-embed-lineup-cols { grid-template-columns: 1fr; }
}

/* ─── Pagination ─────────────────────────────── */
.pagination { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; }
.pagination a,.pagination span {
    display: inline-block; padding: 5px 9px; border: 1px solid #ddd;
    border-radius: 3px; font-size: 14px; background: #fff; color: #333;
}

.pagination a:hover { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.pagination .active { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ─── Footer ─────────────────────────────────── */
.site-footer {
    background: #111;
    color: #aaa;
    font-size: 13px;
    padding: 14px 0;
    margin-top: 20px;
    text-align: center;
}

/* ─── Util ───────────────────────────────────── */
.empty-state { color: #bbb; font-size: 14px; padding: 20px; text-align: center; }

.search-cse { padding: 12px; min-height: 320px; background: #fff; }
.search-cse .gsc-control-cse { padding: 0 !important; border: 0 !important; background: transparent !important; }
.search-cse .gsc-input { font-size: 13px !important; }

/* ─── Mobile header show/hide helpers ────────── */
.hd-mobile { display: none; }
.hd-desktop { display: block; }
.topbar .hd-desktop { display: flex; }

/* ─── Mobile: thanh đơn ─────────────────────── */
.mob-bar {
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    height: 50px;
    padding: 0 12px;
    border-bottom: 2px solid #c0392b;
}

.mob-brand {
    flex-shrink: 0;
    line-height: 0;
}

.mob-brand-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.mob-brand-text {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.5px;
}

.mob-brand-text span { color: #e74c3c; }

.mob-search {
    flex: 1;
    display: flex;
    align-items: stretch;
    height: 32px;
    min-width: 0;
}

.mob-search input[type=search] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: #2a2a3e;
    color: #eee;
    font: inherit;
    font-size: 14px;
    padding: 0 8px;
    outline: none;
    border-radius: 3px 0 0 3px;
}

.mob-search input[type=search]::placeholder { color: #888; }
.mob-search input[type=search]::-webkit-search-decoration,
.mob-search input[type=search]::-webkit-search-cancel-button { display: none; }

.mob-search button {
    width: 34px;
    flex-shrink: 0;
    border: 0;
    background: #c0392b;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 3px 3px 0;
}

.mob-search button:hover { background: #e74c3c; }

/* Hamburger button */
.mob-menu-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mob-menu-btn:hover { border-color: #fff; }

.mob-hamburger,
.mob-hamburger::before,
.mob-hamburger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

.mob-hamburger { position: relative; }
.mob-hamburger::before,
.mob-hamburger::after { content: ''; position: absolute; left: 0; }
.mob-hamburger::before { top: -5px; }
.mob-hamburger::after  { top: 5px; }

/* Hamburger → X khi mở */
.mob-menu-btn.is-open .mob-hamburger { background: transparent; }
.mob-menu-btn.is-open .mob-hamburger::before { transform: translateY(5px) rotate(45deg); }
.mob-menu-btn.is-open .mob-hamburger::after  { transform: translateY(-5px) rotate(-45deg); }

/* Overlay */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
}

.mob-overlay.is-open { display: block; }

/* Drawer */
.mob-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: #1a1a2e;
    z-index: 210;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mob-drawer.is-open { transform: translateX(0); }

.mob-drawer-inner { padding: 16px 0 32px; }

.mob-drawer-section { padding: 0; }

.mob-drawer-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 8px 0;
}

.mob-drawer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}

.mob-drawer-link:hover,
.mob-drawer-link.active {
    background: rgba(192,57,43,.15);
    color: #fff;
    border-left-color: #c0392b;
}

/* Group (có children) */
.mob-drawer-group { }

.mob-drawer-group-label {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #ccc;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.mob-drawer-group-label::-webkit-details-marker { display: none; }
.mob-drawer-group-label::after { content: '▾'; font-size: 12px; transition: transform .2s; }
.mob-drawer-group[open] .mob-drawer-group-label::after { transform: rotate(-180deg); }

.mob-drawer-group-body { background: rgba(0,0,0,.2); }

.mob-drawer-group-body .mob-drawer-link {
    padding-left: 32px;
    font-size: 14px;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr; }
    .layout-sidebar { display: none; }
    .country-menu a { padding: 0 9px; font-size: 14px; }
    .mob-below-main {
        display: block !important;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .hd-mobile  { display: block; }
    .hd-desktop { display: none !important; }
    .mob-bar    { display: flex; }
}

@media (max-width: 640px) {
    .match-row { grid-template-columns: 52px 1fr 56px 1fr auto; }
    .match-row .col-home,
    .match-row .col-away { max-width: none; }
    .score-board { grid-template-columns: 1fr 90px 1fr; }
    .score-board .team-name { font-size: 14px; }
    .score-board .score-num { font-size: 28px; }
    .odds-grid { grid-template-columns: 1fr; }
    .lineup-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .lineup-team-cols { grid-template-columns: 1fr; gap: 6px; }
    .pitch { aspect-ratio: 1.7 / 1; }
    .pitch-player { width: 54px; }
    .pitch-shirt { width: 24px; height: 28px; font-size: 10px; }
    .pitch-name { font-size: 9px; max-width: 54px; }
}

@media (max-width: 400px) {
    .match-row .col-round { font-size: 11px; max-width: 60px; }
}

/* —— Team / ĐTQG profile page —— */
.team-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.team-hero-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.team-hero h1 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #c0392b;
}
.team-hero p {
    margin: 0;
    color: #666;
    font-size: 13px;
}
.team-form { font-weight: 800; letter-spacing: .08em; color: #222; }
.team-section { margin-bottom: 10px; }
.team-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}
.team-info-table th,
.team-info-table td {
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.team-info-table th {
    width: 38%;
    color: #555;
    font-weight: 600;
    background: #fafafa;
}
.team-info-table td a { color: #c0392b; font-weight: 700; }
.team-form-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    background: #fff;
}
.form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}
.form-pill.form-t { background: #27ae60; }
.form-pill.form-h { background: #f39c12; }
.form-pill.form-b { background: #c0392b; }
.team-form-note {
    padding: 0 12px 12px;
    margin: 0;
    font-size: 12px;
    color: #888;
    background: #fff;
}
.team-h2h {
    border-top: 1px solid #eee;
    background: #fff;
}
.team-h2h h3 {
    margin: 0;
    padding: 10px 12px 4px;
    font-size: 14px;
}
.bxh-table tr.team-highlight {
    background: #fff6e8;
    font-weight: 700;
}
.team-form-cell {
    font-size: 11px;
    letter-spacing: .04em;
    white-space: nowrap;
}
.team-seo-blurb {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.55;
}
.team-seo-blurb a { color: #c0392b; font-weight: 700; }

@media (max-width: 640px) {
    .team-hero-logo { width: 44px; height: 44px; }
    .team-hero h1 { font-size: 16px; }
    .team-info-table th { width: 42%; }
}

/* ─── Trang kèo bóng đá (/keo-bong-da, kèo theo giải) ─── */
.odds-page-head {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.odds-page-head h1 { font-size: 18px; font-weight: 800; color: #1a1a2e; margin: 0; }
.odds-page-head p { font-size: 13px; color: #888; margin: 4px 0 0; }
.ot-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ot-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.ot-table th {
    background: #f5f6f8;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 6px;
    text-align: center;
    border-bottom: 1px solid #e5e7ea;
    white-space: nowrap;
}
.ot-table td { padding: 6px; border-bottom: 1px solid #f0f0f0; text-align: center; vertical-align: middle; }
.ot-table tbody tr:last-child td { border-bottom: none; }
.ot-table tbody tr:hover td { background: #fafbfc; }
.ot-table tr.is-live td { background: #fff8f0; }
.ot-table .ot-group { border-left: 1px solid #eceef1; }
.ot-time { width: 54px; color: #555; font-weight: 700; white-space: nowrap; }
.ot-time small { display: block; font-weight: 400; color: #aaa; font-size: 11px; }
.ot-table th.ot-match, .ot-table td.ot-match { text-align: left; }
.ot-match a { display: flex; flex-direction: column; gap: 3px; color: #1a1a2e; }
.ot-match a:hover .ot-team span { color: #c0392b; }
.ot-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ot-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-team b { margin-left: auto; padding-left: 8px; color: #c0392b; }
.ot-team.is-fav span { font-weight: 700; color: #c0392b; }
.ot-team .team-logo { width: 16px; height: 16px; flex-shrink: 0; }
.ot-line { width: 52px; font-weight: 700; color: #c0392b; white-space: nowrap; }
.ot-odd { width: 52px; white-space: nowrap; }
.ot-odd span { display: block; font-weight: 700; color: #2980b9; line-height: 1.6; }
.ot-odd span + span { color: #8e44ad; }
.ot-x12 { width: 46px; font-weight: 700; color: #1a1a2e; }
.ot-x12.ot-draw { color: #7f8c8d; }
.ot-empty { color: #ccc; }

@media (max-width: 640px) {
    .odds-page-head h1 { font-size: 16px; }
    .ot-table { font-size: 12px; }
    .ot-table td { padding: 5px 4px; }
}

/* ─── Kèo 7m (mở cửa / trước trận / live) ───── */
.odds7m-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.odds7m-book { font-weight: 800; color: #126e51; font-size: 15px; }
.odds7m-time { font-size: 12px; color: #999; }
.odds7m-scroll, .mhist-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.odds7m-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.odds7m-table th { background: #f5f6f8; color: #666; font-weight: 700; padding: 6px; text-align: center; border: 1px solid #e8eaed; }
.odds7m-table td { padding: 7px 6px; text-align: center; border: 1px solid #eef0f2; white-space: nowrap; }
.odds7m-type { font-weight: 700; color: #333; text-align: left !important; }
.odds7m-type small { display: block; font-weight: 400; color: #aaa; font-size: 11px; }
.odds7m-table .o-home { color: #2980b9; font-weight: 700; }
.odds7m-table .o-line { display: inline-block; min-width: 42px; color: #c0392b; font-weight: 700; margin: 0 6px; }
.odds7m-table .o-away { color: #8e44ad; font-weight: 700; }
.odds7m-note { font-size: 12px; color: #999; margin-top: 6px; }

/* ─── Thống kê trận ──────────────────────────── */
.mstats-teams { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; color: #1a1a2e; margin-bottom: 8px; }
.mstats-row { padding: 5px 0; }
.mstats-line { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; font-size: 13px; }
.mstats-line .mstats-val:first-child { text-align: left; }
.mstats-line .mstats-val:last-child { text-align: right; }
.mstats-val { font-weight: 700; color: #777; }
.mstats-val.is-lead { color: #1a1a2e; }
.mstats-label { text-align: center; color: #555; }
.mstats-bar { display: flex; gap: 3px; height: 5px; margin-top: 4px; }
.mstats-bar span { display: block; height: 100%; border-radius: 3px; }
.mstats-bar-home { background: #2980b9; }
.mstats-bar-away { background: #c0392b; }

/* ─── Đối đầu / phong độ ─────────────────────── */
.mhist + .mhist { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e3e3e3; }
.mhist-title { font-weight: 700; font-size: 14px; color: #1a1a2e; margin-bottom: 6px; }
.mhist-summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #555; margin-bottom: 6px; }
.mhist-summary .res { font-weight: 700; }
.mhist-summary .res-W { color: #27ae60; }
.mhist-summary .res-D { color: #7f8c8d; }
.mhist-summary .res-L { color: #c0392b; }
.mhist-sep { color: #ccc; }
.mhist-form { display: flex; gap: 4px; margin-bottom: 8px; }
.res-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; background: #95a5a6; }
.res-dot.res-W { background: #27ae60; }
.res-dot.res-L { background: #c0392b; }
.mhist-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mhist-table th { background: #f5f6f8; color: #666; font-weight: 700; padding: 6px 5px; border-bottom: 1px solid #e8eaed; text-align: center; white-space: nowrap; }
.mhist-table td { padding: 6px 5px; border-bottom: 1px solid #f2f2f2; text-align: center; white-space: nowrap; }
.mhist-table .t-right { text-align: right; }
.mhist-table .t-left { text-align: left; }
.mhist-table .is-focus { font-weight: 700; color: #1a1a2e; }
.mhist-date { color: #999; }
.mhist-league { display: inline-block; padding: 1px 5px; border-radius: 2px; color: #fff; font-size: 11px; background: #7f8c8d; }
.mhist-score { font-weight: 700; color: #c0392b; }
.mhist-score a { color: inherit; }
.mhist-score small { display: block; font-weight: 400; color: #aaa; font-size: 11px; }
.mhist-note { display: inline !important; color: #e67e22 !important; cursor: help; }
.mhist-bet .mhist-line { color: #777; margin-right: 4px; }
.bet { font-weight: 700; }
.bet-W, .bet-HW { color: #27ae60; }
.bet-L, .bet-HL { color: #c0392b; }
.bet-P { color: #7f8c8d; }

@media (max-width: 640px) {
    .mstats-line { grid-template-columns: 54px 1fr 54px; font-size: 12px; }
    .mhist-table, .odds7m-table { font-size: 12px; }
}

