.h2h {
    max-width: 1100px;
    margin: 12px auto 56px;
    color: #182b24;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
.h2h [hidden] { display: none !important; }
.h2h header { background: none; box-shadow: none; color: inherit; flex-direction: row; }
.h2h .h2h-heading { display: block; padding: 0; }
.h2h ~ footer { box-sizing: border-box; }
.h2h-heading h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -1px; }
.h2h-heading p { color: #52645c; margin: 0; }
.h2h-seasons { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #cbd6ce; margin-top: 28px; }
.h2h-seasons a { padding: 12px 16px; color: #52645c; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 700; }
.h2h-seasons a.active { color: #086437; border-color: #087741; }
.h2h-seasons a:hover { background: #e8f2eb; }
.h2h-freshness { color: #52645c; font-size: .85rem; margin: 12px 0 26px; }
.h2h-freshness span { display: inline-block; }
.h2h-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.h2h-filter-control { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.h2h-filter-control label { font-weight: 700; margin-right: 6px; }
.h2h select, .h2h button { font: inherit; min-height: 44px; border: 1px solid #9eafa4; border-radius: 5px; padding: 8px 12px; color: #182b24; background: #fff; }
.h2h select { min-width: 150px; max-width: 100%; }
.h2h button { cursor: pointer; }
.h2h #h2h-count { margin: 0 0 8px; color: #52645c; font-size: .9rem; }
.h2h-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.h2h-card { border: 1px solid #d7e0da; border-radius: 8px; background: #fff; overflow: hidden; min-width: 0; }
.h2h-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-bottom: 1px solid #e5ebe7; }
.h2h-card-top h2 { font-size: .9rem; margin: 0; color: #52645c; font-weight: 600; }
.h2h-outcome { font-size: .85rem; font-weight: 700; color: #52645c; }
.h2h-outcome-leader { color: #086437; }
.h2h-matchup { padding: 8px 20px; }
.h2h-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px 0; }
.h2h-side + .h2h-side { border-top: 1px solid #e5ebe7; }
.h2h-player { display: flex; flex-direction: column; min-width: 0; }
.h2h-lad { font-size: 1.2rem; font-weight: 700; }
.h2h-player-name { color: #52645c; font-size: .95rem; }
.h2h-score { font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.h2h-leading .h2h-score { color: #086437; }
.h2h .h2h-stake { display: flex; align-items: baseline; gap: 12px; background: #f1f6f2; color: #182b24; border: 0; box-shadow: none; text-align: left; width: auto; padding: 12px 20px; font-size: .9rem; }
.h2h-stake > span { flex-shrink: 0; color: #52645c; }
.h2h-stake strong, .h2h-player, .h2h-outcome { overflow-wrap: anywhere; }
.h2h-note { margin: 0; padding: 10px 20px; background: #fff5dc; color: #684707; font-size: .85rem; }
.h2h-empty { padding: 32px 24px; background: #fff; border: 1px solid #d7e0da; border-radius: 8px; }
.h2h-empty h2 { margin: 0 0 8px; font-size: 1.3rem; }
.h2h-empty p { color: #52645c; }
.h2h a { color: #086437; }
.h2h :focus-visible { outline: 3px solid #086437; outline-offset: 3px; }
@media (min-width: 900px) { .h2h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .h2h-card-top, .h2h-matchup { padding-left: 16px; padding-right: 16px; }
    .h2h-seasons a { padding: 12px 8px; font-size: .9rem; }
    .h2h-filter-control label { flex-basis: 100%; }
    .h2h-freshness span { display: block; }
}
