/* =====================================================================
   Jogos Hoje — main.css
   Compatible: GeneratePress (free) + LiteSpeed + Cloudflare
   Strategy: Scope mọi rule trong .jh-* để không xung đột theme.
   Style: Stadium Night — dark-first (navy + electric green + amber).
          Font: Plus Jakarta Sans. Card: gradient border + soft glow live.
   ===================================================================== */

:root {
    /* Stadium Night — dark-first palette */
    --jh-bg:        #0B1220;  /* deep navy — main background */
    --jh-bg-card:   #131B2E;  /* card surface, slightly lifted */
    --jh-bg-soft:   #182238;  /* legend/sidebar tint */
    --jh-bg-hover:  #1E2A44;
    --jh-bar:       #182238;  /* header nhóm liga */
    --jh-border:    #25304A;  /* viền card mặc định */
    --jh-border-strong: #00E08A; /* viền card hover — electric green */
    --jh-text:      #E7ECF5;  /* off-white */
    --jh-muted:     #8A95AD;
    --jh-primary:   #00E08A;  /* electric green — live, accent */
    --jh-primary-dark: #00B870;
    --jh-accent:    #FFB020;  /* amber — highlight, scores, FT */
    --jh-navy:      #070C18;  /* darker navy cho top nav background */
    --jh-navy-soft: #0F1828;
    --jh-danger:    #FF5577;
    --jh-warning:   #FFB020;
    --jh-radius:    10px;     /* slightly larger for premium feel */
    /* Soft glow shadows */
    --jh-shadow:    0 1px 0 rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02);
    --jh-shadow-md: 0 4px 24px -8px rgba(0, 224, 138, 0.15);
    /* Live glow — electric green */
    --jh-glow-live: 0 0 0 1px rgba(0, 224, 138, 0.35), 0 0 24px -4px rgba(0, 224, 138, 0.25);
    --jh-border-w:  1px;
}

/* Light-mode override (cho user OS set light) — vẫn cùng accent xanh/amber */
@media (prefers-color-scheme: light) {
    :root {
        --jh-bg:        #F6F8FC;
        --jh-bg-card:   #FFFFFF;
        --jh-bg-soft:   #EEF2F8;
        --jh-bg-hover:  #E4EAF3;
        --jh-bar:       #EEF2F8;
        --jh-border:    #D5DCEA;
        --jh-border-strong: #00B870;
        --jh-text:      #0B1220;
        --jh-muted:     #5A6378;
        --jh-primary:   #00B870;
        --jh-primary-dark: #008A55;
        --jh-accent:    #D97706;
        --jh-navy:      #0B1220;
        --jh-navy-soft: #1A2238;
        --jh-danger:    #DC2640;
        --jh-warning:   #D97706;
        --jh-shadow:    0 1px 0 rgba(11,18,32,0.04);
        --jh-shadow-md: 0 4px 16px -8px rgba(11,18,32,0.12);
        --jh-glow-live: 0 0 0 1px rgba(0, 184, 112, 0.30), 0 0 16px -4px rgba(0, 184, 112, 0.18);
    }
}

.jh-page {
    color: var(--jh-text);
    background: var(--jh-bg);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    min-height: 70vh;
    /* Tối ưu data-heavy: tabular nums cho số liệu nhất quán */
    font-feature-settings: "cv11", "ss03";
}

/* Auto-suficiência: no dark mode do SO, pinta a ÁREA DE CONTEÚDO do tema
   (não o body/cabeçalho/rodapé) p/ evitar faixas brancas ao redor do plugin
   sem quebrar o cabeçalho claro de temas que não têm dark mode. */
@media (prefers-color-scheme: dark) {
    /* Pinta o viewport inteiro (body) escuro p/ eliminar as faixas brancas
       ao redor da coluna de 600px no modo escuro. */
    body.jh-fullwidth,
    body.jh-fullwidth #page,
    body.jh-fullwidth .site,
    body.jh-fullwidth #main,
    body.jh-fullwidth .site-content,
    body.jh-fullwidth .content-area {
        background: var(--jh-bg);
    }
}

/* Títulos/links do plugin sempre usam a paleta própria (impede que o tema
   force cores escuras sobre fundo escuro). */
.jh-page h1,
.jh-page h2,
.jh-page h3,
.jh-page-title { color: var(--jh-text); }

/* ★ Reset GeneratePress sidebar/grid để plugin chiếm full width */
body .jh-page .inside-article,
body .jh-page .site-content,
body .jh-page .content-area {
    padding: 0 !important;
    margin: 0 !important;
}

body.jh-fullwidth #primary,
body.jh-fullwidth #main,
body.jh-fullwidth .site-content > .content-area,
body.jh-fullwidth .jh-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.jh-fullwidth #right-sidebar,
body.jh-fullwidth #left-sidebar {
    display: none !important;
}

/* Thu header + nav của GeneratePress về cùng khung 600px (căn giữa) cho cân đối với nội dung */
body.jh-fullwidth .inside-header,
body.jh-fullwidth .inside-navigation {
    max-width: var(--jh-site-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.jh-container {
    /* Inherit width từ container theme — bạn đổi Container Width trong WP Customizer
       là content tự co/giãn theo. Không hardcode max-width ở đây. */
    max-width: 100%;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

.jh-page-title {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jh-page-subtitle {
    margin: 0 0 0.5rem;
    color: var(--jh-muted);
    font-size: 0.95rem;
}

/* Page head — title + ngày + mô tả SEO */
.jh-page-head {
    margin-bottom: 0.85rem;
}

/* Ngày tháng bên cạnh tiêu đề */
.jh-page-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jh-muted);
    text-transform: capitalize;
}
.jh-page-date::before {
    content: '·';
    margin-right: 0.4rem;
    color: var(--jh-border);
}

/* Đoạn mô tả từ khóa dưới tiêu đề — full chiều rộng container */
.jh-page-desc {
    margin: 0.35rem 0 0;
    color: var(--jh-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Thẻ đỏ báo ngoài match card */
.jh-card__red {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: 0.35rem;
    flex-shrink: 0;
    color: #dc2626;
}
.jh-card__red-count {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}
/* Đội khách: badge thẻ đỏ nằm BÊN TRÁI tên (đội nhà giữ bên phải) */
.jh-card__team--away .jh-card__red {
    margin-left: 0;
    margin-right: 0.35rem;
}

/* CTA khi trang ao vivo trống → quay về lịch hôm nay */
.jh-empty-cta {
    text-align: center;
    margin-top: 1rem;
}
.jh-empty-cta[hidden] { display: none; }
.jh-btn-link {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--jh-primary);
    border-radius: 99px;
    color: var(--jh-primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.jh-btn-link:hover {
    background: var(--jh-primary);
    color: #fff;
}

/* Legenda dos ícones (trang chi tiết trận) */
.jh-legend {
    margin: 0 0 1rem;
    background: var(--jh-bg-soft);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    padding: 0.5rem 0.9rem;
}
.jh-legend__title {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--jh-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    list-style: none;
}
.jh-legend__title::-webkit-details-marker { display: none; }
.jh-legend__list {
    list-style: none;
    margin: 0.7rem 0 0.1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
}
.jh-legend__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--jh-text);
}
.jh-legend__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Legenda de status (1 linha) — explica as abreviações dos cards */
.jh-status-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.9rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0.9rem;
    background: var(--jh-bg-soft);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    font-size: 0.8rem;
    color: var(--jh-muted);
    line-height: 1.4;
}
.jh-status-legend__title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.72rem;
}
.jh-status-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.jh-status-legend__key {
    font-weight: 700;
    color: var(--jh-text);
}
.jh-status-legend__key.jh-status--live { color: var(--jh-primary); }
.jh-status-legend__key.jh-status--ht   { color: var(--jh-warning); }

/* =====================================================================
   Section — chỉ dùng __dot (+pulse) trong templates; các sub-element khác đã loại bỏ
   ===================================================================== */
.jh-section__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--jh-primary);
    display: inline-block;
}

