:root {
    --h2h-ink: #10231d;
    --h2h-muted: #5d6f68;
    --h2h-line: #dce8e3;
    --h2h-surface: #ffffff;
    --h2h-soft: #f2f8f5;
    --h2h-green: #008f5d;
    --h2h-green-dark: #006e47;
    --h2h-lime: #d9f99d;
    --h2h-red: #dc5d6b;
}

.h2h-hub { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; color: var(--h2h-ink); font-family: Arial, sans-serif; }
.h2h-hub * { box-sizing: border-box; }
.h2h-hero { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; min-height: 196px; padding: 32px 36px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(217,249,157,.25), transparent 30%), linear-gradient(135deg, #073b2b, #008f5d); box-shadow: 0 20px 48px rgba(4, 57, 40, .18); }
.h2h-eyebrow { margin: 0 0 8px; color: #0fb477; font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.h2h-hero .h2h-eyebrow { color: var(--h2h-lime); }
.h2h-hero h1 { margin: 0; color: #fff; font: 700 clamp(34px, 5vw, 62px)/.98 Arial, sans-serif; letter-spacing: -.045em; }
.h2h-intro { max-width: 620px; margin: 18px 0 0; color: rgba(255,255,255,.82); font-size: 17px; }
.h2h-season-lockup { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; min-width: 210px; }
.h2h-season-lockup > span:nth-child(2) { font-size: 22px; font-weight: 800; }
.h2h-season-lockup strong { padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.h2h-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--h2h-lime); box-shadow: 0 0 0 5px rgba(217,249,157,.16); }
.h2h-metrics { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin: 14px 0; border: 1px solid var(--h2h-line); border-radius: 14px; background: var(--h2h-surface); box-shadow: 0 6px 22px rgba(16,35,29,.04); }
.h2h-metrics article { padding: 13px 18px; border-right: 1px solid var(--h2h-line); }
.h2h-metrics article:last-child { border-right: 0; }
.h2h-metrics span { display: block; margin-bottom: 3px; color: var(--h2h-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.h2h-metrics strong { font-size: 21px; letter-spacing: -.03em; }
.h2h-find { display: grid; grid-template-columns: minmax(150px, .34fr) minmax(320px, 1.66fr); align-items: center; gap: 18px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid var(--h2h-line); border-radius: 14px; background: var(--h2h-surface); }
.h2h-find h2 { margin: 0; padding: 0; border: 0; background: transparent; color: var(--h2h-green-dark); font-size: 14px; letter-spacing: .035em; text-transform: uppercase; }
.h2h-dashboard h2 { margin: 0; }
.h2h-search-wrap { position: relative; }
.h2h-search-wrap input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #b9cec5; border-radius: 9px; background: #fff; color: var(--h2h-ink); font-size: 15px; }
.h2h-search-wrap input:focus { outline: 3px solid rgba(0,143,93,.16); border-color: var(--h2h-green); }
.h2h-search-results { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--h2h-line); border-radius: 13px; background: #fff; box-shadow: 0 18px 50px rgba(16,35,29,.16); }
.h2h-search-results button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--h2h-line); background: #fff; color: var(--h2h-ink); text-align: left; cursor: pointer; }
.h2h-search-results button:last-child { border-bottom: 0; }
.h2h-search-results button:hover, .h2h-search-results button:focus { background: var(--h2h-soft); }
.h2h-search-results small { color: var(--h2h-muted); }
.h2h-dashboard { overflow: hidden; border: 1px solid var(--h2h-line); border-radius: 20px; background: var(--h2h-surface); box-shadow: 0 18px 55px rgba(16,35,29,.08); }
.h2h-dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 22px 18px; }
.h2h-division-heading { flex: 0 0 auto; min-width: 230px; }
.h2h-control-label, .h2h-selectors label { color: var(--h2h-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.h2h-control-label { display: block; margin-bottom: 5px; }
.h2h-division-heading h2 { display: flex; min-height: 42px; align-items: center; padding: 9px 13px; border: 1px solid var(--h2h-line); border-radius: 9px; background: var(--h2h-soft); color: var(--h2h-green-dark); font-size: 14px; white-space: nowrap; }
.h2h-selectors { display: grid; flex: 1 1 650px; gap: 9px; grid-template-columns: repeat(4, minmax(100px, 1fr)); }
.h2h-selectors label { display: grid; gap: 5px; }
.h2h-selectors select { min-width: 88px; height: 42px; padding: 0 30px 0 10px; border: 1px solid var(--h2h-line); border-radius: 9px; background-color: #fff; color: var(--h2h-ink); font-size: 13px; }
.h2h-tabs { display: flex; gap: 4px; padding: 0 26px; border-bottom: 1px solid var(--h2h-line); }
.h2h-tabs button { position: relative; padding: 13px 15px; border: 0; background: transparent; color: var(--h2h-muted); font-weight: 700; cursor: pointer; }
.h2h-tabs button.is-active { color: var(--h2h-green-dark); }
.h2h-tabs button.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; border-radius: 3px 3px 0 0; background: var(--h2h-green); content: ""; }
.h2h-status { min-height: 0; padding: 0 26px; color: var(--h2h-muted); font-size: 13px; }
.h2h-status:not(:empty) { padding-top: 13px; }
.h2h-panel { padding: 0 26px 24px; }
.h2h-table-scroll { overflow-x: auto; }
.h2h-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.h2h-table th { padding: 13px 8px; border-bottom: 1px solid var(--h2h-line); color: var(--h2h-muted); font-size: 10px; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.h2h-table th:nth-child(2) { text-align: left; }
.h2h-table td { padding: 12px 8px; border-bottom: 1px solid #edf3f0; text-align: center; white-space: nowrap; }
.h2h-table td.manager { min-width: 190px; text-align: left; }
.h2h-table td.manager a { color: var(--h2h-ink); font-weight: 700; text-decoration: none; }
.h2h-table tr.zone-promotion { box-shadow: inset 3px 0 0 var(--h2h-green); }
.h2h-table tr.zone-relegation { box-shadow: inset 3px 0 0 var(--h2h-red); }
.h2h-position { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--h2h-soft); font-weight: 800; }
.h2h-form { display: inline-flex; gap: 3px; }
.h2h-form b { display: inline-flex; width: 19px; height: 19px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 9px; }
.h2h-form .W { background: var(--h2h-green); }.h2h-form .D { background: #8a9b94; }.h2h-form .L { background: var(--h2h-red); }
.h2h-legend { display: flex; gap: 16px; align-items: center; margin-top: 14px; color: var(--h2h-muted); font-size: 11px; }
.h2h-legend span { display: inline-flex; gap: 6px; align-items: center; }
.h2h-legend i { width: 9px; height: 9px; border-radius: 2px; }
.h2h-legend .promotion { background: var(--h2h-green); }.h2h-legend .relegation { background: var(--h2h-red); }
.h2h-fixture-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 18px; }
.h2h-fixture { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 78px; padding: 15px; border: 1px solid var(--h2h-line); border-radius: 13px; background: #fff; }
.h2h-fixture .team:last-child { text-align: right; }.h2h-fixture .team { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.h2h-fixture .score { min-width: 60px; padding: 7px 8px; border-radius: 8px; background: var(--h2h-soft); text-align: center; font-weight: 900; }
.h2h-fixture .scheduled { color: var(--h2h-muted); font-weight: 600; }
.h2h-empty { grid-column: 1 / -1; padding: 34px; color: var(--h2h-muted); text-align: center; }

@media (max-width: 850px) {
    .h2h-hero { align-items: flex-start; flex-direction: column; }
    .h2h-season-lockup { justify-content: flex-start; }
    .h2h-metrics { grid-template-columns: repeat(2, 1fr); }
    .h2h-find { grid-template-columns: 1fr; }
    .h2h-dashboard-head { align-items: flex-start; flex-direction: column; }
    .h2h-selectors { flex-basis: auto; width: 100%; }
}
@media (max-width: 620px) {
    .h2h-hub { padding: 14px 10px 40px; }
    .h2h-hero { padding: 26px 22px; border-radius: 18px; }
    .h2h-metrics article { padding: 12px 14px; }
    .h2h-metrics article:nth-child(2) { border-right: 0; }
    .h2h-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--h2h-line); }
    .h2h-metrics strong { font-size: 20px; }
    .h2h-find { gap: 9px; padding: 13px; }
    .h2h-dashboard-head, .h2h-tabs, .h2h-panel { padding-right: 16px; padding-left: 16px; }
    .h2h-division-heading { min-width: 0; }
    .h2h-selectors { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); }
    .h2h-selectors select { width: 100%; }
    .h2h-fixture-list { grid-template-columns: 1fr; }
    .h2h-table th:nth-child(7), .h2h-table td:nth-child(7), .h2h-table th:nth-child(8), .h2h-table td:nth-child(8), .h2h-table th:nth-child(9), .h2h-table td:nth-child(9), .h2h-table th:nth-child(12), .h2h-table td:nth-child(12) { display: none; }
}
