/* Match History filter panel — mhf-* namespace.
   DO NOT put table/row styles here; those live in match_history.css (mh-*). */

/* ------------------------------------------------------------------ */
/*  Shared form controls                                              */
/* ------------------------------------------------------------------ */

.mhf-select {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.55rem 2.2rem 0.55rem 0.8rem;
  border: 1px solid rgba(213, 177, 101, 0.34);
  border-radius: 0.4rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8c46f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 0.75rem auto,
    linear-gradient(180deg, rgba(20, 34, 58, 0.72), rgba(8, 16, 28, 0.82));
  color: #f6eedb;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mhf-select:hover,
.mhf-select:focus {
  border-color: rgba(232, 196, 111, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 196, 111, 0.12);
}

.mhf-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mhf-select option,
.mhf-select optgroup {
  background: #0a1424;
  color: #f6eedb;
}

.mhf-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(213, 177, 101, 0.34);
  border-radius: 0.4rem;
  background: linear-gradient(180deg, rgba(20, 34, 58, 0.72), rgba(8, 16, 28, 0.82));
  color: #f6eedb;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mhf-input:hover,
.mhf-input:focus {
  border-color: rgba(232, 196, 111, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 196, 111, 0.12);
}

.mhf-input::placeholder {
  color: rgba(235, 222, 193, 0.42);
}

.mhf-label {
  display: block;
  margin: 0 0 0.38rem;
  color: rgba(232, 196, 111, 0.86);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mhf-hint {
  display: block;
  margin: 0.3rem 0 0;
  color: rgba(235, 222, 193, 0.42);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/*  Panel chrome                                                      */
/* ------------------------------------------------------------------ */

.mhf-panel {
  border: 1px solid rgba(219, 188, 118, 0.18);
  border-radius: 0.6rem;
  background:
    linear-gradient(180deg, rgba(255, 231, 158, 0.03), rgba(0, 0, 0, 0.10)),
    rgba(6, 16, 29, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 240, 200, 0.06);
  overflow: hidden;
}

.mhf-panel-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.78rem 1.1rem;
  background: rgba(20, 34, 58, 0.72);
  border-bottom: 2px solid rgba(232, 196, 111, 0.5);
  border-radius: 0.58rem 0.58rem 0 0;
}

.mhf-panel-band-label {
  color: #e8c46f;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mhf-panel-band-title {
  margin: 0;
  color: #f7dfaa;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mhf-panel-band-count {
  color: rgba(235, 222, 193, 0.6);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------ */
/*  Hero section                                                      */
/* ------------------------------------------------------------------ */

.mhf-hero {
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.mhf-hero-supertitle {
  margin: 0 0 0.35rem;
  color: #d7b368;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mhf-hero-title {
  margin: 0;
  color: #f8e7bd;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mhf-hero-description {
  margin: 0.7rem 0 0;
  max-width: 38rem;
  color: rgba(235, 222, 193, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mhf-hero-stat-box {
  min-width: 14rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(219, 188, 118, 0.24);
  border-radius: 0.5rem;
  background: rgba(2, 8, 15, 0.5);
}

.mhf-hero-stat-label {
  margin: 0;
  color: rgba(232, 196, 111, 0.7);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mhf-hero-stat-value {
  display: block;
  margin: 0.35rem 0 0.3rem;
  color: #fff0bc;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.mhf-hero-stat-sub {
  color: rgba(235, 222, 193, 0.7);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ */
/*  Search + active filters panel                                     */
/* ------------------------------------------------------------------ */

.mhf-search-panel {
  margin-top: 1.4rem;
  padding: 1.2rem 1.4rem;
}

.mhf-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
}

.mhf-search-field {
  position: relative;
  display: flex;
  gap: 0.6rem;
}

.mhf-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(232, 196, 111, 0.6);
  font-size: 1rem;
  pointer-events: none;
}

.mhf-search-input {
  padding-left: 2.2rem;
}

.mhf-search-tip {
  color: rgba(235, 222, 193, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mhf-search-tip code {
  color: #e8c46f;
}

/* ------------------------------------------------------------------ */
/*  Active filter chips                                               */
/* ------------------------------------------------------------------ */

.mhf-active-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(219, 188, 118, 0.14);
}

.mhf-active-strip-label {
  color: rgba(232, 196, 111, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 0.3rem;
}

.mhf-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.3rem 0.3rem 0.7rem;
  border: 1px solid rgba(232, 196, 111, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 196, 111, 0.14), rgba(20, 34, 58, 0.4));
  color: #fff0bc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mhf-active-chip:hover,
.mhf-active-chip:focus-visible {
  border-color: rgba(232, 196, 111, 0.65);
  color: #fff;
}

.mhf-active-chip small {
  color: rgba(232, 196, 111, 0.68);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-right: 0.35rem;
}

.mhf-active-chip-x {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 111, 0.4);
  background: rgba(2, 8, 15, 0.6);
  color: #f7dfaa;
  font-size: 0.75rem;
  line-height: 1;
}

.mhf-active-chip:hover .mhf-active-chip-x {
  background: rgba(232, 196, 111, 0.22);
  color: #fff;
}

.mhf-clear-link {
  color: rgba(232, 196, 111, 0.86);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.mhf-clear-link:hover {
  color: #fff0bc;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                           */
/* ------------------------------------------------------------------ */

.mhf-cta {
  padding: 0.78rem 1.6rem;
  border: 1px solid rgba(232, 196, 111, 0.7);
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(245, 204, 120, 0.9), rgba(148, 102, 32, 0.95));
  color: #1a0f00;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 244, 204, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mhf-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 244, 204, 0.7),
    0 0 22px rgba(232, 196, 111, 0.28);
}

.mhf-ghost {
  padding: 0.78rem 1.4rem;
  border: 1px solid rgba(213, 177, 101, 0.32);
  border-radius: 0.45rem;
  background: transparent;
  color: rgba(235, 222, 193, 0.86);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.mhf-ghost:hover {
  border-color: rgba(232, 196, 111, 0.55);
  color: #fff0bc;
}

/* ------------------------------------------------------------------ */
/*  Chip toggles (terrain, tournament, availability, result)          */
/* ------------------------------------------------------------------ */

.mhf-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(213, 177, 101, 0.28);
  border-radius: 999px;
  background: rgba(20, 34, 58, 0.6);
  color: rgba(240, 231, 214, 0.78);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  text-decoration: none;
}

.mhf-chip-toggle:hover {
  border-color: rgba(232, 196, 111, 0.55);
  color: #fff0bc;
}

.mhf-chip-toggle:disabled {
  border-color: rgba(213, 177, 101, 0.14);
  color: rgba(240, 231, 214, 0.38);
  cursor: not-allowed;
  opacity: 0.62;
}

.mhf-chip-toggle:disabled:hover {
  border-color: rgba(213, 177, 101, 0.14);
  color: rgba(240, 231, 214, 0.38);
}

.mhf-chip-toggle.is-on {
  background: linear-gradient(180deg, rgba(232, 196, 111, 0.22), rgba(148, 102, 32, 0.32));
  border-color: rgba(232, 196, 111, 0.7);
  color: #fff6dd;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.18),
    0 0 14px rgba(232, 196, 111, 0.14);
}

.mhf-chip-toggle .mhf-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(232, 196, 111, 0.4);
}

.mhf-chip-toggle.is-on .mhf-dot {
  background: #f7dfaa;
  box-shadow: 0 0 6px rgba(232, 196, 111, 0.8);
}

/* ------------------------------------------------------------------ */
/*  Filter grid (Match section)                                       */
/* ------------------------------------------------------------------ */

.mhf-match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.mhf-match-grid > .mhf-range {
  grid-column: span 2;
}

.mhf-range-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
}

.mhf-range-sep {
  color: rgba(232, 196, 111, 0.55);
}

.mhf-players-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
}

.mhf-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mhf-section-label {
  color: #e8c46f;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mhf-section-rule {
  flex: 1;
  min-width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 196, 111, 0.32), transparent);
}

.mhf-section-sub {
  color: rgba(235, 222, 193, 0.5);
  font-size: 0.75rem;
}

.mhf-toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.2rem;
  align-items: flex-start;
}

.mhf-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ------------------------------------------------------------------ */
/*  Advanced filters toggle                                           */
/* ------------------------------------------------------------------ */

.mhf-adv-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  user-select: none;
  border: none;
  border-top: 1px dashed rgba(219, 188, 118, 0.18);
  border-radius: 0;
  background: rgba(2, 8, 15, 0.32);
  font-family: inherit;
  text-align: left;
  color: inherit;
}