.jh-section__dot--pulse {
    animation: jh-pulse 1.4s infinite;
}

/* =====================================================================
   Empty state
   ===================================================================== */
.jh-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--jh-muted);
    background: var(--jh-bg-soft);
    border-radius: var(--jh-radius);
}

/* =====================================================================
   League group
   ===================================================================== */
.jh-group {
    margin-bottom: 1.25rem;
    background: var(--jh-bg);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    overflow: hidden;
}

.jh-group__header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline; /* tên giải + vòng đấu cùng đường chân chữ */
    justify-content: flex-start; /* căn TRÁI */
    gap: 0.1rem 0.5rem;
    padding: 0.55rem 0.875rem;
    background: var(--jh-bar);
    border-bottom: 1px solid var(--jh-border);
}

/* Tên giải (căn trái) — baseline để vòng đấu cùng đường chân chữ */
.jh-group__main {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.jh-group__title-link, .jh-group__title {
    color: var(--jh-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jh-group__title-link:hover { color: var(--jh-primary); text-decoration: underline; }

/* Vòng đấu / giai đoạn — nằm cạnh tên giải, chữ nhỏ hơn */
.jh-group__round {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--jh-muted);
}
.jh-group__round::before { content: '· '; }

.jh-group__list {
    display: flex;
    flex-direction: column;
}

/* =====================================================================
   Match card
   ===================================================================== */
.jh-card {
    display: block;
    text-decoration: none;
    /* Set màu rõ ràng (không inherit từ theme) để chống theme override màu trên a:hover */
    color: var(--jh-text);
    background: var(--jh-bg-card, #ffffff);
    border-top: 1px solid var(--jh-border);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.jh-card:first-child { border-top: none; }

.jh-card:hover {
    background: var(--jh-bg-hover);
    text-decoration: none;
    color: var(--jh-text);
}
/* Khi hover card: tên đội đổi sang xanh primary để feedback rõ + đảm bảo đọc được trên bg-hover */
.jh-card:hover .jh-card__team-name {
    color: var(--jh-primary);
}

/* Stadium Night accent — trận live có gradient border-left + soft electric-green glow */
.jh-card--live {
    border-left: 3px solid var(--jh-primary);
    box-shadow: var(--jh-glow-live);
    position: relative;
}
.jh-card--live::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 224, 138, 0.06) 0%, rgba(0, 224, 138, 0) 35%);
    border-radius: inherit;
}
.jh-card--live:hover {
    transform: translateX(1px);
    box-shadow: var(--jh-glow-live), 0 4px 24px -10px rgba(0, 224, 138, 0.35);
}

.jh-card--final {
    opacity: 0.9;
}
/* Khi cursor đặt vào, khôi phục độ tương phản đầy đủ (đặc biệt quan trọng ở dark mode) */
.jh-card--final:hover {
    opacity: 1;
}

/* Hàng thẻ trận: [trạng thái | tên 2 đội xếp dọc | tỉ số xếp dọc] */
.jh-card__row {
    display: grid;
    grid-template-columns: 2.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.5rem 1rem;
}

/* Cột trạng thái (trái) — base + bù giờ xếp dọc cho gọn */
.jh-card__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--jh-muted);
}
.jh-card__state-main { display: inline-flex; align-items: center; gap: 0.2rem; white-space: nowrap; }
.jh-card__state-stop { font-size: 0.66rem; opacity: 0.85; }
.jh-card__state.jh-status--live { color: var(--jh-primary); }
.jh-card__state.jh-status--ht,
.jh-card__state.jh-status--susp { color: var(--jh-warning); }
.jh-card__state.jh-status--ft,
.jh-card__state.jh-status--cancelled,
.jh-card__state.jh-status--ns { color: var(--jh-muted); }

/* Tên 2 đội xếp dọc — full chiều ngang, không cắt bằng "…" */
.jh-card__names {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.jh-card__team-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.jh-card__team-name {
    /* Set màu rõ ràng để không bị theme override khi card được hover */
    color: var(--jh-text);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4rem; /* khớp chiều cao dòng với tỉ số để 2 cột thẳng hàng */
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}

/* Tỉ số xếp dọc tương ứng (NS để trống) */
.jh-card__scores {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    min-width: 1.1rem;
    font-weight: 700;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.jh-card__score-line { line-height: 1.4rem; }
.jh-card__pen { font-size: 0.7rem; color: var(--jh-muted); font-weight: 600; margin-left: 0.15rem; }

.jh-card__dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--jh-primary);
    box-shadow: 0 0 0 0 var(--jh-primary);
}
.jh-card__dot--pulse {
    animation: jh-pulse 1.4s infinite;
}

/* =====================================================================
   Match detail page
   ===================================================================== */
