:root {
    --h2h-bg: #020403;
    --h2h-bg-soft: #050907;
    --h2h-panel: rgba(3, 14, 8, 0.92);
    --h2h-panel-2: rgba(5, 18, 10, 0.96);
    --h2h-border: rgba(23, 255, 52, 0.26);
    --h2h-border-soft: rgba(23, 255, 52, 0.12);
    --h2h-green: #fff;
    --h2h-green-2: #0cc928;
    --h2h-green-dark: #053f13;
    --h2h-text: #f2fff4;
    --h2h-muted: #8c978f;
    --h2h-muted-2: #5d6962;
    --h2h-danger: #ff4d4d;
    --h2h-warning: #ffcc33;
    --h2h-shadow: 0 0 28px rgba(20, 255, 50, 0.13);
    --h2h-radius: 14px;
    --h2h-sidebar: 300px;
    --h2h-rightbar: 370px;
    --h2h-header: 86px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--h2h-bg);
}

body.h2h-body {
    margin: 0;
    min-height: 100vh;
    color: var(--h2h-text);
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% -5%, rgba(28, 255, 57, 0.12), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(28, 255, 57, 0.06), transparent 34%),
        linear-gradient(180deg, #020403 0%, #020403 55%, #000 100%);
    overflow-x: hidden;
}

body.h2h-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(28, 255, 57, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 255, 57, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.28;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
}

.h2h-app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Header */

.h2h-header {
    height: var(--h2h-header);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 22px 0 28px;
    background: rgba(1, 4, 2, 0.92);
    border-bottom: 1px solid var(--h2h-border-soft);
    backdrop-filter: blur(18px);
}

.h2h-logo {
    width: calc(var(--h2h-sidebar) - 34px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.h2h-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #020403;
    font-size: 24px;
    background:
        radial-gradient(circle at 35% 30%, #74ff81 0, #1cff39 38%, #058b1d 100%);
    box-shadow: 0 0 28px rgba(28, 255, 57, 0.34);
}

.h2h-logo-text {
    line-height: 1;
}

.h2h-logo-text strong {
    display: block;
    color: var(--h2h-green);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    font-style: italic;
}

.h2h-logo-text span {
    display: block;
    color: var(--h2h-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 4px;
    text-transform: uppercase;
}

.h2h-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    flex: 1;
}

.h2h-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #b8c2bb;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.h2h-nav a:hover,
.h2h-nav a.active {
    color: var(--h2h-green);
    border-bottom-color: var(--h2h-green);
    text-shadow: 0 0 18px rgba(28, 255, 57, 0.42);
}

.h2h-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h2h-search {
    height: 46px;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: #d8e3dc;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
}

.h2h-search input {
    width: 100%;
    color: var(--h2h-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
}

.h2h-icon-btn,
.h2h-telegram-btn,
.h2h-mobile-menu-btn {
    height: 46px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--h2h-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transition: 0.2s ease;
}

.h2h-icon-btn {
    width: 46px;
}

.h2h-telegram-btn {
    gap: 9px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(13, 96, 30, 0.92), rgba(3, 30, 10, 0.92));
    border-color: rgba(28, 255, 57, 0.45);
    box-shadow: inset 0 0 24px rgba(28, 255, 57, 0.14);
}

.h2h-icon-btn:hover,
.h2h-telegram-btn:hover,
.h2h-mobile-menu-btn:hover {
    border-color: rgba(28, 255, 57, 0.5);
    box-shadow: 0 0 18px rgba(28, 255, 57, 0.18);
}

.h2h-mobile-menu-btn {
    display: none;
    width: 46px;
}

/* Main layout */

.h2h-dashboard-layout {
    display: grid;
    grid-template-columns: var(--h2h-sidebar) minmax(0, 1fr) var(--h2h-rightbar);
    gap: 18px;
    padding: 18px 20px 20px;
}



.h2h-main {
    min-width: 0;
}

/* Cards */

.h2h-card {
    background:
        linear-gradient(180deg, rgba(8, 28, 13, 0.92), rgba(2, 7, 4, 0.96));
    border: 1px solid var(--h2h-border-soft);
    border-radius: var(--h2h-radius);
    box-shadow: inset 0 0 40px rgba(28, 255, 57, 0.035);
}

.h2h-card-glow {
    border-color: rgba(28, 255, 57, 0.54);
    box-shadow:
        inset 0 0 38px rgba(28, 255, 57, 0.1),
        0 0 26px rgba(28, 255, 57, 0.17);
}

.h2h-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.h2h-card-title i {
    color: var(--h2h-green);
}

/* Sidebar */

.h2h-sidebar::-webkit-scrollbar,
.h2h-table-wrap::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.h2h-sidebar::-webkit-scrollbar-thumb,
.h2h-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(28, 255, 57, 0.36);
    border-radius: 20px;
}

.h2h-menu-card {
    overflow: hidden;
}

.h2h-menu-active {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    color: var(--h2h-green);
    font-size: 14px;
    font-weight: 900;
    background:
        linear-gradient(90deg, rgba(28, 255, 57, 0.22), rgba(28, 255, 57, 0.05));
    border-bottom: 1px solid var(--h2h-border);
}

.h2h-menu-section {
    padding: 16px 18px 10px;
    color: #848f88;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.h2h-menu-list {
    padding: 0 10px 10px;
}

.h2h-menu-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 8px;
    border-radius: 10px;
    color: #cbd4ce;
    font-size: 14px;
    font-weight: 650;
}