.mhf-adv-toggle:hover {
  background: rgba(2, 8, 15, 0.48);
}

.mhf-adv-toggle:focus-visible {
  outline: 2px solid rgba(232, 196, 111, 0.8);
  outline-offset: -2px;
}

.mhf-adv-chevron {
  display: inline-block;
  color: #e8c46f;
  font-size: 0.8rem;
  transition: transform 0.18s ease;
}

.mhf-adv-chevron.is-open {
  transform: rotate(180deg);
}

.mhf-adv-title {
  color: #f7dfaa;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mhf-adv-sub {
  color: rgba(235, 222, 193, 0.5);
  font-size: 0.75rem;
  flex: 1;
  min-width: 10rem;
}

.mhf-adv-badge {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 111, 0.4);
  color: rgba(232, 196, 111, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mhf-adv-body {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid rgba(219, 188, 118, 0.1);
}

/* ------------------------------------------------------------------ */
/*  Sides grid (Team A vs Team B)                                     */
/* ------------------------------------------------------------------ */

.mhf-sides-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.mhf-versus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.9rem;
  height: 3.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(20, 34, 58, 0.98), rgba(6, 16, 29, 0.98));
  border: 1px solid rgba(232, 196, 111, 0.6);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 240, 200, 0.14);
  padding: 0.5rem;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
}

