/* =========================================================
   H2H Page - Compact Modern Dark Gold Design
========================================================= */

.pp-home.pp-h2h-page {
    display: block !important;
    width: 100% !important;
}

.pp-home.pp-h2h-page > .pp-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* HERO */

.pp-h2h-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    margin-bottom: 18px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(245,166,35,0.08), transparent 35%),
        linear-gradient(180deg, #121922 0%, #0b1119 100%);
    border: 1px solid rgba(245,166,35,0.48);
    box-shadow: 0 14px 34px rgba(0,0,0,0.30);
}

.pp-h2h-label {
    display: inline-flex;
    margin-bottom: 7px;
    color: #f5a623;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.pp-h2h-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 0 #000;
}

.pp-h2h-hero p {
    margin: 8px 0 0;
    color: #cbd7ea;
    font-size: 13px;
    line-height: 1.45;
}

.pp-h2h-total {
    width: 86px;
    height: 72px;
    border-radius: 14px;
    background: #0f1722;
    border: 1px solid rgba(245,166,35,0.5);
    display: grid;
    place-items: center;
    text-align: center;
    flex: 0 0 auto;
}

.pp-h2h-total strong {
    color: #f5a623;
    font-size: 28px;
    font-weight: 1000;
    line-height: 1;
}

.pp-h2h-total span {
    margin-top: -10px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

/* FILTERS */

.pp-h2h-filterbar {
    display: grid;
    gap: 13px;
    margin-bottom: 18px;
}

.pp-h2h-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #121922 0%, #0c121a 100%);
    border: 1px solid rgba(255,255,255,0.08);
}

.pp-h2h-tab {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #101824;
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd7ea;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.pp-h2h-tab:hover,
.pp-h2h-tab.active {
    color: #f5a623;
    border-color: rgba(245,166,35,0.65);
    background: rgba(245,166,35,0.10);
}

/* DATE BAR */

.pp-h2h-datebar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #121922 0%, #0c121a 100%);
    border: 1px solid rgba(255,255,255,0.08);
}

.pp-h2h-date-list {
    display: grid;
    grid-template-columns: repeat(9, minmax(70px, 1fr));
    gap: 8px;
}

.pp-h2h-date-arrow,
.pp-h2h-date {
    text-decoration: none;
}

.pp-h2h-date-arrow {
    height: 52px;
    border-radius: 13px;
    background: #101824;
    border: 1px solid rgba(255,255,255,0.08);
    color: #f5a623;
    font-size: 28px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.pp-h2h-date {
    height: 52px;
    border-radius: 13px;
    background: #101824;
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 6px;
}

.pp-h2h-date span,
.pp-h2h-date em {
    color: #93a4bd;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.pp-h2h-date strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.pp-h2h-date.active {
    border-color: #f5a623;
    background:
        radial-gradient(circle at center bottom, rgba(245,166,35,0.25), transparent 70%),
        #141414;
}

.pp-h2h-date.active span,
.pp-h2h-date.active strong,
.pp-h2h-date.active em {
    color: #f5a623;
}

/* EMPTY */

.pp-h2h-empty {
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #101822;
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd7ea;
    text-align: center;
    font-weight: 800;
}

/* LIST */

.pp-h2h-list {
    display: grid;
    gap: 16px;
}

/* CARD */

.pp-h2h-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% -10%, rgba(245,166,35,0.08), transparent 26%),
        linear-gradient(135deg, rgba(245,166,35,0.06), transparent 28%),
        linear-gradient(180deg, #101820 0%, #0b1118 100%);
    border: 1px solid rgba(245,166,35,0.48);
    box-shadow: 0 18px 42px rgba(0,0,0,0.36);
}

.pp-h2h-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.018) 0,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 13px
        );
    pointer-events: none;
}

.pp-h2h-card > * {
    position: relative;
    z-index: 2;
}

/* CARD TOP */

.pp-h2h-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pp-h2h-league span {
    color: #c2d4ee;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pp-h2h-played {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.55);
    color: #f5a623;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

/* TEAMS */

.pp-h2h-teams-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 13px;
}

.pp-h2h-team-box {
    min-width: 0;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 5px;
}

.pp-h2h-team-box img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.42));
}

.pp-h2h-team-box strong {
    max-width: 100%;
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-h2h-team-box span {
    color: #f5a623;
    font-size: 9px;
    font-weight: 950;
}

.pp-h2h-vs {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    justify-self: center;
    background: #0b121c;
    border: 1px solid rgba(245,166,35,0.55);
    color: #f5a623;
    font-size: 18px;
    font-weight: 1000;
}

/* RESULT ROW */

.pp-h2h-result-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 9px;
}