.jh-breadcrumb {
    font-size: 0.85rem;
    color: var(--jh-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.jh-breadcrumb a { color: var(--jh-muted); text-decoration: none; }
.jh-breadcrumb a:hover { color: var(--jh-primary); }

.jh-match__hero {
    background: var(--jh-bg);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.jh-match__league-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--jh-muted);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.jh-match__round {
    text-transform: none;
}

.jh-match__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start; /* logo + DÒNG ĐẦU tên 2 đội căn bằng nhau khi tên dài xuống dòng */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.jh-match__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.jh-match__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.jh-match__team-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* team-name + ⭐ button side by side */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.jh-match__team-name .jh-fav-btn { vertical-align: middle; }

.jh-match__center {
    text-align: center;
    min-height: 64px; /* canh placar ngang tầm logo (logo top-align) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jh-match__score-big {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.jh-match__score-sep {
    color: var(--jh-muted);
}

.jh-match__pen-score {
    font-size: 0.95rem;
    color: var(--jh-muted);
    font-weight: 600;
    margin-top: 0.25rem;
}

.jh-match__kickoff-big {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jh-text);
}

.jh-match__status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--jh-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.jh-match__status.is-live { color: var(--jh-danger); }

.jh-match__meta {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--jh-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--jh-muted);
}

.jh-match__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.jh-icon { vertical-align: middle; }

/* =====================================================================
   Events timeline — phase dividers + 2 cột (home/away) + icon-only
   ===================================================================== */
.jh-timeline2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

/* Phase divider (1ª Tempo / Intervalo / 2ª Tempo / Prorrogação / Pênaltis) */
.jh-tl-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 1rem 0 0.5rem;
    background: var(--jh-bg-soft);
    border: 1px dashed var(--jh-border);
    border-radius: var(--jh-radius);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--jh-muted);
}

/* Tỉ số tại mốc kết thúc hiệp (HT / fim do tempo normal / fim da prorrogação) */
.jh-tl-divider__score {
    background: var(--jh-navy);
    color: var(--jh-accent);
    padding: 0.1rem 0.6rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Row 3 cột — home | axis | away */
.jh-tl-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: stretch;
    min-height: 56px;
}

.jh-tl-side {
    display: flex;
    align-items: center;
    min-width: 0;
}

.jh-tl-side--home {
    justify-content: flex-end;
}

.jh-tl-side--away {
    justify-content: flex-start;
}

/* Event card */
.jh-tl-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--jh-bg);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    padding: 0.6rem 0.85rem;
    box-shadow: var(--jh-shadow);
    max-width: 100%;
}

.jh-tl-row.is-home .jh-tl-card {
    border-left: 3px solid var(--jh-primary);
}

.jh-tl-row.is-away .jh-tl-card {
    border-right: 3px solid var(--jh-warning);
}

.jh-tl-row.is-home .jh-tl-card__text {
    text-align: right;
}

.jh-tl-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jh-tl-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    font-size: 0.9rem;
    min-width: 0;
    line-height: 1.25;
}

/* Primary actor (scorer / sub-in) — đậm */
.jh-tl-card__primary {
    color: var(--jh-text);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Secondary actor (assist / sub-out) — nhạt */
.jh-tl-card__secondary {
    color: var(--jh-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Note (pen / gol contra) — nhỏ hơn, italic */
.jh-tl-card__note {
    color: var(--jh-muted);
    font-size: 0.7rem;
    font-style: italic;
    opacity: 0.8;
    text-transform: lowercase;
}

/* Axis trung tâm */
.jh-tl-axis {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.jh-tl-axis::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--jh-border);
    transform: translateX(-50%);
}

.jh-tl-time {
    position: relative;
    z-index: 2;
    background: var(--jh-bg);
    border: 2px solid var(--jh-border);
    border-radius: 99px;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--jh-muted);
    min-width: 44px;
    text-align: center;
}

@media (max-width: 640px) {
    .jh-tl-row { gap: 0.4rem; }
    .jh-tl-card { padding: 0.4rem 0.55rem; gap: 0.45rem; }
    .jh-tl-card__text { font-size: 0.8rem; }
    .jh-tl-card__secondary { font-size: 0.7rem; }
    .jh-tl-axis { min-width: 44px; }
    .jh-tl-time { font-size: 0.7rem; padding: 0.15rem 0.45rem; min-width: 36px; }
}

/* =====================================================================
   Lineups
   ===================================================================== */
.jh-lineups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.jh-lineups__team h4 {
    font-size: 0.85rem;
    color: var(--jh-muted);
    text-transform: uppercase;
    margin: 1rem 0 0.5rem;
    letter-spacing: 0.4px;
}

.jh-lineups__header {
    padding: 0.5rem;
    text-align: center;
    background: var(--jh-bg-soft);
    border-radius: var(--jh-radius);
    margin-bottom: 1rem;
}

.jh-lineups__formation {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jh-primary);
}

.jh-lineups__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jh-lineups__list li {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: var(--jh-bg-soft);
    border-radius: 4px;
    font-size: 0.85rem;
}

.jh-lineups__num {
    font-weight: 700;
    color: var(--jh-primary);
    text-align: center;
}

.jh-lineups__name {
    font-weight: 500;
}

.jh-lineups__pos {
    font-size: 0.75rem;
    color: var(--jh-muted);
}

.jh-lineups__list--subs li {
    opacity: 0.75;
}

.jh-lineups__coach {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--jh-muted);
}

/* =====================================================================
   Statistics bars
   ===================================================================== */
.jh-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jh-stat-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.jh-stat-row__value {
    font-weight: 700;
    font-size: 0.95rem;
}
.jh-stat-row__value--home { text-align: left; }
.jh-stat-row__value--away { text-align: right; }

.jh-stat-row__label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--jh-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.25rem;
}

.jh-stat-row__bar {
    display: flex;
    height: 8px;
    background: var(--jh-bg-soft);
    border-radius: 4px;
    overflow: hidden;
}

.jh-stat-row__bar-home {
    background: var(--jh-primary);
}

.jh-stat-row__bar-away {
    background: var(--jh-warning);
}

/* =====================================================================
   Prediction
   ===================================================================== */
.jh-prediction__bar {
    display: flex;
    height: 36px;
    border-radius: var(--jh-radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.jh-prediction__seg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: width 0.3s ease;
}

.jh-prediction__seg--home { background: var(--jh-primary); }
.jh-prediction__seg--draw { background: var(--jh-muted); }
.jh-prediction__seg--away { background: var(--jh-warning); }

.jh-prediction__legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--jh-muted);
    margin-bottom: 1rem;
}

.jh-prediction__advice {
    padding: 1rem;
    background: var(--jh-bg-soft);
    border-radius: var(--jh-radius);
    font-size: 0.95rem;
}

/* =====================================================================
   Tables (standings + topscorers)
   ===================================================================== */
.jh-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    background: var(--jh-bg);
}

.jh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.jh-table th,
.jh-table td {
    padding: 0.6rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--jh-border);
}

.jh-table th {
    background: var(--jh-bg-soft);
    font-weight: 600;
    color: var(--jh-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
}

.jh-table tbody tr:hover {
    background: var(--jh-bg-hover);
}

.jh-table tr:last-child td { border-bottom: none; }

.jh-col-team {
    text-align: left !important;
    min-width: 140px;
}
.jh-col-team img {
    vertical-align: middle;
    margin-right: 0.4rem;
}

.jh-col-points {
    color: var(--jh-primary);
}

.jh-group-subtitle {
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--jh-muted);
}