.h2h-menu-item:hover {
    color: #fff;
    background: rgba(28, 255, 57, 0.08);
}

.h2h-menu-item img,
.h2h-team-logo,
.h2h-news-img {
    object-fit: cover;
}

.h2h-menu-item img {
    width: 23px;
    height: 23px;
    border-radius: 50%;
}

.h2h-menu-item i:first-child {
    width: 23px;
    color: var(--h2h-green);
    text-align: center;
}

.h2h-menu-item .star,
.h2h-menu-item .arrow {
    margin-left: auto;
    color: #78837b;
}

.h2h-ad-card {
    margin-top: 14px;
    padding: 18px;
    min-height: 124px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 80%, rgba(28, 255, 57, 0.38), transparent 30%),
        linear-gradient(180deg, rgba(8, 55, 18, 0.9), rgba(2, 12, 5, 0.96));
}

.h2h-ad-card strong {
    display: block;
    color: var(--h2h-green);
    font-size: 30px;
    line-height: 1;
}

.h2h-ad-card span {
    display: block;
    color: #eaffeb;
    font-size: 13px;
    font-weight: 800;
    margin-top: 7px;
    text-transform: uppercase;
}

.h2h-ad-card b {
    color: var(--h2h-green);
}

.h2h-ad-card button {
    margin-top: 12px;
    height: 30px;
    padding: 0 20px;
    color: #021305;
    font-size: 11px;
    font-weight: 900;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #78ff66, #13d52a);
    box-shadow: 0 0 20px rgba(28, 255, 57, 0.35);
}

/* Stats top */

.h2h-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.h2h-stat-box {
    min-height: 124px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
}

.h2h-stat-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, rgba(117, 255, 121, 0.5), rgba(12, 201, 40, 0.14) 44%, rgba(2, 18, 7, 0.9) 100%);
    border: 1px solid rgba(28, 255, 57, 0.45);
    box-shadow: inset 0 0 28px rgba(28, 255, 57, 0.14), 0 0 18px rgba(28, 255, 57, 0.12);
}

