/* Match tab shares the published glass palette and keeps one visual hierarchy. */
body.srccV10 #mainView > section[data-page="match"] { padding: clamp(18px, 3vw, 30px); }
#matchHub { color: var(--ui-surface-text); }
#matchHub :is(h1,h2,p) { margin: 0; color: inherit; }
#matchHub h1 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; letter-spacing: -.04em; }
#matchHub h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.mhHeading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.mhEyebrow { display: block; font-size: 10px; letter-spacing: .13em; font-weight: 700; color: var(--ui-surface-muted); margin-bottom: 6px; }
.mhBadge { border: 1px solid rgba(var(--ui-accent-rgb), .65); background: rgba(var(--ui-accent-rgb), .1); padding: 7px 12px; border-radius: 24px; font-size: 11px; white-space: nowrap; }
#matchHub .mhBadgeLive { border-color: #57d6a1; background: #176a4e; color: #f4fff8; font-weight: 800; }
#matchHub .mhBadgeLive::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #9bf3bd; vertical-align: 1px; }
.mhOverview { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(220px, 285px); gap: 18px; align-items: center; }
.mhDate { display: grid; place-content: center; text-align: center; min-height: 94px; border-radius: 16px; background: linear-gradient(135deg,#ffffff2b,#ffffff00), var(--ui-accent); color: var(--ui-accent-text); border: 1px solid #ffffff38; }
.mhDate strong { font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.mhDate span { font-size: 11px; letter-spacing: .12em; font-weight: 800; margin-top: 7px; }
.mhFacts { display: grid; gap: 3px; min-width: 0; }
.mhFacts > strong { font-size: 14px; }
.mhFacts small { font-size: 11px; color: var(--ui-surface-muted); }
.mhFacts > div { font-size: 13px; margin-top: 7px; overflow-wrap: anywhere; }
.mhFacts a { color: inherit; text-underline-offset: 4px; }
.mhMatchClock { border-left: 1px solid #ffffff26; padding-left: 20px; }
.mhMatchClock > span { display: block; font-size: 10px; letter-spacing: .08em; color: var(--ui-surface-muted); }
.mhMatchClock > strong { display: block; font-size: clamp(20px, 2.2vw, 28px); font-variant-numeric: tabular-nums; margin-top: 7px; }
.mhQuarterScores { display: grid; gap: 5px; margin-top: 8px; }
.mhQuarterScores > small { color: var(--ui-surface-muted); font-size: 12px; }
.mhQuarterScore { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 4px 0; border-bottom: 1px solid #ffffff20; }
.mhQuarterScore:last-child { border-bottom: 0; }
.mhQuarterScore > span { color: var(--ui-surface-muted); font-size: 13px; font-weight: 800; }
.mhQuarterScore > strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.mhPersonal { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding: 18px; border-radius: 16px; background: #ffffff08; border: 1px solid #ffffff24; }
.mhPersonal > div:first-child { flex: 1; min-width: 180px; }
.mhPersonal strong { display: block; font-size: 15px; }
.mhPersonal small { display: block; font-size: 12px; color: var(--ui-surface-muted); margin-top: 4px; }
.mhResponse { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
#matchHub button { font-family: inherit; cursor: pointer; }
.mhResponse button, .mhReady { min-height: 44px; padding: 9px 12px; border-radius: 11px; color: inherit; background: #ffffff06; border: 1px solid #ffffff40; font-size: 12px; font-weight: 700; }
.mhResponse button[aria-pressed="true"], .mhReady { background: var(--ui-accent); color: var(--ui-accent-text); border-color: var(--ui-accent); }
.mhContent { border-top: 1px solid #ffffff26; margin-top: 24px; padding-top: 24px; }
.mhSectionHeading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mhSectionHeading small { font-size: 11px; color: var(--ui-surface-muted); }
.mhRosterTabs { display: flex; gap: 6px; margin: 14px 0 8px; }
.mhRosterTabs button { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ui-surface-muted); }
.mhRosterTabs button[aria-pressed="true"] { color: var(--ui-surface-text); border-color: #ffffff30; background: #ffffff10; }
.mhRosterTabs b { font-size: 11px; }
#mhRosterList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.mhPerson { display: flex; align-items: center; gap: 9px; text-align: left; min-width: 0; padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.mhPerson:hover { background: #ffffff10; }
.mhAvatar { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(var(--ui-accent-rgb), .65); background: rgba(var(--ui-accent-rgb), .12); display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.mhPerson > span:nth-child(2) { min-width: 0; flex: 1; }
.mhPerson > span:last-child { color: var(--ui-surface-muted); }
.mhPerson strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.mhPerson small { font-size: 10px; color: var(--ui-surface-muted); }
.mhPerson > span > small { display: block; margin-top: 2px; }
#matchHub .mhEmpty { grid-column: 1/-1; color: var(--ui-surface-muted); font-size: 13px; padding: 18px 0; }
.mhLineup { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.mhLineup > div { min-width: 0; }
.mhLineup > .mhPrimary { width: min(46%, 500px); }
#matchHub .mhLineup p { color: var(--ui-surface-muted); font-size: 13px; margin: 10px 0 18px; }
.mhTeams { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mhTeams > span { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #ffffff26; border-radius: 10px; font-size: 12px; }
.mhTeams i { width: 8px; height: 8px; border-radius: 50%; }
.mhTeamBlue { background: #7faee5; }.mhTeamGold { background: var(--ui-accent); }
.mhPrimary { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 12px 16px; background: linear-gradient(135deg,#ffffff20,transparent),var(--ui-accent); color: var(--ui-accent-text); border: 1px solid #ffffff30; border-radius: 12px; font-size: 14px; font-weight: 750; }
.mhActions { border-top: 1px solid #ffffff26; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; padding-top: 10px; }
.mhActions button, .mhTextButton { min-height: 40px; padding: 8px 0; border: 0; background: none; color: inherit; font-size: 12px; font-weight: 600; text-align: left; }
.mhActions [data-mh-action="retry"] { margin-left: auto; color: var(--ui-surface-muted); }
#matchHub #mhStatus { font-size: 13px; margin-top: 10px; }
#mhStatus:empty { display: none; }
#mhHistory { margin-top: 22px; border-top: 1px solid #ffffff26; padding-top: 10px; color: var(--ui-surface-text); }
#mhHistory > summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 700; }
body.srccV10 #mainView #mhHistory #matchHistoryList { background: transparent !important; padding: 8px 0 0 !important; border: 0 !important; color: var(--ui-surface-text); margin: 0; }
#mhHistory .mhCard { background: #ffffff08; color: inherit; border: 1px solid #ffffff26; border-radius: 12px; }
#mhHistory .mhDate { background: transparent; color: inherit; min-height: 0; border: 0; font-size: 12px; }
#mhHistory .mhInfo span { color: var(--ui-surface-muted); }
@media(max-width: 850px) {
  .mhOverview { grid-template-columns: 70px minmax(0,1fr); gap: 14px; }
  .mhMatchClock { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-left: 0; border-top: 1px solid #ffffff26; padding: 14px 0 0; }
  .mhMatchClock > strong { font-size: 20px; margin: 0; }
  .mhContent { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .mhLineup { display: block; padding: 0; border: 0; }
  .mhLineup > .mhPrimary { width: 100%; }
}
@media(max-width: 760px) {
  /* Center with insets rather than animating from the desktop transform. */
  body.srccV10 #bottomNav {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: min(calc(100% - 24px), 540px) !important;
    margin: 0 auto !important;
    transform: none !important;
  }
}
@media(max-width: 480px) {
  .mhHeading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  .mhBadge { font-size: 10px; padding: 6px 10px; }
  #matchHub h2 { font-size: 18px; }
  .mhPersonal { padding: 14px; gap: 14px; }
  .mhResponse { width: 100%; }.mhReady { width: 100%; }
  .mhFacts > strong { font-size: 13px; }
  .mhContent { margin-top: 20px; padding-top: 20px; }
  .mhLineup { display: block; }
  .mhLineup > .mhPrimary { width: 100%; }
  .mhMatchClock > span { font-size: 9px; }.mhMatchClock > strong { font-size: 17px; }
  #mhRosterList { grid-template-columns: minmax(0,1fr); }
}


/* Overall score replaces the venue in Match; individual quarter results remain separate. */
#matchHub .mhTotalScore{margin-top:10px;padding:10px 12px;border:1px solid #c5a66040;border-radius:12px;background:#07182baa}
#matchHub .mhTotalScore>small{font-size:9px;letter-spacing:.12em;color:#b5c3d3}
#matchHub .mhTotalScore>div{display:flex;align-items:center;gap:10px;margin-top:3px}
#matchHub .mhTotalScore span{font-size:10px;font-weight:850}
#matchHub .mhTotalScore .blue{color:#9fbee5}#matchHub .mhTotalScore .gold{color:#e6c87e}
#matchHub .mhTotalScore b{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:34px;line-height:1;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
#matchHub .mhTotalScore i{font-style:normal;color:#91a2b8;font-size:24px}