/* =====================================================================
   League page header
   ===================================================================== */
.jh-league-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--jh-bg);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    margin-bottom: 2rem;
}

.jh-league-header__logo {
    flex-shrink: 0;
    object-fit: contain;
}

.jh-league-header__info {
    flex: 1;
}

/* =====================================================================
   Top nav: Logo + site name (trái) + Ao Vivo badge (phải)
   STICKY: cố định lên đầu khi scroll qua, thêm class .is-stuck khi đã stick
   ===================================================================== */
.jh-topnav {
    /* Header dạng "floating bar" — cap width theo --jh-site-width (đo từ container theme),
       căn giữa. 2 bên dải navy là khoảng trống màu body bg → cân với content area. */
    max-width: var(--jh-site-width, 1200px);
    width: 100%;
    margin: 0 auto;
    background: var(--jh-navy);
    box-shadow: none; /* flat */
    /* Sticky: dính lên đầu khi scroll. */
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.18s ease, border-bottom-color 0.18s ease;
    will-change: box-shadow;
}
/* Khi đã cuộn qua → JS gắn class .is-stuck → thêm shadow nhẹ + dải accent dày hơn */
.jh-topnav.is-stuck {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.jh-topnav.is-stuck::after {
    height: 3px;
}
/* Đường viền vàng Brasil mảnh ở đáy nav — accent rất rõ */
.jh-topnav::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--jh-primary) 0%, var(--jh-accent) 100%);
    transition: height 0.18s ease;
}

.jh-topnav__inner {
    /* Width khớp với theme container — JS đo .grid-container của theme và set
       --jh-site-width. Fallback 1200px nếu JS không đo được hoặc theme khác. */
    max-width: var(--jh-site-width, 1200px);
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jh-topnav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    color: #fef7ed;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.jh-topnav__brand:hover { color: var(--jh-accent); }

.jh-topnav__brand-icon {
    display: inline-flex;
    align-items: center;
    color: var(--jh-primary);
}

.jh-topnav__brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}

/* Mobile Ao Vivo button — hidden default, hiển thị riêng trên mobile (<=768px) */
.jh-topnav__mobile-live { display: none; }

@media (max-width: 768px) {
    .jh-topnav__mobile-live {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.35rem 0.7rem;
        margin-left: auto;
        background: rgba(0, 224, 138, 0.12);
        border: 1px solid var(--jh-primary);
        border-radius: 999px;
        color: var(--jh-primary) !important;
        font-weight: 700;
        font-size: 0.85rem;
        text-decoration: none !important;
        white-space: nowrap;
        transition: background 0.15s ease;
    }
    .jh-topnav__mobile-live:hover,
    .jh-topnav__mobile-live.is-active {
        background: rgba(0, 224, 138, 0.22);
    }
    .jh-topnav__mobile-live-dot {
        width: 8px; height: 8px;
        border-radius: 50%;
        background: var(--jh-primary);
        box-shadow: 0 0 0 3px rgba(0, 224, 138, 0.2);
        animation: jh-pulse 1.4s ease-in-out infinite;
        flex-shrink: 0;
    }
    .jh-topnav__mobile-live-label { line-height: 1; }
    .jh-topnav__mobile-live-count {
        font-size: 0.72rem;
        padding: 1px 7px;
        background: var(--jh-primary);
        color: #0B1220;
        border-radius: 999px;
        font-weight: 800;
        min-width: 18px;
        text-align: center;
        line-height: 1.3;
    }
    .jh-topnav__mobile-live-count:empty,
    .jh-topnav__mobile-live-count[data-jh-live-count="0"] { display: none; }
}

@media (max-width: 640px) {
    .jh-topnav__brand-name { font-size: 0.95rem; }
}

/* =====================================================================
   Nav menu enhancement (inject vào theme nav nếu có)
   ===================================================================== */
.jh-nav-live a {
    color: var(--jh-primary) !important;
    font-weight: 700;
}

.jh-nav-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--jh-primary);
    margin-right: 0.3rem;
    animation: jh-pulse 1.4s infinite;
}

.jh-nav-live-count {
    background: var(--jh-primary);
    color: #ffffff;
    padding: 0.05rem 0.4rem;
    border-radius: 99px;
    font-size: 0.75rem;
    margin-left: 0.3rem;
    font-weight: 700;
}

/* =====================================================================
   Floating live button (bottom-right)
   ===================================================================== */
.jh-float-live {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--jh-primary);
    color: #ffffff !important;
    border: 2px solid var(--jh-primary-dark); /* flat: dùng border thay shadow */
    border-radius: 99px;
    box-shadow: none;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.15s ease, background 0.15s ease;
}
.jh-float-live:hover {
    transform: translateY(-2px);
    background: var(--jh-primary-dark);
    color: #ffffff !important;
}

.jh-float-live__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--jh-accent); /* vàng Brasil — đối lập với verde primary */
    animation: jh-pulse 1.4s infinite;
}

.jh-float-live__count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 0.05rem 0.5rem;
    border-radius: 99px;
  primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

/* =====================================================================
   SEO content block ("Como ler" — cuối 5 trang chính trước footer)
   ===================================================================== */
.jh-howto {
    margin: 2rem 0 1rem;
    padding: 1.25rem 1.1rem 1rem;
    background: var(--jh-bg-card);
    border: 1px solid var(--jh-border);
    border-left: 3px solid var(--jh-accent);
    border-radius: var(--jh-radius);
    line-height: 1.65;
}
.jh-howto__h2 {
    margin: 0 0 0.75rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--jh-text);
    letter-spacing: -0.2px;
}
.jh-howto__h3 {
    margin: 1.3rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--jh-primary-dark);
}
.jh-howto p {
    margin: 0 0 0.7rem;
    color: var(--jh-text);
    font-size: 0.95rem;
}
.jh-howto__list {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
    list-style: disc;
}
.jh-howto__list li {
    margin-bottom: 0.3rem;
    color: var(--jh-text);
    font-size: 0.93rem;
}
.jh-howto strong {
    color: var(--jh-primary-dark);
    font-weight: 700;
}

@media (max-width: 640px) {
    .jh-howto { padding: 1rem 0.9rem 0.85rem; }
    .jh-howto__h2 { font-size: 1.08rem; }
    .jh-howto__h3 { font-size: 0.96rem; margin-top: 1.1rem; }
    .jh-howto p, .jh-howto__list li { font-size: 0.9rem; }
}

/* =====================================================================
   Tabs (match detail)
   ===================================================================== */
.jh-tabs {
    margin-top: 1.5rem;
}