.mhf-versus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mhf-versus-inline {
  display: none;
  align-items: center;
  justify-content: center;
  margin: -0.2rem auto;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(20, 34, 58, 0.98), rgba(6, 16, 29, 0.98));
  border: 1px solid rgba(232, 196, 111, 0.6);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 240, 200, 0.14);
  padding: 0.42rem;
  box-sizing: border-box;
}

.mhf-versus-inline img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Side panels */
.mhf-side-panel {
  overflow: visible;
}

.mhf-side-panel.mhf-side-a {
  border-color: rgba(124, 211, 143, 0.24);
}

.mhf-side-panel.mhf-side-b {
  border-color: rgba(239, 147, 125, 0.24);
}

.mhf-side-band {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.95rem;
  border-bottom: 1px solid rgba(219, 188, 118, 0.16);
  border-radius: 0.56rem 0.56rem 0 0;
}

.mhf-side-band.mhf-side-a {
  background: linear-gradient(90deg, rgba(124, 211, 143, 0.14), transparent 70%);
  border-bottom-color: rgba(124, 211, 143, 0.28);
}

.mhf-side-band.mhf-side-b {
  background: linear-gradient(90deg, rgba(239, 147, 125, 0.14), transparent 70%);
  border-bottom-color: rgba(239, 147, 125, 0.28);
}

.mhf-side-swatch {
  width: 0.5rem;
  height: 1.1rem;
  border-radius: 1px;
  flex: 0 0 auto;
}

.mhf-side-swatch.mhf-side-a {
  background: #7cd38f;
  box-shadow: 0 0 8px rgba(124, 211, 143, 0.55);
}

.mhf-side-swatch.mhf-side-b {
  background: #ef937d;
  box-shadow: 0 0 8px rgba(239, 147, 125, 0.55);
}

.mhf-side-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mhf-side-label.mhf-side-a {
  color: #7cd38f;
}

.mhf-side-label.mhf-side-b {
  color: #ef937d;
}

.mhf-side-hint {
  margin-left: auto;
  color: rgba(235, 222, 193, 0.5);
  font-size: 0.75rem;
}

.mhf-side-body {
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.mhf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.mhf-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
}

.mhf-side-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-top: 0.3rem;
}

.mhf-side-result.mhf-side-a {
  border-top: 1px dashed rgba(124, 211, 143, 0.18);
}

.mhf-side-result.mhf-side-b {
  border-top: 1px dashed rgba(239, 147, 125, 0.18);
}

.mhf-side-result-label {
  color: rgba(235, 222, 193, 0.68);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------------ */
/*  Signal picker                                                     */
/* ------------------------------------------------------------------ */

.mhf-signal-field {
  position: relative;
}

.mhf-signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.mhf-signal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.3rem 0.3rem 0.65rem;
  border: 1px solid rgba(232, 196, 111, 0.4);
  border-radius: 999px;
  background: rgba(232, 196, 111, 0.1);
  color: #fff0bc;
  font-size: 0.75rem;
  font-weight: 700;
}

.mhf-signal-tag-x {
  width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 111, 0.4);
  background: rgba(2, 8, 15, 0.5);
  color: #f7dfaa;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.mhf-signal-tag-x:hover {
  background: rgba(232, 196, 111, 0.22);
  color: #fff;
}