.h2h-stat-content strong {
    display: block;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.h2h-stat-content span {
    display: block;
    margin-top: 8px;
    color: #d4ddd7;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.h2h-stat-content small {
    display: block;
    margin-top: 6px;
    color: #8f9a93;
    font-size: 13px;
    font-weight: 600;
}

.h2h-value-card {
    grid-column: span 1;
}

.h2h-value-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.h2h-value-label {
    color: var(--h2h-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.h2h-value-league {
    margin-top: 8px;
    color: #aeb9b2;
    font-size: 13px;
    font-weight: 600;
}

.h2h-value-pick {
    margin-top: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.h2h-odd-pill {
    min-width: 70px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    border-radius: 10px;
    background: linear-gradient(180deg, #2cff45, #0aa01d);
    box-shadow: 0 0 22px rgba(28, 255, 57, 0.32);
}

/* Filters */

.h2h-filter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.h2h-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.h2h-tab {
    height: 40px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c7d1ca;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
}

.h2h-tab.active,
.h2h-tab:hover {
    color: #fff;
    border-color: rgba(28, 255, 57, 0.5);
    background: rgba(28, 255, 57, 0.12);
    box-shadow: inset 0 0 18px rgba(28, 255, 57, 0.1);
}

.h2h-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h2h-select,
.h2h-date-btn,
.h2h-filter-btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #dce6df;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.36);
}

.h2h-select {
    padding: 0 36px 0 15px;
    appearance: none;
}

.h2h-date-btn {
    padding: 0 16px;
}

.h2h-filter-btn {
    padding: 0 16px;
    color: #fff;
    border-color: rgba(28, 255, 57, 0.42);
    background: rgba(28, 255, 57, 0.1);
}

/* Match table */

.h2h-matches-card {
    padding: 16px;
}

.h2h-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(28, 255, 57, 0.1);
    border-radius: 10px;
}

.h2h-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 930px;
}

.h2h-table th {
    height: 42px;
    padding: 0 14px;
    color: #9aa59e;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(28, 255, 57, 0.12);
}

.h2h-table th.center,
.h2h-table td.center {
    text-align: center;
}

.h2h-table td {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(28, 255, 57, 0.08);
}

.h2h-table tr:hover td {
    background: rgba(28, 255, 57, 0.035);
}

.h2h-league-row td {
    padding: 10px 14px;
    color: #f6fff7;
    font-size: 15px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.34);
}

.h2h-league-row img {
    width: 22px;
    height: 22px;
    margin-right: 9px;
    vertical-align: middle;
    border-radius: 50%;
}

.h2h-time {
    color: var(--h2h-green);
    font-weight: 900;
    white-space: nowrap;
}

.h2h-time.finished {
    color: var(--h2h-green);
}

.h2h-match-cell {
    min-width: 320px;
}

.h2h-team-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    color: #dce5df;
}

.h2h-team-logo {
    width: 23px;
    height: 23px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
}

.h2h-score {
    margin-left: auto;
    color: var(--h2h-green);
    font-weight: 900;
}

.h2h-percent {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.h2h-mini-bar {
    width: 72px;
    height: 13px;
    margin: 0 auto;
    padding: 2px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.h2h-mini-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #15d529, #5cff5b);
    box-shadow: 0 0 12px rgba(28, 255, 57, 0.28);
}

.h2h-best-tip {
    min-width: 92px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    color: #fff;
    border-radius: 8px;
    background: rgba(28, 255, 57, 0.12);
    border: 1px solid rgba(28, 255, 57, 0.23);
}

.h2h-best-tip strong {
    font-size: 13px;
}

.h2h-best-tip span {
    color: var(--h2h-green);
    font-size: 13px;
    font-weight: 900;
}

.h2h-view-more {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    color: #dfffe4;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(28, 255, 57, 0.3);
    border-radius: 9px;
    background: rgba(28, 255, 57, 0.06);
    cursor: pointer;
}

/* Right sidebar */

.h2h-rightbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.h2h-side-card {
    padding: 16px;
}

.h2h-bet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #aab5ae;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.h2h-bet-teams {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.h2h-bet-team {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.h2h-bet-team span {
    margin-left: auto;
    color: #a9b4ad;
    font-size: 12px;
}

.h2h-bet-line {
    height: 1px;
    background: rgba(28, 255, 57, 0.12);
    margin: 12px 0;
}

.h2h-confidence {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.h2h-confidence-label {
    color: #aeb8b1;
    font-size: 13px;
    font-weight: 800;
    margin-right: auto;
}

.h2h-dot {
    width: 16px;
    height: 5px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
}

.h2h-dot.active {
    background: var(--h2h-green);
    box-shadow: 0 0 12px rgba(28, 255, 57, 0.34);
}

.h2h-analysis-btn {
    width: 100%;
    height: 38px;
    margin-top: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    border-radius: 8px;
    border: 1px solid rgba(28, 255, 57, 0.22);
    background: rgba(28, 255, 57, 0.06);
    cursor: pointer;
}

.h2h-trend-list,
.h2h-news-list {
    display: grid;
    gap: 12px;
}

.h2h-trend-item {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    gap: 10px;
    align-items: center;
    color: #dce5df;
    font-size: 14px;
    font-weight: 800;
}

.h2h-trend-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.h2h-trend-item strong {
    color: var(--h2h-green);
}

.h2h-trend-item span:last-child {
    color: #a2aca5;
    font-size: 12px;
    text-transform: uppercase;
}

.h2h-news-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
}

.h2h-news-img {
    width: 70px;
    height: 48px;
    border-radius: 8px;
    background: rgba(28, 255, 57, 0.12);
}

.h2h-news-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
}

.h2h-news-item span {
    display: block;
    margin-top: 3px;
    color: #9ba69f;
    font-size: 12px;
    line-height: 1.25;
}