.jh-tabs__nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--jh-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.jh-tabs__btn {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--jh-muted);
    cursor: pointer;
    margin-bottom: -2px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.jh-tabs__btn:hover {
    color: var(--jh-text);
}

.jh-tabs__btn.is-active {
    color: var(--jh-primary);
    border-bottom-color: var(--jh-primary);
}

.jh-tabs__count {
    background: var(--jh-bg-soft);
    color: var(--jh-muted);
    padding: 0.05rem 0.45rem;
    border-radius: 99px;
    font-size: 0.75rem;
}

.jh-tabs__btn.is-active .jh-tabs__count {
    background: var(--jh-primary);
    color: #fff;
}

.jh-tabs__panels {
    min-height: 100px;
}

.jh-tabs__panel {
    display: none;
}

.jh-tabs__panel.is-active {
    display: block;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 768px) {
    .jh-container { padding: 1rem 0.75rem; }
    .jh-page-title { font-size: 1.4rem; }
    .jh-match__teams { gap: 0.75rem; }
    .jh-match__logo { width: 48px; height: 48px; }
    .jh-match__center { min-height: 48px; }
    .jh-match__team-name { font-size: 0.85rem; }
    .jh-match__score-big { font-size: 2rem; }
    .jh-lineups { grid-template-columns: 1fr; gap: 1rem; }
    .jh-card__row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0.35rem 0.5rem; padding: 0.5rem 0.75rem; }
    .jh-card__state { font-size: 0.68rem; }
    .jh-card__team-name { font-size: 0.92rem; }
    .jh-card__scores { font-size: 1rem; }
    .jh-float-live {
        bottom: 16px;
        right: 16px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .jh-page-title { font-size: 1.2rem; }
    .jh-stat-row { grid-template-columns: 40px 1fr 40px; gap: 0.5rem; }
    .jh-stat-row__value { font-size: 0.85rem; }
}


/* =====================================================================
   Palpites (trang dự đoán)
   ===================================================================== */
.jh-palpites { display: flex; flex-direction: column; gap: 0.85rem; }

.jh-palpite {
    background: var(--jh-bg);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    box-shadow: var(--jh-shadow);
    padding: 0.85rem 1rem;
}
.jh-palpite__league {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; color: var(--jh-muted);
    text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.6rem;
}
.jh-palpite__time { margin-left: auto; font-weight: 700; }

.jh-palpite__teams {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 0.6rem; text-decoration: none; color: var(--jh-text); margin-bottom: 0.75rem;
}
.jh-palpite__team { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; min-width: 0; }
.jh-palpite__team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-palpite__team--away { justify-content: flex-end; text-align: right; }
.jh-palpite__vs { color: var(--jh-muted); font-size: 0.8rem; }
.jh-palpite__teams:hover .jh-palpite__team span { color: var(--jh-primary); }

.jh-palpite__more { margin-top: 0.6rem; border-top: 1px dashed var(--jh-border); padding-top: 0.5rem; }
.jh-palpite__more summary {
    cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--jh-primary);
    list-style: none;
}
.jh-palpite__more summary::-webkit-details-marker { display: none; }
.jh-palpite__more summary::before { content: '▸ '; }
.jh-palpite__more[open] summary::before { content: '▾ '; }
.jh-palpite__detail { margin-top: 0.6rem; font-size: 0.88rem; }
.jh-palpite__detail p { margin: 0.25rem 0; }
.jh-palpite__winner-note { color: var(--jh-muted); font-style: italic; }

.jh-cmp { margin-top: 0.6rem; }
.jh-cmp__head { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--jh-muted); margin-bottom: 0.3rem; }
.jh-cmp__row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; margin-top: 0.45rem; }
.jh-cmp__label { color: var(--jh-muted); text-transform: uppercase; letter-spacing: 0.4px; font-size: 0.68rem; }
.jh-cmp__val { font-weight: 700; min-width: 2.6em; }
.jh-cmp__val:last-child { text-align: right; }
.jh-cmp__bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--jh-bg-soft); margin-top: 2px; }
.jh-cmp__seg--home { background: var(--jh-primary); }
.jh-cmp__seg--away { background: #94a3b8; }

.jh-palpite__link {
    display: inline-block; margin-top: 0.7rem; font-size: 0.85rem; font-weight: 600;
    color: var(--jh-primary); text-decoration: none;
}
.jh-palpite__link:hover { text-decoration: underline; }


/* =====================================================================
   Futebol na TV (trang lịch chiếu TV)
   ===================================================================== */
.jh-tv { display: flex; flex-direction: column; }
.jh-tv__group {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--jh-border);
}
.jh-tv__time { font-weight: 800; color: var(--jh-primary); font-size: 0.95rem; padding-top: 0.15rem; }
.jh-tv__list { display: flex; flex-direction: column; gap: 0.7rem; }
.jh-tv__teams { font-weight: 600; }
.jh-tv__x { color: var(--jh-muted); font-weight: 400; margin: 0 0.25rem; }
.jh-tv__league { font-size: 0.78rem; color: var(--jh-muted); margin-top: 1px; }
.jh-tv__channels { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.jh-tv__channel {
    background: var(--jh-bg-soft);
    border: 1px solid var(--jh-border);
    border-radius: 99px;
    padding: 0.12rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.jh-tv__channels--none { color: var(--jh-muted); font-size: 0.75rem; font-style: italic; }
@media (max-width: 640px) {
    .jh-tv__group { grid-template-columns: 48px 1fr; gap: 0.5rem; }

    /* Legenda de status — grade de 2 colunas alinhada no mobile */
    .jh-status-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }
    .jh-status-legend__title {
        grid-column: 1 / -1;
        margin-bottom: 0.1rem;
    }
    .jh-status-legend__item {
        white-space: normal;
    }
}

/* =====================================================================
   Shell 2 cột: sidebar điều hướng league (trái) + nội dung (phải)
   Item 3 — hiển thị trên mọi trang plugin.
   ===================================================================== */
.jh-shell {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
}
/* Khi tắt sidebar trong settings → nội dung chiếm full chiều rộng */
.jh-shell--no-side {
    grid-template-columns: minmax(0, 1fr);
}
.jh-shell__main { min-width: 0; }
.jh-shell__side {
    position: sticky;
    top: 8px;
    align-self: start;
    max-height: calc(100vh - 16px);
    overflow: auto;
    padding: 1.25rem 0 1.25rem 0.75rem;
}

.jh-leaguenav__group { margin-bottom: 1rem; }
.jh-leaguenav__title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jh-muted);
    margin: 0 0 0.4rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.jh-leaguenav__star { color: var(--jh-warning); flex-shrink: 0; }
