/* =========================================================
   H2H PICKS / MARKET PAGES
   ========================================================= */
.h2h-page-wrap {
    display: grid;
    gap: 16px;
}

.h2h-page-hero,
.h2h-pick-card,
.h2h-empty {
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(83,255,80,.10), transparent 34%),
        linear-gradient(180deg, rgba(5,19,10,.96), rgba(2,8,5,.98));
    border: 1px solid rgba(83,255,80,.18);
    color: #fff;
}

.h2h-page-hero {
    padding: 22px;
    text-align: center;
}

.h2h-page-hero span {
    color: #55f041;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-page-hero h1 {
    margin: 6px 0;
    font-size: 30px;
    font-weight: 1000;
}

.h2h-page-hero p {
    margin: 0;
    color: rgba(230,255,232,.62);
    font-size: 13px;
    font-weight: 800;
}

.h2h-market-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.h2h-market-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 10px;
    background: rgba(83,255,80,.10);
    border: 1px solid rgba(83,255,80,.16);
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

.h2h-market-tabs a:hover {
    background: linear-gradient(180deg, #34ff43, #0c8f22);
    color: #031006;
}

.h2h-picks-list {
    display: grid;
    gap: 14px;
}

.h2h-pick-card {
    padding: 16px;
    display: grid;
    gap: 13px;
}

.h2h-pick-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.h2h-pick-top span {
    color: #55f041;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-pick-top strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 1000;
}

.h2h-pick-percent {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(83,255,80,.12);
    border: 1px solid rgba(83,255,80,.22);
    color: #55f041;
    font-size: 18px;
    font-weight: 1000;
}

.h2h-pick-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(0,0,0,.22);
}

.h2h-pick-match div {
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.h2h-pick-match img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.h2h-pick-match span {
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}

.h2h-pick-match strong {
    color: #55f041;
    font-size: 13px;
    font-weight: 1000;
}

.h2h-pick-tip {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
}

.h2h-pick-tip span {
    color: rgba(230,255,232,.62);
    font-size: 12px;
    font-weight: 1000;
}

.h2h-pick-tip strong {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(83,255,80,.12);
    border: 1px solid rgba(83,255,80,.20);
    color: #55f041;
    font-size: 13px;
    font-weight: 1000;
}

.h2h-pick-tip em {
    color: rgba(230,255,232,.58);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.h2h-pick-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.h2h-pick-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #55f041, #0c8f22);
}

.h2h-last-table {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.07);
}

.h2h-last-head,
.h2h-last-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 70px;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 0 11px;
}

.h2h-last-head {
    background: rgba(83,255,80,.10);
    color: #55f041;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-last-row {
    border-top: 1px solid rgba(255,255,255,.055);
    color: rgba(230,255,232,.72);
    font-size: 12px;
    font-weight: 850;
}

.h2h-last-row strong {
    color: #fff;
    text-align: right;
}

.h2h-pick-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #34ff43, #0c8f22);
    color: #031006;
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

.h2h-empty {
    padding: 26px;
    text-align: center;
    color: rgba(230,255,232,.65);
    font-weight: 900;
}


/* =========================================================
   HOME TOP INTELLIGENCE + LIVE TIME
   ========================================================= */
.h2h-intel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .95fr);
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}

.h2h-intel-card {
    min-height: 190px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: grid;
    gap: 13px;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(83,255,80,.13), transparent 34%),
        linear-gradient(180deg, rgba(5,24,10,.96), rgba(1,8,4,.98));
    border: 1px solid rgba(83,255,80,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 16px 38px rgba(0,0,0,.18);
}

.h2h-intel-card:hover {
    border-color: rgba(83,255,80,.42);
    transform: translateY(-1px);
}

.h2h-intel-best {
    background:
        radial-gradient(circle at 50% 20%, rgba(83,255,80,.16), transparent 36%),
        linear-gradient(180deg, rgba(7,31,14,.96), rgba(1,8,4,.98));
}

.h2h-intel-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-intel-kicker i {
    color: #55f041;
}

