/* Matchday Hotels V9.2 — Club Form & League Context */

.mhd-v91-live-hero {
  display: none !important;
}

.mhd-v91-match-centre[data-v92-fixture-context="true"],
.mhd-v91-club-football[data-v92-club-context="true"] {
  background: #f7f3e9;
  color: #12202a;
}

.mhd-v92-context {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 42, 0.12);
  border-radius: 24px;
  background: #fffdf8;
  color: #12202a;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 18px 40px rgba(18, 32, 42, 0.08);
}

.mhd-v92-context::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--club-primary, #d66b2f);
}

.mhd-v92-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.mhd-v92-heading h2 {
  margin: 4px 0 0;
  color: #12202a;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.mhd-v92-eyebrow {
  display: block;
  color: #66737c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mhd-v92-season,
.mhd-v92-position {
  flex: 0 0 auto;
  border-radius: 16px;
  background: #12202a;
  color: #ffffff;
  padding: 10px 14px;
  text-align: center;
}

.mhd-v92-position strong,
.mhd-v92-position span {
  display: block;
}

.mhd-v92-position strong {
  font-size: 1.35rem;
  line-height: 1;
}

.mhd-v92-position span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.mhd-v92-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.mhd-v92-stat-grid > div {
  border-radius: 14px;
  background: #f0ece2;
  padding: 12px 8px;
  text-align: center;
}

.mhd-v92-stat-grid strong,
.mhd-v92-stat-grid span {
  display: block;
}

.mhd-v92-stat-grid strong {
  color: #12202a;
  font-size: 1.05rem;
}

.mhd-v92-stat-grid span {
  margin-top: 3px;
  color: #68747b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mhd-v92-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.mhd-v92-form {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.mhd-v92-form-pill {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.mhd-v92-form-w {
  background: #20724a;
}

.mhd-v92-form-d {
  background: #727b82;
}

.mhd-v92-form-l {
  background: #9d3b35;
}

.mhd-v92-latest,
.mhd-v92-previous,
.mhd-v92-pending-message {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  border-radius: 16px;
  background: #f0ece2;
  padding: 16px;
}

.mhd-v92-latest strong,
.mhd-v92-previous strong,
.mhd-v92-pending-message strong {
  color: #12202a;
}

.mhd-v92-latest > span:last-child,
.mhd-v92-previous > span:last-child,
.mhd-v92-pending-message > span:last-child {
  color: #66737c;
  font-size: 0.88rem;
}

.mhd-v92-table-wrap {
  margin-top: 9px;
  overflow-x: auto;
  border: 1px solid rgba(18, 32, 42, 0.1);
  border-radius: 14px;
  background: #ffffff;
}

.mhd-v92-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  color: #12202a;
  font-size: 0.86rem;
}

.mhd-v92-table th,
.mhd-v92-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(18, 32, 42, 0.08);
  text-align: right;
}

.mhd-v92-table th:nth-child(2),
.mhd-v92-table td:nth-child(2) {
  text-align: left;
}

.mhd-v92-table th {
  color: #68747b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mhd-v92-table tbody tr:last-child td {
  border-bottom: 0;
}

.mhd-v92-table tr.is-club td {
  background: color-mix(in srgb, var(--club-primary, #d66b2f) 12%, #ffffff);
  font-weight: 800;
}

.mhd-v92-source {
  margin: 18px 0 0;
  color: #718087;
  font-size: 0.76rem;
  line-height: 1.5;
}

.mhd-v92-source a {
  color: inherit;
  font-weight: 800;
}

.mhd-v92-season-pending .mhd-v92-heading {
  margin-bottom: 8px;
}

.mhd-v91-match-centre[data-v92-fixture-context="true"] {
  margin-top: 0;
  padding-top: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(20px, 3vw, 34px);
}

@media (max-width: 860px) {
  .mhd-v92-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .mhd-v92-season,
  .mhd-v92-position {
    align-self: flex-start;
  }

  .mhd-v92-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mhd-v92-context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mhd-v92-context {
    border-radius: 18px;
    padding: 18px;
  }

  .mhd-v92-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