.jh-leaguenav__list { display: flex; flex-direction: column; gap: 1px; }
.jh-leaguenav__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--jh-radius);
    text-decoration: none !important;
    color: var(--jh-text);
    font-size: 0.85rem;
    line-height: 1.2;
}
.jh-leaguenav__item:hover { background: var(--jh-bg-hover); }
.jh-leaguenav__item.is-current {
    background: rgba(22, 163, 74, 0.10);
    color: var(--jh-primary);
    font-weight: 700;
}
.jh-leaguenav__group--hot .jh-leaguenav__item {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--jh-warning);
    border-radius: 0 var(--jh-radius) var(--jh-radius) 0;
    font-weight: 700;
}
.jh-leaguenav__group--hot .jh-leaguenav__item:hover {
    background: rgba(245, 158, 11, 0.16);
}
.jh-leaguenav__group--hot .jh-leaguenav__item.is-current {
    border-left-color: var(--jh-primary);
}
.jh-leaguenav__logo {
    width: 20px; height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.jh-leaguenav__logo--ph {
    border-radius: 50%;
    background: var(--jh-border);
}
.jh-leaguenav__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Phần còn lại gom theo quốc gia — khối thu gọn (collapsible) */
.jh-leaguenav__country { border-bottom: 1px solid var(--jh-border); }
.jh-leaguenav__country:last-child { border-bottom: none; }
.jh-leaguenav__country-sum {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jh-text);
    list-style: none;
    border-radius: var(--jh-radius);
}
.jh-leaguenav__country-sum::-webkit-details-marker { display: none; }
.jh-leaguenav__country-sum:hover { background: var(--jh-bg-hover); }
.jh-leaguenav__country-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jh-leaguenav__country-count {
    font-size: 0.7rem;
    color: var(--jh-muted);
    background: var(--jh-bg-soft);
    border-radius: 99px;
    padding: 0.05rem 0.45rem;
}
.jh-leaguenav__country-sum::after {
    content: '';
    width: 7px; height: 7px;
    border-right: 2px solid var(--jh-muted);
    border-bottom: 2px solid var(--jh-muted);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.jh-leaguenav__country[open] > .jh-leaguenav__country-sum::after { transform: rotate(45deg); }
.jh-leaguenav__list--sub { padding-left: 0.5rem; }
.jh-leaguenav__list--sub .jh-leaguenav__item { font-size: 0.82rem; padding: 0.3rem 0.5rem; }

/* Dropdown chọn league: ẩn trên desktop, chỉ hiện ở mobile */
.jh-leaguenav__select { display: none; }
.jh-leaguenav__countries { display: block; }

/* =====================================================================
   Khối mạng xã hội cuối trang — Item 4
   ===================================================================== */
.jh-social {
    border-top: 1px solid var(--jh-border);
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    background: var(--jh-bg-soft);
}

/* Footer plugin — link About/Termos/Privacidade + copyright */
.jh-footer {
    border-top: 1px solid var(--jh-border);
    background: var(--jh-bar);
    padding: 1.1rem 0;
}
.jh-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}
.jh-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.2rem;
}
.jh-footer__link {
    color: var(--jh-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.jh-footer__link:hover { color: var(--jh-primary); text-decoration: underline; }
.jh-footer__copy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--jh-muted);
}
.jh-social__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    text-align: center;
}
.jh-social__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.jh-social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 99px;
    background: var(--jh-bg);
    border: 1px solid var(--jh-border);
    color: var(--jh-text);
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.jh-social__link:hover { transform: translateY(-1px); }
.jh-social__link--facebook:hover  { border-color: #1877F2; color: #1877F2; }
.jh-social__link--instagram:hover { border-color: #E1306C; color: #E1306C; }
.jh-social__link--x:hover         { border-color: var(--jh-text); }
.jh-social__link--youtube:hover   { border-color: #FF0000; color: #FF0000; }
.jh-social__link--telegram:hover  { border-color: #229ED2; color: #229ED2; }

/* ===== Social + footer trên trang WP tĩnh (Sobre/Termos/Privacidade) =====
   Render qua hook (ngoài .entry-content) nên cần tự canh khung 600px.
   Bỏ box xám nặng của social để nhẹ, liền mạch — chỉ còn 1 dải footer rõ ràng. */
.jh-static-chrome {
    max-width: var(--jh-site-width, 1200px);
    margin: 2rem auto 0;
    width: 100%;
    box-sizing: border-box;
}
.jh-static-chrome .jh-social {
    background: transparent;
    margin-top: 0;
    padding: 1.25rem 0 1rem;
}

/* ===== Responsive: mobile → sidebar thành dải chip cuộn ngang trên đầu ===== */
@media (max-width: 900px) {
    .jh-shell { display: block; }
    .jh-shell__side {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0.75rem;
    }
    .jh-leaguenav__group { margin-bottom: 0.5rem; }
    /* Chỉ nhóm "Em destaque" cuộn ngang dạng chip; các quốc gia vẫn list dọc */
    .jh-leaguenav__group--hot .jh-leaguenav__list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.4rem;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
    .jh-leaguenav__group--hot .jh-leaguenav__item {
        flex: 0 0 auto;
        padding: 0.35rem 0.7rem;
    }
    .jh-leaguenav__name { max-width: 160px; }

    /* Mobile: phần không-hot dùng dropdown cho gọn, ẩn list quốc gia */
    .jh-leaguenav__select {
        display: block;
        width: 100%;
        padding: 0.55rem 0.7rem;
        font-size: 0.9rem;
        color: var(--jh-text);
        background: var(--jh-bg);
        border: 1px solid var(--jh-border);
        border-radius: var(--jh-radius);
        box-sizing: border-box;
    }
    .jh-leaguenav__countries { display: none; }
}

/* =====================================================================
   League fixtures list — gom nhóm theo ngày (tab Próximos / Resultados)
   ===================================================================== */
.jh-datelist__group { margin-bottom: 1.25rem; }
.jh-datelist__date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jh-muted);
    text-transform: capitalize;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.6rem;
    background: var(--jh-bg-soft);
    border-radius: var(--jh-radius);
}
.jh-datelist__items { display: flex; flex-direction: column; gap: 0.4rem; }

/* =====================================================================
   TOP-NAV menu (desktop) — Hoje · Ao Vivo · Amanhã · Ontem · Ligas ▾ · Mais ▾
   NOTE: list-style/margin/padding cho .jh-topnav__menu (+ li) đã được set
         ở block "Theme override hardening" cuối file với !important.
   ===================================================================== */
.jh-topnav__menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
}
.jh-topnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    /* Topnav bg là --jh-navy (#070C18 / #0B1220 trong light mode). Trong light mode
       --jh-text cũng = #0B1220 → trùng màu nền. Dùng màu sáng cố định ở đây để
       menu luôn đọc được bất kể OS prefers-color-scheme. */
    color: #E7ECF5;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.jh-topnav__link:hover { background: var(--jh-bg-hover); color: #ffffff; text-decoration: none; }
.jh-topnav__link.is-active {
    color: var(--jh-primary);
    background: rgba(0, 224, 138, 0.08);
}
.jh-topnav__link--live { color: var(--jh-primary); }
.jh-topnav__link--live .jh-topnav__live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--jh-primary);
    box-shadow: 0 0 0 3px rgba(0, 224, 138, 0.2);
    animation: jh-pulse 1.4s ease-in-out infinite;
}
.jh-topnav__link--live .jh-topnav__live-count {
    font-size: 0.7rem;
    padding: 1px 6px;
    background: var(--jh-primary);
    color: #0B1220;
    border-radius: 999px;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
}
.jh-topnav__link--live .jh-topnav__live-count:empty,
.jh-topnav__link--live .jh-topnav__live-count[data-jh-live-count="0"] {
    display: none;
}
@keyframes jh-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 224, 138, 0.18); }
    50%      { box-shadow: 0 0 0 5px rgba(0, 224, 138, 0.05); }
}

