.mclive {
  --mclive-accent: #c8102e;
  --mclive-accent-soft: #fff0f3;
  --mclive-dark: #111827;
  --mclive-text: #1f2937;
  --mclive-muted: #64748b;
  --mclive-line: #e5e7eb;
  --mclive-panel: #f8fafc;
  --mclive-white: #ffffff;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--mclive-text);
  font: inherit;
  line-height: 1.55;
}

.mclive,
.mclive *,
.mclive *::before,
.mclive *::after {
  box-sizing: border-box;
}

.mclive .is-hidden {
  display: none !important;
}

.mclive a {
  color: var(--mclive-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mclive a:hover {
  text-decoration-thickness: 2px;
}

.mclive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  background: var(--mclive-dark);
  border-radius: 14px;
}

.mclive__phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mclive__phase::before {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.mclive__phase--upcoming {
  color: #ffd5dc;
  background: rgba(200, 16, 46, .24);
}

.mclive__phase--live {
  color: #fff;
  background: var(--mclive-accent);
}

.mclive__phase--live::before {
  animation: mclive-pulse 1.35s ease-in-out infinite;
}

.mclive__phase--pause {
  color: #3b2600;
  background: #fbbf24;
}

.mclive__phase--finished {
  color: #dcfce7;
  background: #166534;
}

.mclive__updated {
  color: #cbd5e1;
  font-size: 12px;
  text-align: right;
}

.mclive__scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 34px);
  margin-top: 12px;
  padding: clamp(20px, 5vw, 34px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 16, 46, .42), transparent 48%),
    linear-gradient(135deg, #111827 0%, #1f2937 52%, #111827 100%);
  border: 1px solid #273449;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

.mclive__scoreboard::after {
  position: absolute;
  right: -44px;
  bottom: -76px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mclive__score-team {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.mclive__score-team--away {
  justify-content: flex-end;
  text-align: right;
}

.mclive__score-code {
  display: grid;
  flex: 0 0 clamp(48px, 8vw, 62px);
  width: clamp(48px, 8vw, 62px);
  height: clamp(48px, 8vw, 62px);
  padding: 7px;
  place-items: center;
  color: var(--mclive-dark);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 15px;
  box-shadow:
    0 7px 18px rgba(15, 23, 42, .22),
    inset 0 0 0 1px rgba(15, 23, 42, .08);
  font-size: clamp(12px, 2.2vw, 15px);
  font-weight: 950;
  letter-spacing: .06em;
}

.mclive__score-code img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.mclive__score-team--away .mclive__score-code {
  order: 2;
  background: #fff;
}

.mclive__score-name {
  min-width: 0;
  font-size: clamp(14px, 2.6vw, 20px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mclive__score-side {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mclive__score-centre {
  position: relative;
  z-index: 1;
  min-width: clamp(112px, 18vw, 150px);
  text-align: center;
}

.mclive__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .95;
}

.mclive__score-separator {
  color: #64748b;
  font-size: .65em;
  font-weight: 700;
}

.mclive__score-state {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  color: #ffe4e9;
  background: rgba(200, 16, 46, .2);
  border: 1px solid rgba(255, 169, 184, .22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mclive__lead {
  padding: 18px 2px 0;
  font-size: 16px;
}

.mclive__lead p {
  margin: 0 0 12px;
}

.mclive__note {
  margin-top: 14px;
  padding: 13px 14px;
  background: var(--mclive-accent-soft);
  border: 1px solid #ffd1da;
  border-left: 4px solid var(--mclive-accent);
  border-radius: 0 12px 12px 0;
}

.mclive__note strong {
  color: #8f0b22;
}

.mclive__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mclive__fact {
  min-width: 0;
  padding: 12px 13px;
  background: var(--mclive-panel);
  border: 1px solid var(--mclive-line);
  border-radius: 12px;
}

.mclive__fact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--mclive-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.mclive__fact-value {
  display: block;
  color: var(--mclive-dark);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mclive__section {
  margin-top: 18px;
  overflow: hidden;
  background: var(--mclive-white);
  border: 1px solid var(--mclive-line);
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
}

.mclive__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  border-bottom: 1px solid var(--mclive-line);
}

.mclive__section-title {
  margin: 0;
  color: var(--mclive-dark);
  font-size: clamp(18px, 3vw, 21px);
  font-weight: 900;
  line-height: 1.2;
}

.mclive__section-meta {
  color: var(--mclive-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mclive__lineups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 14px;
}

.mclive__team {
  --mclive-team-accent: var(--mclive-accent);
  min-width: 0;
  overflow: hidden;
  background: var(--mclive-panel);
  border: 1px solid var(--mclive-line);
  border-top: 3px solid var(--mclive-team-accent);
  border-radius: 13px;
}

.mclive__team--away {
  --mclive-team-accent: #2563eb;
}

.mclive__team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  background: #fff;
  border-bottom: 1px solid var(--mclive-line);
}

.mclive__team-side {
  display: block;
  margin-bottom: 2px;
  color: var(--mclive-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mclive__team-name {
  margin: 0;
  color: var(--mclive-dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.mclive__team-code {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 5px;
  place-items: center;
  color: var(--mclive-dark);
  background: #fff;
  border: 1px solid var(--mclive-line);
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.mclive__team-code img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.mclive__positions {
  margin: 0;
  padding: 4px 14px 8px;
}

.mclive__position {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #dbe1e8;
}

.mclive__position:last-child {
  border-bottom: 0;
}

.mclive__position dt,
.mclive__position dd {
  min-width: 0;
  margin: 0;
}

.mclive__position dt {
  padding-top: 2px;
  color: var(--mclive-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mclive__position dd {
  color: #263244;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mclive__bench {
  background: #fff;
  border-top: 1px solid var(--mclive-line);
}

.mclive__bench summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  color: var(--mclive-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.mclive__bench summary::-webkit-details-marker {
  display: none;
}

.mclive__bench summary::after {
  color: var(--mclive-accent);
  content: "+";
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.mclive__bench[open] summary::after {
  content: "−";
}

.mclive__bench p {
  margin: 0;
  padding: 0 14px 13px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.mclive__events {
  padding: 4px 16px 10px;
}

.mclive__event {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mclive-line);
}

.mclive__event:last-child {
  border-bottom: 0;
}

.mclive__minute {
  padding-top: 2px;
  color: var(--mclive-dark);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.mclive__event-copy {
  min-width: 0;
}

.mclive__event-type {
  display: inline-flex;
  margin: 0 6px 4px 0;
  padding: 3px 7px;
  color: #475569;
  background: #eef2f7;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.mclive__event--goal .mclive__event-type {
  color: #fff;
  background: var(--mclive-accent);
}

.mclive__event--card .mclive__event-type {
  color: #422006;
  background: #facc15;
}

.mclive__event--sub .mclive__event-type {
  color: #fff;
  background: #2563eb;
}

.mclive__event--break .mclive__event-type {
  color: #fff;
  background: #475569;
}

.mclive__event-title {
  color: var(--mclive-dark);
  font-size: 14px;
  font-weight: 850;
}

.mclive__event-text {
  margin: 4px 0 0;
  color: var(--mclive-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mclive__stats {
  padding: 4px 16px 10px;
}

.mclive__stat {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) minmax(130px, 1.5fr) minmax(58px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--mclive-line);
}

.mclive__stat:last-child {
  border-bottom: 0;
}

.mclive__stat-home,
.mclive__stat-away {
  color: var(--mclive-dark);
  font-size: 15px;
  font-weight: 950;
}

.mclive__stat-away {
  text-align: right;
}

.mclive__stat-name {
  color: var(--mclive-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}

.mclive__prose {
  padding: 15px 16px 4px;
}

.mclive__prose p {
  margin: 0 0 13px;
}

.mclive__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.mclive__link {
  display: block;
  min-width: 0;
  padding: 12px 13px;
  color: var(--mclive-dark) !important;
  background: var(--mclive-panel);
  border: 1px solid var(--mclive-line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.mclive__link::after {
  margin-left: 6px;
  color: var(--mclive-accent);
  content: "→";
}

.mclive__link:hover {
  border-color: #f1a8b5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

@keyframes mclive-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.76); }
}

@media (max-width: 620px) {
  .mclive__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mclive__updated {
    text-align: left;
  }

  .mclive__scoreboard {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 18px 12px;
  }

  .mclive__score-team {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mclive__score-team--away {
    align-items: flex-end;
  }

  .mclive__score-team--away .mclive__score-code {
    order: 0;
  }

  .mclive__score-centre {
    min-width: 96px;
  }

  .mclive__lineups {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .mclive__links {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .mclive__toolbar,
  .mclive__scoreboard,
  .mclive__section,
  .mclive__team,
  .mclive__fact {
    border-radius: 11px;
  }

  .mclive__section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mclive__section-meta {
    white-space: normal;
  }

  .mclive__position {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
  }

  .mclive__stat {
    grid-template-columns: 52px minmax(105px, 1fr) 52px;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mclive__phase--live::before {
    animation: none;
  }

  .mclive__link {
    transition: none;
  }
}