.pp-h2h-result-row div {
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
}

.pp-h2h-result-row div.hot {
    background:
        radial-gradient(circle at left center, rgba(245,166,35,0.20), transparent 72%),
        rgba(245,166,35,0.09);
    border-color: rgba(245,166,35,0.62);
}

.pp-h2h-result-row strong {
    grid-row: 1 / 3;
    color: #f5a623;
    font-size: 31px;
    line-height: 1;
    font-weight: 1000;
}

.pp-h2h-result-row span {
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.pp-h2h-result-row em {
    color: #f5a623;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

/* PROGRESS */

.pp-h2h-progress {
    display: flex;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 10px;
}

.pp-h2h-progress div {
    height: 100%;
}

.pp-h2h-progress .home {
    background: #f5a623;
}

.pp-h2h-progress .draw {
    background: #9ca3af;
}

.pp-h2h-progress .away {
    background: #2478ff;
}

/* STREAKS CENTERED UNDER PROGRESS */

.pp-h2h-streaks-top {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 auto 12px auto !important;
    width: 100% !important;
    text-align: center !important;
}

.pp-h2h-streaks-top .pp-h2h-streak {
    width: auto !important;
    max-width: none !important;
    min-height: 34px !important;
    padding: 8px 12px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: rgba(245,166,35,0.13) !important;
    border: 1px solid rgba(245,166,35,0.55) !important;
    white-space: nowrap !important;
}

.pp-h2h-streaks-top .pp-h2h-streak span {
    font-size: 13px !important;
    line-height: 1 !important;
}

.pp-h2h-streaks-top .pp-h2h-streak strong {
    color: #f5a623 !important;
    font-size: 14px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
}

.pp-h2h-streaks-top .pp-h2h-streak em {
    color: #f5a623 !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 950 !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
}

/* INFO ROW */

.pp-h2h-info-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.pp-h2h-info-row div {
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.pp-h2h-info-row span {
    display: block;
    color: #c2d4ee;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-h2h-info-row strong {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.pp-h2h-info-row em {
    margin-left: 4px;
    color: #f5a623;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
}

/* BOTTOM ROW */

.pp-h2h-bottom-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 175px;
    gap: 12px;
    align-items: end;
}

/* COMPACT TABLE */

.pp-h2h-compact-table {
    width: 100%;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
}

.pp-h2h-compact-head,
.pp-h2h-compact-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    text-align: center;
}

.pp-h2h-compact-head {
    background: rgba(255,255,255,0.04);
}

.pp-h2h-compact-head span,
.pp-h2h-compact-head strong {
    padding: 6px 7px;
    color: #9fb8dc;
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-h2h-compact-head strong {
    color: #f5a623;
}

.pp-h2h-compact-row {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pp-h2h-compact-row span,
.pp-h2h-compact-row strong {
    padding: 6px 7px;
    color: #eaf2ff;
    font-size: 10px;
    font-weight: 850;
}

.pp-h2h-compact-row strong {
    color: #fff;
    font-weight: 950;
}

/* BUTTON */

.pp-h2h-open {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    background: rgba(245,166,35,0.16);
    border: 1px solid rgba(245,166,35,0.58);
    color: #f5a623;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
    justify-self: end;
}

.pp-h2h-open:hover {
    background: rgba(245,166,35,0.24);
}

/* LOAD MORE */

.pp-h2h-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.pp-h2h-loadmore-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.45);
    color: #f5a623;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 950;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .pp-h2h-date-list {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .pp-h2h-date {
        min-width: 78px;
    }

    .pp-h2h-info-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-h2h-bottom-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .pp-h2h-open {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .pp-h2h-hero {
        padding: 16px;
        align-items: flex-start;
    }

    .pp-h2h-hero h1 {
        font-size: 22px;
    }

    .pp-h2h-hero p {
        font-size: 12px;
    }

    .pp-h2h-total {
        display: none;
    }

    .pp-h2h-card {
        padding: 12px;
    }

    .pp-h2h-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .pp-h2h-teams-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pp-h2h-vs {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }

    .pp-h2h-result-row {
        grid-template-columns: 1fr;
    }

    .pp-h2h-info-row {
        grid-template-columns: 1fr;
    }

    .pp-h2h-streaks-top {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .pp-h2h-streaks-top .pp-h2h-streak {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .pp-h2h-datebar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .pp-h2h-date-arrow {
        height: 50px;
    }
}