/* Dropdown panels (Ligas / Mais) */
.jh-topnav__dropdown { position: relative; }
.jh-topnav__caret { transition: transform 0.15s; }
.jh-topnav__dropdown.is-open .jh-topnav__caret { transform: rotate(180deg); }

/* NOTE: display none/block + position absolute được set bởi hardening block (cuối file) với !important.
   Tại đây chỉ giữ phần style hình thức (background/border/shadow/padding) áp dụng khi panel đã mở. */
.jh-topnav__panel {
    top: calc(100% + 8px);
    left: 0;
    z-index: 9000;
    min-width: 280px;
    background: var(--jh-bg-card);
    border: 1px solid var(--jh-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02);
    padding: 0.4rem;
}
.jh-topnav__panel--narrow { min-width: 180px; }
.jh-topnav__panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}
.jh-topnav__panel-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--jh-text);
    text-decoration: none;
    font-size: 0.9rem;
}
.jh-topnav__panel-item:hover { background: var(--jh-bg-hover); text-decoration: none; }
.jh-topnav__panel-item.is-active { color: var(--jh-primary); background: rgba(0, 224, 138, 0.06); }
.jh-topnav__panel-item img { border-radius: 4px; flex: 0 0 auto; }
.jh-topnav__panel-name {
    display: flex; flex-direction: column; line-height: 1.25;
    min-width: 0;
}
.jh-topnav__panel-country {
    font-size: 0.72rem; font-style: normal;
    color: var(--jh-muted); font-weight: 500;
}
.jh-topnav__panel-empty {
    padding: 1rem; font-size: 0.85rem;
    color: var(--jh-muted); text-align: center; margin: 0;
}

/* =====================================================================
   BOTTOM-NAV (mobile) — 5 tab. display:none / flex được set bởi hardening
   block ở cuối file với !important; ở đây chỉ định nghĩa layout/style cơ bản.
   ===================================================================== */
.jh-bottomnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9100;
    background: var(--jh-navy);
    border-top: 1px solid var(--jh-border);
    padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px -8px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}
.jh-bottomnav__tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--jh-muted);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
    transition: color 0.15s;
}
.jh-bottomnav__tab:hover { color: var(--jh-text); text-decoration: none; }
.jh-bottomnav__tab.is-active { color: var(--jh-primary); }
.jh-bottomnav__tab.is-active .jh-icon { transform: scale(1.05); }
.jh-bottomnav__label {
    font-size: 0.66rem;
    letter-spacing: 0.2px;
    margin-top: 1px;
}
.jh-bottomnav__live-wrap { position: relative; line-height: 0; }
.jh-bottomnav__tab--live .jh-icon { color: var(--jh-primary); }
.jh-bottomnav__count {
    position: absolute;
    top: -4px; right: -10px;
    background: var(--jh-primary);
    color: #0B1220;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}
.jh-bottomnav__count:empty,
.jh-bottomnav__count[data-jh-live-count="0"] { display: none; }

/* =====================================================================
   BOTTOM-SHEET (drawer mở từ bottom-nav Ligas/Mais)
   ===================================================================== */
.jh-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9200;
    opacity: 0;
    transition: opacity 0.2s;
}
.jh-sheet-backdrop.is-open { opacity: 1; }

.jh-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9300;
    background: var(--jh-bg-card);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-top: 1px solid var(--jh-border);
    max-height: 75vh;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    box-shadow: 0 -12px 32px -8px rgba(0, 0, 0, 0.5);
}
.jh-sheet.is-open { transform: translateY(0); }
.jh-sheet__inner {
    display: flex;
    flex-direction: column;
    max-height: 75vh;
}
.jh-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem 0.6rem;
    border-bottom: 1px solid var(--jh-border);
    position: relative;
}
.jh-sheet__head::before {
    /* Drag-handle line */
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    background: var(--jh-border);
    border-radius: 999px;
}
.jh-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--jh-text);
}
.jh-sheet__close {
    background: transparent;
    border: none;
    color: var(--jh-muted);
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jh-sheet__close:hover { color: var(--jh-text); background: var(--jh-bg-hover); }
.jh-sheet__body {
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
    -webkit-overflow-scrolling: touch;
}
.jh-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.jh-sheet__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.75rem;
    color: var(--jh-text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
}
.jh-sheet__item:hover, .jh-sheet__item:active { background: var(--jh-bg-hover); text-decoration: none; }
.jh-sheet__item img { border-radius: 4px; flex: 0 0 auto; }
.jh-sheet__item-text {
    display: flex; flex-direction: column;
    line-height: 1.3;
}
.jh-sheet__item-text strong { font-weight: 600; }
.jh-sheet__item-text em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--jh-muted);
    font-weight: 500;
    margin-top: 1px;
}
.jh-sheet__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--jh-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================================
   Responsive — mobile <= 768px
   ===================================================================== */
@media (max-width: 768px) {
    /* Mobile: rút gọn top-nav. Menu chính chuyển xuống bottom-nav.
       Topnav full-width (override desktop cap) để khớp với bottom-nav cùng trải edge-to-edge.
       Brand-name VẪN hiển thị vì chỗ còn rộng sau khi ẩn menu giữa. */
    .jh-topnav {
        max-width: 100% !important;
        margin: 0 !important;
    }
    .jh-topnav__menu { display: none; }
    /* Brand-name + brand-icon đều hiện */

    /* Show bottom-nav */
    .jh-bottomnav {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
    }

    /* Push content lên trên bottom-nav (64px ~ tab + safe area) */
    body.jh-fullwidth { padding-bottom: 72px; }

    /* Floating live button hide trên mobile — bottom-nav đã có Ao Vivo tab */
    .jh-float-live { display: none !important; }
}

