.h2h-preview {
  margin: 14px 0;
  border: 1px solid #274761;
  border-radius: 18px;
  background: #0a1928;
}
.h2h-preview [hidden], .h2h-preview[hidden] { display: none !important; }
.h2h-preview summary { padding: 16px 18px; cursor: pointer; font-size: 18px; font-weight: 900; }
.h2h-preview summary .h2h-tag { margin-left: 8px; }
.h2h-preview :focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.h2h-body { padding: 0 14px 14px; }
.h2h-body label { display: block; margin-bottom: 4px; }
.h2h-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.h2h-controls form, .h2h-toolbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px;
  align-items: end;
}
.h2h-controls label { grid-column: 1 / -1; margin: 0; }
.h2h-toolbar { margin: 8px 0 14px; }
.h2h-body input, .h2h-body select, .h2h-body button { min-height: 44px; }
.h2h-body input, .h2h-body select { width: 100%; min-width: 0; font-size: 16px; }
.h2h-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1a1300;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.h2h-card { margin-top: 12px; border: 1px solid #274761; border-radius: 16px; background: #0a1c2a; overflow: hidden; }
.h2h-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; }
.h2h-card-head h3, .h2h-card-head h4 { margin: 0; overflow-wrap: anywhere; }
.h2h-card-head p { margin: 2px 0 0; color: var(--muted); }
.h2h-week-picker { min-width: 145px; }
.h2h-note { margin: 0; padding: 8px 16px; border-top: 1px solid #18364a; background: #091825; color: var(--muted); font-size: 12px; }
.h2h-bye { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-top: 1px solid #18364a; background: rgba(255,212,66,.10); }
#h2hMatches { padding: 0; margin: 0; list-style: none; }
#h2hMatches li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid #18364a; }
.h2h-pair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: center; }
.h2h-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.h2h-team .fih-team-avatar { flex: 0 0 30px; width: 30px; height: 30px; }
.h2h-versus, .h2h-score small { color: var(--muted); font-size: 11px; }
.h2h-score { text-align: right; white-space: nowrap; }
.h2h-score small { display: block; }
.h2h-you-label { color: var(--yellow); text-transform: uppercase; }
.h2h-you { background: rgba(255,212,66,.09); box-shadow: inset 3px 0 var(--yellow); }
.h2h-table { overflow-x: auto; }
.h2h-scroll-hint { display: none; }
.h2h-table table { width: 100%; border-collapse: collapse; }
.h2h-table td, .h2h-table th { padding: 9px 10px; border-top: 1px solid #18364a; text-align: right; white-space: nowrap; }
.h2h-table thead { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.h2h-table tr > :nth-child(2) { min-width: 9rem; text-align: left; white-space: normal; }
.h2h-table tbody tr > :nth-child(3) { font-size: 17px; font-weight: 900; }
.h2h-rank { display: inline-grid; place-items: center; min-width: 32px; height: 24px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.h2h-rank[data-podium="1"] { background: #ffd442; color: #1a1300; }
.h2h-rank[data-podium="2"] { background: #cfd8e3; color: #0d1620; }
.h2h-rank[data-podium="3"] { background: #d39a6a; color: #1b0f05; }
@media (max-width: 650px) {
  .h2h-controls, .h2h-pair { grid-template-columns: 1fr; }
  .h2h-pair { gap: 3px; }
  .h2h-versus { margin-left: 39px; }
  .h2h-scroll-hint { display: block; }
  .h2h-table td, .h2h-table th { padding-inline: 6px; }
  .h2h-table tr > :nth-child(2) { min-width: 7rem; }
}