.h2h-intel-live .h2h-intel-kicker i {
    color: #ff3838;
    font-size: 9px;
    text-shadow: 0 0 12px rgba(255,56,56,.9);
}

.h2h-intel-kicker small {
    margin-left: auto;
    color: rgba(230,255,232,.62);
    font-size: 11px;
    font-weight: 900;
    text-transform: none;
}

.h2h-intel-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: center;
}

.h2h-intel-teams div {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
}

.h2h-intel-teams img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.h2h-intel-teams span {
    max-width: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h2h-intel-teams strong {
    color: #55f041;
    font-size: 13px;
    font-weight: 1000;
}

.h2h-intel-pickline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.h2h-intel-pickline span {
    color: #55f041;
    font-size: 18px;
    line-height: 1;
    font-weight: 1000;
}

.h2h-intel-pickline em {
    min-width: 62px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(180deg, #34ff43, #0c8f22);
    color: #fff;
    font-style: normal;
    font-size: 18px;
    font-weight: 1000;
    box-shadow: 0 0 24px rgba(52,255,67,.25);
}

.h2h-intel-progress {
    display: grid;
    grid-template-columns: auto repeat(8, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: rgba(230,255,232,.72);
    font-size: 12px;
    font-weight: 900;
}

.h2h-intel-progress i {
    height: 5px;
    border-radius: 999px;
    background: #55f041;
    box-shadow: 0 0 10px rgba(83,255,80,.35);
}

.h2h-intel-progress i.muted {
    background: rgba(255,255,255,.14);
    box-shadow: none;
}

.h2h-intel-progress strong {
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
}

.h2h-intel-live-match {
    display: grid;
    gap: 9px;
}

.h2h-intel-live-match > span,
.h2h-intel-h2h-match span {
    color: rgba(230,255,232,.62);
    font-size: 11px;
    font-weight: 900;
}

.h2h-intel-live-match div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.h2h-intel-live-match strong {
    min-width: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.h2h-intel-live-match em {
    color: #fff;
    font-size: 20px;
    font-style: normal;
    font-weight: 1000;
}

.h2h-intel-live-match b {
    width: max-content;
    color: #ff3838;
    font-size: 12px;
    font-weight: 1000;
    text-shadow: 0 0 12px rgba(255,56,56,.55);
}

.h2h-intel-h2h {
    border-color: rgba(83,255,80,.34);
}

.h2h-intel-h2h-match {
    display: grid;
    gap: 4px;
}

.h2h-intel-h2h-match strong {
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 1000;
}

.h2h-intel-h2h-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.h2h-intel-h2h-bottom div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.h2h-intel-h2h-bottom span {
    color: rgba(230,255,232,.62);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-intel-h2h-bottom strong {
    color: #55f041;
    font-size: 12px;
    line-height: 1.05;
    font-weight: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-intel-h2h-bottom small {
    color: rgba(230,255,232,.60);
    font-size: 11px;
    font-weight: 900;
}

.h2h-intel-h2h-bottom em {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(83,255,80,.13);
    border: 1px solid rgba(83,255,80,.30);
    color: #55f041;
    font-size: 18px;
    font-style: normal;
    font-weight: 1000;
    box-shadow: 0 0 24px rgba(83,255,80,.14);
}

.h2h-intel-empty {
    color: rgba(230,255,232,.64);
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .h2h-intel-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .h2h-intel-card {
        min-height: auto;
        padding: 13px;
    }

    .h2h-intel-teams img {
        width: 42px;
        height: 42px;
    }

    .h2h-intel-pickline span {
        font-size: 20px;
    }

    .h2h-intel-progress {
        grid-template-columns: auto repeat(4, 1fr) auto;
    }

    .h2h-intel-progress i:nth-of-type(n+5) {
        display: none;
    }
}


.h2h-time.live,
    .h2h-time.half,
    [data-h2h-live-time].live,
    [data-h2h-live-time].half {
        color: #ff3030 !important;
        font-weight: 1000 !important;
        animation: h2hLiveBlink 0.75s infinite !important;
        text-shadow: 0 0 14px rgba(255, 48, 48, .9) !important;
    }

    .h2h-time.finished,
    [data-h2h-live-time].finished {
        color: #ffffff !important;
        animation: none !important;
        text-shadow: none !important;
    }

    @keyframes h2hLiveBlink {
        0%, 100% {
            opacity: 1;
        }

        50% {
            opacity: .35;
        }
    }


.h2h-trend-mini-card {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.h2h-trend-mini-content {
    min-width: 0;
    display: grid;
    gap: 3px;
    text-decoration: none;
}

.h2h-trend-mini-content span {
    color: #55f041;
    font-size: 10px;
    font-weight: 1000;
    line-height: 1;
    text-transform: uppercase;
}

.h2h-trend-mini-content strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 1000;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-trend-mini-content small {
    color: rgba(230,255,232,.62);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-trend-mini-percent {
    min-width: 58px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, #34ff43, #0c8f22);
    color: #ffffff;
    font-size: 16px;
    font-weight: 1000;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(52,255,67,.23);
}

@media (max-width: 700px) {
    .h2h-trend-mini-card {
        grid-template-columns: 46px minmax(0, 1fr) auto !important;
        gap: 9px !important;
    }

    .h2h-trend-mini-content strong {
        font-size: 13px;
    }

    .h2h-trend-mini-percent {
        min-width: 48px;
        min-height: 34px;
        font-size: 13px;
    }
}




/* =========================================================
   LAPTOP COMPACT FIX - 100% ZOOM
   ========================================================= */
@media (max-width: 1500px) {
    .h2h-header {
        min-height: 64px !important;
        padding: 0 18px !important;
    }

    .h2h-logo img,
    .h2h-brand-logo img {
        max-height: 42px !important;
    }

    .h2h-brand-title,
    .h2h-logo-title {
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .h2h-brand-subtitle,
    .h2h-logo-subtitle {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }

    .h2h-nav {
        gap: 16px !important;
    }

    .h2h-nav a,
    .h2h-nav-link,
    .h2h-nav-dropbtn {
        font-size: 12px !important;
        line-height: 1.1 !important;
        padding: 20px 0 !important;
        white-space: nowrap !important;
    }

    .h2h-nav-dropdown-menu a {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }

    .h2h-header-actions {
        gap: 8px !important;
    }

    .h2h-search,
    .h2h-header-search input {
        width: 210px !important;
        height: 42px !important;
        font-size: 13px !important;
    }

    .h2h-telegram-btn,
    .h2h-header-btn,
    .h2h-icon-btn {
        height: 42px !important;
        min-width: 42px !important;
        font-size: 13px !important;
        padding: 0 13px !important;
    }

    .h2h-dashboard-layout {
        grid-template-columns: 250px minmax(0, 1fr) 300px !important;
        gap: 14px !important;
        padding: 14px !important;
    }

    .h2h-sidebar {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }

    .h2h-rightbar,
    .h2h-rightbar-pro,
    .pp-right {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }

    .h2h-intel-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr) !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    .h2h-intel-card {
        min-height: 160px !important;
        padding: 13px !important;
        border-radius: 13px !important;
    }

    .h2h-intel-kicker {
        font-size: 12px !important;
    }

    .h2h-intel-teams img {
        width: 44px !important;
        height: 44px !important;
    }

    .h2h-intel-teams span {
        font-size: 11px !important;
    }

    .h2h-intel-pickline span {
        font-size: 22px !important;
    }

    .h2h-intel-pickline em {
        min-width: 54px !important;
        min-height: 36px !important;
        font-size: 16px !important;
    }

    .h2h-intel-h2h-match strong {
        font-size: 15px !important;
    }

    .h2h-intel-h2h-bottom strong {
        font-size: 18px !important;
    }

    .h2h-intel-h2h-bottom em {
        width: 56px !important;
        height: 56px !important;
        font-size: 17px !important;
    }

    .h2h-filter-card {
        padding: 10px 12px !important;
    }

    .h2h-tab {
        min-height: 36px !important;
        padding: 0 18px !important;
        font-size: 12px !important;
    }

    .h2h-select,
    .h2h-date-btn,
    .h2h-filter-btn {
        min-height: 36px !important;
        font-size: 12px !important;
        padding: 0 12px !important;
    }

    .h2h-card-title {
        font-size: 18px !important;
    }

    .h2h-table th {
        font-size: 10px !important;
    }

    .h2h-table td {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .h2h-team-line span {
        font-size: 12px !important;
    }

    .h2h-best-tip {
        min-width: 74px !important;
        min-height: 32px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 1350px) {
    .h2h-nav {
        gap: 12px !important;
    }

    .h2h-nav a,
    .h2h-nav-link,
    .h2h-nav-dropbtn {
        font-size: 11px !important;
    }

    .h2h-header-search,
    .h2h-search {
        width: 170px !important;
    }

    .h2h-dashboard-layout {
        grid-template-columns: 230px minmax(0, 1fr) 280px !important;
    }

    .h2h-sidebar {
        width: 230px !important;
        min-width: 230px !important;
        max-width: 230px !important;
    }

    .h2h-rightbar,
    .h2h-rightbar-pro,
    .pp-right {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }
}

/* =========================================================
   MOBILE HOME FIX
   ========================================================= */
@media (max-width: 900px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .h2h-dashboard-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .h2h-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .h2h-sidebar,
    .pp-sidebar,
    .h2h-rightbar,
    .h2h-rightbar-pro,
    .pp-right {
        display: none !important;
    }

    .h2h-intel-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 0 10px !important;
    }

    .h2h-intel-card {
        width: 100% !important;
        min-height: auto !important;
        padding: 12px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .h2h-intel-kicker {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    .h2h-intel-teams {
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .h2h-intel-teams img {
        width: 38px !important;
        height: 38px !important;
    }

    .h2h-intel-teams span {
        font-size: 11px !important;
    }

    .h2h-intel-pickline span {
        font-size: 20px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .h2h-intel-pickline em {
        min-width: 50px !important;
        min-height: 34px !important;
        font-size: 15px !important;
    }

    .h2h-intel-progress {
        grid-template-columns: auto repeat(5, 1fr) auto !important;
        gap: 6px !important;
        font-size: 10px !important;
    }

    .h2h-intel-progress i:nth-of-type(n+6) {
        display: none !important;
    }

    .h2h-intel-h2h-match strong {
        font-size: 14px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .h2h-intel-h2h-bottom {
        grid-template-columns: minmax(0, 1fr) 52px !important;
        gap: 8px !important;
    }

    .h2h-intel-h2h-bottom strong {
        font-size: 18px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .h2h-intel-h2h-bottom em {
        width: 52px !important;
        height: 52px !important;
        font-size: 16px !important;
    }

    .h2h-filter-card {
        padding: 10px !important;
        border-radius: 14px !important;
        display: grid !important;
        gap: 10px !important;
    }

    .h2h-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .h2h-tab {
        width: 100% !important;
        min-height: 36px !important;
        justify-content: center !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        border-radius: 9px !important;
    }

    .h2h-filter-actions {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) 38px !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .h2h-date-btn {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 38px !important;
        padding: 0 8px !important;
        justify-content: center !important;
        font-size: 11px !important;
        border-radius: 9px !important;
        text-align: center !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .h2h-matches-card {
        padding: 10px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .h2h-card-title {
        font-size: 17px !important;
        margin-bottom: 10px !important;
    }

    .h2h-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .h2h-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .h2h-table th {
        font-size: 9px !important;
        padding: 8px 5px !important;
    }

    .h2h-table td {
        padding: 8px 5px !important;
        font-size: 10px !important;
        vertical-align: middle !important;
    }

    .h2h-table th:first-child {
        width: 46px !important;
    }

    .h2h-table th.center {
        width: 44px !important;
    }

    .h2h-table th:last-child {
        width: 68px !important;
    }

    .h2h-league-row td {
        padding: 9px 6px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .h2h-league-row img {
        width: 16px !important;
        height: 16px !important;
        margin-right: 5px !important;
    }

    .h2h-time {
        font-size: 11px !important;
        min-width: 34px !important;
        white-space: nowrap !important;
    }

    .h2h-team-line {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) auto !important;
        gap: 5px !important;
        align-items: center !important;
        min-width: 0 !important;
        margin: 2px 0 !important;
    }

    .h2h-team-logo {
        width: 16px !important;
        height: 16px !important;
    }

    .h2h-team-line span:not(.h2h-score) {
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .h2h-score {
        font-size: 12px !important;
        min-width: 12px !important;
        text-align: right !important;
    }

    .h2h-percent {
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .h2h-mini-bar {
        width: 34px !important;
        height: 5px !important;
        margin: 4px auto 0 !important;
    }

    .h2h-best-tip {
        min-width: 54px !important;
        width: 54px !important;
        min-height: 30px !important;
        padding: 4px 5px !important;
        border-radius: 8px !important;
        font-size: 9px !important;
        line-height: 1.05 !important;
    }

    .h2h-best-tip strong {
        font-size: 9px !important;
        line-height: 1.05 !important;
        display: block !important;
    }

    .h2h-best-tip span {
        font-size: 10px !important;
    }

    .h2h-footer {
        display: grid !important;
        gap: 6px !important;
        text-align: center !important;
        font-size: 10px !important;
        padding: 12px 0 !important;
    }
}

@media (max-width: 390px) {
    .h2h-dashboard-layout {
        padding: 8px !important;
    }

    .h2h-table th.center,
    .h2h-table td.center {
        width: 38px !important;
    }

    .h2h-best-tip {
        width: 50px !important;
        min-width: 50px !important;
    }

    .h2h-team-line span:not(.h2h-score) {
        font-size: 10px !important;
    }
}

/* =========================================================
   MATCH FACTS PAGE - H2HFACTS STYLE
   Add this at the END of public/css/h2h-pages.css
   ========================================================= */

.h2h-facts-page .h2h-main {
    display: grid;
    gap: 14px;
}

.h2h-facts-hero {
    padding: 24px;
    text-align: center;
}

.h2h-facts-hero span {
    color: #55f041;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.h2h-facts-hero h1 {
    margin: 6px 0;
    color: #fff;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 1000;
}

.h2h-facts-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(230,255,232,.62);
    font-size: 13px;
    font-weight: 800;
}

.h2h-facts-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.h2h-facts-stat {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
}

.h2h-facts-stat i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 999px;
    background: rgba(83,255,80,.12);
    border: 1px solid rgba(83,255,80,.22);
    color: #55f041;
    font-size: 17px;
    box-shadow: 0 0 20px rgba(83,255,80,.12);
}

.h2h-facts-stat strong {
    display: block;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 1000;
}

.h2h-facts-stat span {
    display: block;
    margin-top: 4px;
    color: rgba(230,255,232,.62);
    font-size: 12px;
    font-weight: 900;
}

.h2h-facts-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
}

.h2h-facts-results {
    padding: 16px;
}

.h2h-facts-list {
    display: grid;
    gap: 16px;
}

.h2h-facts-league {
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(83,255,80,.08), transparent 35%),
        linear-gradient(180deg, rgba(5,19,10,.94), rgba(2,8,5,.98));
    border: 1px solid rgba(83,255,80,.18);
}

.h2h-facts-league-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(83,255,80,.08);
    border-bottom: 1px solid rgba(83,255,80,.12);
}

.h2h-facts-league-head div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.h2h-facts-league-head img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.h2h-facts-league-head span {
    color: #55f041;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-facts-league-head strong {
    min-width: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-facts-league-head em {
    color: rgba(230,255,232,.56);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.h2h-facts-cards {
    display: grid;
    gap: 0;
}

.h2h-fact-card {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.045);
}

.h2h-fact-card:first-child {
    border-top: 0;
}

.h2h-fact-match {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 94px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #fff;
    text-decoration: none;
}

.h2h-fact-time {
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
    white-space: nowrap;
}

.h2h-fact-time.live {
    color: #ff3030;
    animation: h2hLiveBlink .75s infinite;
}

.h2h-fact-time.finished {
    color: rgba(255,255,255,.88);
}

.h2h-fact-teams {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.h2h-fact-teams div {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.h2h-fact-teams img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.h2h-fact-teams span {
    min-width: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-fact-teams strong {
    color: #fff;
    font-size: 15px;
    font-weight: 1000;
}

.h2h-fact-teams b {
    color: #55f041;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    text-align: center;
}

.h2h-fact-open {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(83,255,80,.10);
    border: 1px solid rgba(83,255,80,.17);
    color: #55f041;
    font-size: 11px;
    font-weight: 1000;
}

.h2h-fact-items {
    display: grid;
    gap: 7px;
    padding: 0 14px 14px 88px;
}

.h2h-fact-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.20);
    border: 1px solid rgba(255,255,255,.055);
}

.h2h-fact-item i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(83,255,80,.10);
    color: #55f041;
    font-size: 11px;
}

.h2h-fact-item p {
    margin: 0;
    color: rgba(245,255,246,.88);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 850;
}

.h2h-fact-item.is-goals i,
.h2h-fact-item.is-btts i {
    color: #ffd645;
    background: rgba(255,214,69,.10);
}

.h2h-fact-item.is-defence i {
    color: #7fd7ff;
    background: rgba(127,215,255,.10);
}

.h2h-facts-empty {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    text-align: center;
    color: rgba(230,255,232,.64);
    font-weight: 900;
}

.h2h-facts-empty strong {
    color: #fff;
    font-size: 18px;
}

@media (max-width: 1500px) {
    .h2h-facts-stats {
        gap: 10px;
    }

    .h2h-facts-stat {
        min-height: 82px;
        padding: 12px;
    }

    .h2h-facts-stat i {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 15px;
    }

    .h2h-facts-stat strong {
        font-size: 22px;
    }

    .h2h-fact-match {
        grid-template-columns: 64px minmax(0, 1fr) 84px;
        gap: 10px;
        padding: 12px;
    }

    .h2h-fact-items {
        padding-left: 76px;
    }
}

@media (max-width: 900px) {
    .h2h-facts-page {
        display: block !important;
        padding: 10px !important;
    }

    .h2h-facts-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .h2h-facts-stat {
        min-height: 74px;
        padding: 10px;
    }

    .h2h-facts-stat i {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 13px;
    }

    .h2h-facts-stat strong {
        font-size: 19px;
    }

    .h2h-facts-stat span {
        font-size: 10px;
    }

    .h2h-facts-hero {
        padding: 16px;
    }

    .h2h-facts-hero h1 {
        font-size: 25px;
    }

    .h2h-facts-filter {
        display: grid;
        gap: 10px;
    }

    .h2h-facts-filter .h2h-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .h2h-facts-results {
        padding: 10px;
    }

    .h2h-facts-league-head {
        padding: 10px;
    }

    .h2h-fact-match {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
        padding: 11px 10px;
    }

    .h2h-fact-open {
        grid-column: 1 / -1;
        min-height: 32px;
    }

    .h2h-fact-teams {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .h2h-fact-teams b {
        display: none;
    }

    .h2h-fact-teams div {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 6px;
    }

    .h2h-fact-teams img {
        width: 18px;
        height: 18px;
    }

    .h2h-fact-teams span {
        font-size: 12px;
    }

    .h2h-fact-items {
        padding: 0 10px 11px 10px;
    }

    .h2h-fact-item {
        grid-template-columns: 22px minmax(0, 1fr);
        padding: 7px 8px;
    }

    .h2h-fact-item i {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .h2h-fact-item p {
        font-size: 11px;
    }
}