/* NOTE: Desktop hide bottom-nav/sheet/backdrop đã được handle bởi
   hardening block cuối file (.jh-bottomnav base + .jh-sheet:not(.is-open) + .jh-sheet-backdrop:not(.is-open)) */

/* =====================================================================
   FAVORITES — ⭐ button + "Seus times" section
   ===================================================================== */
.jh-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--jh-muted);
    padding: 4px;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
    line-height: 0;
    font-family: inherit;
    transition: color 0.15s, background 0.15s, transform 0.15s;
    position: relative;
}
.jh-fav-btn:hover { color: var(--jh-accent); background: rgba(255, 176, 32, 0.08); }
.jh-fav-btn:active { transform: scale(0.92); }
.jh-fav-btn.is-fav { color: var(--jh-accent); }
.jh-fav-btn--md { padding: 6px; }
.jh-fav-btn--md .jh-icon { width: 22px; height: 22px; }
.jh-fav-btn__star { display: inline-block; }
.jh-fav-btn__star--filled { display: none; }
.jh-fav-btn.is-fav .jh-fav-btn__star--outline { display: none; }
.jh-fav-btn.is-fav .jh-fav-btn__star--filled  { display: inline-block; }

/* Screen reader only — WP standard */
.jh-fav-btn .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0; word-wrap: normal !important;
}

/* "Seus times" section trên home */
.jh-favs-section {
    margin-bottom: 1.2rem;
    background: var(--jh-bg-card);
    border: 1px solid var(--jh-border);
    border-radius: var(--jh-radius);
    box-shadow: var(--jh-shadow);
    overflow: hidden;
}
.jh-favs-section.is-empty .jh-favs-section__head {
    border-bottom: none;
}
.jh-favs-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--jh-border);
    background: linear-gradient(180deg, var(--jh-bg-card) 0%, var(--jh-bg-soft) 100%);
}
.jh-favs-section__title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jh-text);
}
.jh-favs-section__title .jh-icon { color: var(--jh-accent); }

/* Nút "Limpar tudo" — chỉ hiện khi có favorites (JS toggle [hidden]) */
.jh-favs-section__clear {
    background: transparent;
    border: 1px solid var(--jh-border);
    color: var(--jh-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.jh-favs-section__clear:hover {
    color: var(--jh-danger);
    border-color: var(--jh-danger);
    background: rgba(255, 85, 119, 0.08);
}
.jh-favs-section__clear[hidden] { display: none; }

.jh-favs-section__body { padding: 0.6rem 0.5rem 0.9rem; }
.jh-favs-section__hint,
.jh-favs-section__loading {
    margin: 0.6rem 0;
    padding: 0 0.75rem;
    font-size: 0.88rem;
    color: var(--jh-muted);
    line-height: 1.45;
}
.jh-favs-section__date {
    margin: 0.7rem 0.5rem 0.3rem;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jh-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.jh-favs-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.jh-favs-section__item a {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.8rem;
    padding: 0.55rem 0.85rem;
    color: var(--jh-text);
    text-decoration: none;
    border-top: 1px solid var(--jh-border);
}
.jh-favs-section__item:first-child a { border-top: none; }
.jh-favs-section__item a:hover { background: var(--jh-bg-hover); text-decoration: none; }
.jh-favs-section__time {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jh-muted);
    text-align: center;
    line-height: 1.1;
}
.jh-favs-section__teams {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
}
.jh-favs-section__teams span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jh-favs-section__league {
    font-size: 0.72rem;
    color: var(--jh-muted);
    font-weight: 500;
    text-align: right;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Star button positioning trong sidebar leaguenav */
.jh-leaguenav__row {
    display: flex;
    align-items: center;
    gap: 0;
}
.jh-leaguenav__row .jh-leaguenav__item { flex: 1 1 auto; }
.jh-leaguenav__row .jh-fav-btn {
    flex: 0 0 auto;
    margin-right: 4px;
    opacity: 0.55;
    transition: opacity 0.15s;
}
.jh-leaguenav__row:hover .jh-fav-btn,
.jh-leaguenav__row .jh-fav-btn.is-fav,
.jh-leaguenav__row .jh-fav-btn:focus { opacity: 1; }

/* League page title + ⭐ */
.jh-league-header__info .jh-page-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* =====================================================================
   v1.0.1 — Theme override hardening
   GeneratePress + một số theme khác apply list-style/padding/color cho
   các <ul>/<li>/<a> trong .site-content. Tăng specificity + !important
   để đảm bảo top-nav menu render chuẩn trên mọi theme.
   ===================================================================== */
.jh-page .jh-topnav__menu,
.jh-topnav .jh-topnav__menu {
    list-style: none !important;
    margin: 0 0 0 0.6rem !important;
    padding: 0 !important;
}
.jh-page .jh-topnav__menu li,
.jh-topnav .jh-topnav__menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.jh-page .jh-topnav__menu li::before,
.jh-topnav .jh-topnav__menu li::before {
    content: none !important;
    display: none !important;
}
.jh-topnav__menu .jh-topnav__link,
.jh-topnav__menu .jh-topnav__link:focus,
.jh-topnav__menu .jh-topnav__link:visited {
    color: #E7ECF5 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.jh-topnav__menu .jh-topnav__link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.jh-topnav__menu .jh-topnav__link.is-active {
    color: var(--jh-primary) !important;
}
.jh-topnav__menu .jh-topnav__link--live,
.jh-topnav__menu .jh-topnav__link--live:hover {
    color: var(--jh-primary) !important;
}

/* Dropdown panel — STRONG hide by default (theme có thể override visibility) */
.jh-topnav__panel {
    display: none !important;
    position: absolute !important;
}
.jh-topnav__dropdown.is-open > .jh-topnav__panel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
.jh-topnav__panel-list,
.jh-topnav__panel-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.jh-topnav__panel-list li::before { content: none !important; }
.jh-topnav__panel-item,
.jh-topnav__panel-item:hover,
.jh-topnav__panel-item:visited {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Bottom-nav — HIDE on desktop, SHOW on mobile (override theme `display`) */
.jh-bottomnav {
    display: none !important;
}
@media (max-width: 768px) {
    .jh-bottomnav {
        display: flex !important;
    }
}

/* Bottom-sheet — hidden by default trừ khi .is-open */
.jh-sheet:not(.is-open),
.jh-sheet[hidden] { display: none !important; }
.jh-sheet-backdrop:not(.is-open),
.jh-sheet-backdrop[hidden] { display: none !important; }
.jh-sheet.is-open { display: block !important; }
.jh-sheet-backdrop.is-open { display: block !important; }