.h2h-news-item small {
    display: block;
    margin-top: 4px;
    color: #657069;
    font-size: 11px;
    font-weight: 800;
}

.h2h-side-link {
    width: 100%;
    height: 36px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(28, 255, 57, 0.22);
    border-radius: 8px;
    background: rgba(28, 255, 57, 0.05);
}

/* Footer */

.h2h-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 6px 0;
    color: #545f58;
    font-size: 12px;
    font-weight: 700;
}

.h2h-live-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--h2h-green);
    box-shadow: 0 0 12px rgba(28, 255, 57, 0.6);
}

/* Responsive */

@media (max-width: 1500px) {
    :root {
        --h2h-sidebar: 280px;
        --h2h-rightbar: 330px;
    }

    .h2h-nav a {
        padding: 0 12px;
    }

    .h2h-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .h2h-value-card {
        grid-column: span 2;
    }
}

@media (max-width: 1250px) {
    .h2h-dashboard-layout {
        grid-template-columns: var(--h2h-sidebar) minmax(0, 1fr);
    }

    .h2h-rightbar {
        grid-column: 2;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h2h-header-actions .h2h-search {
        display: none;
    }
}

@media (max-width: 1020px) {
    :root {
        --h2h-sidebar: 280px;
    }

    .h2h-mobile-menu-btn {
        display: inline-flex;
    }

    .h2h-logo {
        width: auto;
    }

    .h2h-nav {
        display: none;
    }

    .h2h-dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .h2h-sidebar {
        position: fixed;
        left: -310px;
        top: var(--h2h-header);
        z-index: 80;
        width: 290px;
        max-height: calc(100vh - var(--h2h-header));
        padding: 14px;
        background: rgba(0, 0, 0, 0.92);
        transition: 0.25s ease;
    }

    body.h2h-sidebar-open .h2h-sidebar {
        left: 0;
    }

    .h2h-rightbar {
        grid-column: auto;
    }

    .h2h-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h2h-value-card {
        grid-column: span 1;
    }

    .h2h-filter-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .h2h-filter-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 720px) {
    .h2h-header {
        height: 74px;
        padding: 0 12px;
    }

    :root {
        --h2h-header: 74px;
    }

    .h2h-logo-mark {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .h2h-logo-text strong {
        font-size: 18px;
    }

    .h2h-logo-text span {
        display: none;
    }

    .h2h-telegram-btn {
        display: none;
    }

    .h2h-icon-btn {
        width: 42px;
        height: 42px;
    }

    .h2h-stats-grid {
        grid-template-columns: 1fr;
    }

    .h2h-stat-box {
        min-height: 104px;
    }

    .h2h-rightbar {
        grid-template-columns: 1fr;
    }

    .h2h-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .h2h-tab {
        flex: 0 0 auto;
    }

    .h2h-matches-card {
        padding: 12px;
    }

    .h2h-table {
        min-width: 820px;
    }

    .h2h-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.h2h-time.live {
    color: #ff3030;
    animation: h2hLiveBlink 1s infinite;
    text-shadow: 0 0 12px rgba(255, 48, 48, 0.65);
}

@keyframes h2hLiveBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.h2h-country-toggle {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    color: #cbd4ce;
    font-size: 14px;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.h2h-country-toggle:hover {
    color: #fff;
    background: rgba(28, 255, 57, 0.08);
}

.h2h-country-toggle i:first-child {
    width: 23px;
    color: var(--h2h-green);
    text-align: center;
}

.h2h-country-toggle .arrow {
    margin-left: auto;
    color: #78837b;
    transition: transform 0.2s ease;
}

.h2h-country-toggle.active .arrow {
    transform: rotate(90deg);
}

.h2h-country-dropdown {
    display: none;
    padding: 4px 0 6px 18px;
}

.h2h-country-dropdown.open {
    display: block;
}

.h2h-country-dropdown .h2h-menu-item {
    min-height: 34px;
    padding-left: 10px;
    font-size: 13px;
}

.h2h-country-code {
    width: 24px;
    color: #8c978f;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

/* FORCE LIVE MINUTES RED + BLINK */
.h2h-time.live,
.h2h-table .h2h-time.live {
    color: #ff3030 !important;
    animation: h2hLiveBlink 0.75s infinite !important;
    text-shadow: 0 0 14px rgba(255, 48, 48, 0.9) !important;
}

@keyframes h2hLiveBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

/* ACTIVE LEAGUES SIDEBAR FIX */
.h2h-league-countries-list {
    display: grid !important;
    gap: 4px !important;
}

.h2h-league-country-block {
    width: 100% !important;
    display: block !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.h2h-league-country-toggle {
    width: 100% !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #cbd4ce !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    background: transparent !important;
    cursor: pointer !important;
    text-align: left !important;
    box-shadow: none !important;
    outline: none !important;
}

.h2h-league-country-toggle:hover,
.h2h-league-country-toggle.active {
    color: #ffffff !important;
    background: rgba(28, 255, 57, 0.08) !important;
}

.h2h-league-country-toggle img {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
}

.h2h-league-country-toggle i:first-child {
    width: 22px !important;
    min-width: 22px !important;
    color: var(--h2h-green) !important;
    text-align: center !important;
}

.h2h-league-country-toggle span {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.h2h-league-country-toggle small {
    color: var(--h2h-green) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    margin-left: auto !important;
}

.h2h-league-country-arrow {
    color: #78837b !important;
    font-size: 11px !important;
    transition: transform 0.2s ease !important;
}

.h2h-league-country-toggle.active .h2h-league-country-arrow {
    transform: rotate(90deg) !important;
}

.h2h-league-country-dropdown {
    display: none !important;
    padding: 4px 0 8px 18px !important;
    background: transparent !important;
}

.h2h-league-country-dropdown.open {
    display: block !important;
}

.h2h-league-country-dropdown .h2h-menu-item {
    min-height: 34px !important;
    padding: 7px 8px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.h2h-league-country-dropdown .h2h-menu-item img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    border-radius: 50% !important;
}

.h2h-league-more-box {
    display: none !important;
}

.h2h-league-more-box.open {
    display: block !important;
}

.h2h-league-view-more {
    width: calc(100% - 8px) !important;
    height: 32px !important;
    margin: 6px 0 2px 8px !important;
    color: var(--h2h-green) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    border: 1px solid rgba(28, 255, 57, 0.18) !important;
    border-radius: 8px !important;
    background: rgba(28, 255, 57, 0.05) !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.h2h-league-view-more:hover {
    color: #fff !important;
    border-color: rgba(28, 255, 57, 0.42) !important;
    background: rgba(28, 255, 57, 0.1) !important;
}


/* HIDE EXTRA COUNTRIES UNTIL SHOW MORE */
.h2h-extra-country {
    display: none !important;
}

.h2h-extra-country.open {
    display: block !important;
}

.h2h-show-more-countries {
    width: 100% !important;
    height: 36px !important;
    margin-top: 8px !important;
    color: var(--h2h-green) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    border: 1px solid rgba(28, 255, 57, 0.25) !important;
    border-radius: 9px !important;
    background: rgba(28, 255, 57, 0.07) !important;
    cursor: pointer !important;
}

.h2h-show-more-countries:hover {
    color: #fff !important;
    border-color: rgba(28, 255, 57, 0.5) !important;
    background: rgba(28, 255, 57, 0.12) !important;
}

.h2h-team-line {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
    align-items: center !important;
    gap: 10px !important;
}

.h2h-team-line .h2h-team-logo {
    justify-self: center !important;
}

.h2h-team-line span:not(.h2h-score) {
    min-width: 0 !important;
}

.h2h-score {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
    justify-self: center !important;

    color: #fff !important;
    font-weight: 1000 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

/* FIX H2H dropdown disappearing on mouse move */
.h2h-nav {
    overflow: visible !important;
}

.h2h-nav .h2h-dropdown,
.h2h-nav .dropdown,
.h2h-nav .nav-dropdown,
.h2h-nav-item {
    position: relative;
}

.h2h-nav .h2h-dropdown-menu,
.h2h-nav .dropdown-menu,
.h2h-nav .nav-dropdown-menu,
.h2h-dropdown-menu {
    top: 100% !important;
    margin-top: 0 !important;
    padding-top: 10px !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

/* invisible bridge between menu link and dropdown */
.h2h-nav .h2h-dropdown-menu::before,
.h2h-nav .dropdown-menu::before,
.h2h-nav .nav-dropdown-menu::before,
.h2h-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
    background: transparent;
}

/* keep menu open while hovering the parent OR the dropdown */
.h2h-nav .h2h-dropdown:hover .h2h-dropdown-menu,
.h2h-nav .dropdown:hover .dropdown-menu,
.h2h-nav .nav-dropdown:hover .nav-dropdown-menu,
.h2h-nav-item:hover .h2h-dropdown-menu,
.h2h-dropdown:hover .h2h-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}