.mhf-signal-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border: 1px dashed rgba(213, 177, 101, 0.42);
  border-radius: 999px;
  background: transparent;
  color: rgba(232, 196, 111, 0.85);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.mhf-signal-add-btn:hover {
  border-color: rgba(232, 196, 111, 0.7);
  color: #fff0bc;
}

.mhf-signal-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 30;
  width: min(21rem, 100%);
  max-height: 17rem;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(20, 34, 58, 0.98), rgba(6, 16, 29, 0.98));
  border: 1px solid rgba(232, 196, 111, 0.42);
  border-radius: 0.5rem;
  padding: 0.55rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.mhf-signal-group-label {
  color: rgba(232, 196, 111, 0.7);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.4rem 0.3rem;
}

.mhf-signal-group {
  border-left: 2px solid rgba(232, 196, 111, 0.25);
  padding-left: 0.35rem;
  margin: 0.15rem 0;
}

.mhf-signal-or {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(232, 196, 111, 0.5);
  padding-left: 1.6rem;
  line-height: 1;
}

.mhf-signal-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  color: rgba(240, 231, 214, 0.9);
  cursor: pointer;
}

.mhf-signal-menu-item:hover {
  background: rgba(232, 196, 111, 0.1);
}

.mhf-signal-menu-done {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.45rem;
  border: 1px solid rgba(232, 196, 111, 0.4);
  border-radius: 0.35rem;
  background: rgba(232, 196, 111, 0.12);
  color: #fff0bc;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mhf-signal-menu-done:hover {
  background: rgba(232, 196, 111, 0.22);
}

/* Native multi-select remains the sole successful form control. JavaScript
   hides this wrapper only after binding the enhanced picker. */
.mhf-signal-native-control {
  margin-top: 0.4rem;
}

.mhf-signal-native-select {
  width: 100%;
}

.mhf-warning {
  margin: 0.6rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  background: rgba(200, 80, 60, 0.15);
  border: 1px solid rgba(200, 80, 60, 0.35);
  color: rgba(255, 200, 180, 0.9);
}

.recent-games-query-notice {
  margin: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 196, 111, 0.45);
  border-radius: 0.45rem;
  background: rgba(122, 76, 20, 0.2);
  color: #f8e3b0;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/*  Filter actions footer                                             */
/* ------------------------------------------------------------------ */

.mhf-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(2, 8, 15, 0.42);
  border-top: 1px solid rgba(219, 188, 118, 0.14);
  border-radius: 0 0 0.58rem 0.58rem;
}

.mhf-actions-note {
  margin: 0;
  color: rgba(235, 222, 193, 0.55);
  font-size: 0.76rem;
  line-height: 1.5;
  max-width: 38rem;
}

.mhf-actions-buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Compact button sizes for the filter bar */
.mhf-actions-buttons .mhf-cta {
  padding: 0.55rem 1.4rem;
  font-size: 0.76rem;
}

.mhf-actions-buttons .mhf-ghost {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------ */
/*  Match section body                                                */
/* ------------------------------------------------------------------ */

.mhf-match-body {
  padding: 1.4rem 1.4rem 1.2rem;
}

/* ------------------------------------------------------------------ */
/*  Sort bar in results panel                                         */
/* ------------------------------------------------------------------ */

.mhf-sort-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mhf-sort-label-text {
  color: rgba(235, 222, 193, 0.6);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mhf-sort-label .mhf-select {
  width: auto;
  min-width: 10rem;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .mhf-hero {
    grid-template-columns: 1fr;
  }

  .mhf-search-row {
    grid-template-columns: 1fr;
  }

  .mhf-search-tip {
    display: none;
  }

  .mhf-match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mhf-match-grid > .mhf-range {
    grid-column: span 2;
  }

  .mhf-sides-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .mhf-versus {
    display: none;
  }

  .mhf-versus-inline {
    display: flex;
  }
}

@media (max-width: 640px) {
  .mhf-match-grid {
    grid-template-columns: 1fr;
  }

  .mhf-match-grid > .mhf-range {
    grid-column: span 1;
  }

  .mhf-two-col {
    grid-template-columns: 1fr !important;
  }

  .mhf-three-col {
    grid-template-columns: 1fr !important;
  }

  .mhf-hero-stat-box {
    min-width: 0;
  }

  .mhf-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .mhf-actions-buttons {
    justify-content: stretch;
  }

  .mhf-actions-buttons .mhf-cta,
  .mhf-actions-buttons .mhf-ghost {
    flex: 1;
    text-align: center;
  }
}
