.mf-matchbar-section{
  --mf-ink:#e2231a;
  --mf-ink-2:#c41c14;
  --mf-red-deep:#9e1710;
  --mf-white:#ffffff;
  --mf-paper:#f3f1ec;
  --mf-grey:#6b6b6b;
  --mf-grey-soft:#8f8f8f;
  --mf-grey-dark:#3a3a3a;
  --mf-line:#e5e3de;
  --mf-live-green:#1ba94c;
  --mf-win-blue:#1e6fd8;

  max-width:1160px;
  margin:0 auto;
  background:var(--mf-white);
  border-top:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
}
html.dark-mode .mf-matchbar-section{
  --mf-paper:#1b1c20;
  --mf-white:#212227;
  --mf-grey-soft:#8c8c94;
  --mf-grey-dark:#e7e7ea;
  --mf-line:rgba(255,255,255,0.1);
}

.mf-matchbar{
}

.mf-row-wrap{
  padding:14px 20px 8px;
  position:relative;
  max-width:1160px;
  margin:0 auto;
}
.mf-row{
  display:flex; gap:10px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding-bottom:2px;
}
.mf-row::-webkit-scrollbar{display:none;}

.mf-card{
  flex:0 0 260px;
  display:block;
  border:1px solid var(--mf-line);
  border-radius:9px;
  padding:11px 13px 9px;
  background:var(--mf-white);
  box-shadow:0 1px 4px rgba(0,0,0,0.05);
  transition:box-shadow .15s, border-color .15s, transform .1s;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
.mf-card:hover{
  box-shadow:0 6px 18px rgba(226,35,26,0.16), 0 2px 6px rgba(0,0,0,0.06);
  border-color:var(--mf-ink);
}
.mf-card:active{
  box-shadow:0 2px 10px rgba(226,35,26,0.3);
  transform:scale(0.98);
}
.mf-card-note-link{color:var(--mf-win-blue); font-weight:700;}

.mf-card-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
  font-size:10px;
}
.mf-card-status{
  font-weight:900; letter-spacing:0.4px; text-transform:uppercase;
  display:flex; align-items:center; gap:4px;
  /* The status is short and is the one thing that must always be readable,
     so it keeps its width and the competition line gives way instead. */
  flex:0 0 auto; white-space:nowrap;
}
.mf-card-status.upcoming{color:var(--mf-grey-soft);}
.mf-card-status.live{color:var(--mf-ink);}
.mf-card-status.result{color:var(--mf-grey-soft);}
.mf-dot{width:5px; height:5px; border-radius:50%; background:currentColor; flex-shrink:0;}
.mf-dot.pulse{
  background:var(--mf-live-green);
  box-shadow:0 0 0 0 rgba(27,169,76,0.5);
  animation:mfPulse 1.6s infinite;
}
@keyframes mfPulse{
  0%{box-shadow:0 0 0 0 rgba(27,169,76,0.45);}
  70%{box-shadow:0 0 0 5px rgba(27,169,76,0);}
  100%{box-shadow:0 0 0 0 rgba(27,169,76,0);}
}
.mf-card-meta{
  color:var(--mf-grey-soft); font-weight:600;
  text-align:right; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
  max-width:150px;
  /* A flex child defaults to min-width:auto, which means it refuses to
     shrink below its own content -- so text-overflow:ellipsis above never
     fired, and "Women's Hundred - Lord's" pushed the status label out of
     the card instead of truncating. min-width:0 is what lets a flex child
     actually be smaller than its text. */
  flex:0 1 auto; min-width:0;
}

.mf-team-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:3px 0;
}
.mf-team{
  display:flex; align-items:center; gap:7px;
  font-size:13px; font-weight:700; color:var(--mf-grey-dark);
}
.mf-flag{
  width:18px; height:18px; border-radius:5px;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; flex-shrink:0;
  background:var(--mf-paper);
}
.mf-score{
  font-size:13px; font-weight:800; color:var(--mf-grey-dark);
  text-align:right; white-space:nowrap;
}
.mf-score .mf-overs{font-size:10px; font-weight:600; color:var(--mf-grey-soft); margin-right:3px;}
.mf-time{
  font-size:13px; font-weight:800; color:var(--mf-grey-dark);
  text-align:right;
}

.mf-card-note{
  font-size:11px; color:var(--mf-grey);
  padding-top:7px; padding-bottom:1px; margin-top:5px;
  border-top:1px solid var(--mf-line);
}


.mf-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:30px; height:30px;
  border-radius:50%;
  background:var(--mf-white);
  border:1px solid var(--mf-line);
  box-shadow:0 4px 14px rgba(0,0,0,0.12);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  color:var(--mf-grey-dark);
  transition:background .15s, color .15s, opacity .2s ease, visibility .2s ease;
  z-index:2;
}
.mf-arrow-right{right:6px;}
.mf-arrow-left{left:6px;}
.mf-arrow.is-hidden{opacity:0; visibility:hidden; pointer-events:none;}
.mf-arrow:hover{background:var(--mf-ink); color:var(--mf-white); border-color:var(--mf-ink);}
.mf-arrow svg{width:14px; height:14px;}

@media (max-width: 640px){
  .mf-card{flex:0 0 225px;}
  .mf-arrow{display:none;}
}

/* ---- phones -------------------------------------------------------------
   The strip is a horizontal scroller, so a card does not have to fit the
   screen -- but it does have to make clear that there is another one behind
   it. At 225px on a 360px phone the second card is a sliver; at 320px it is
   invisible, and the strip reads as a single card with nothing after it.

   Sizing the card off the viewport instead of a fixed pixel width keeps a
   deliberate 18% of the next card showing at every width, which is what
   tells a thumb there is more to swipe. */
@media (max-width: 520px){
  .mf-row-wrap{padding:12px 14px 8px;}
  .mf-card{flex:0 0 min(78vw, 240px);}

  /* Freed from a fixed 150px, the competition and venue line can use
     whatever the narrower card leaves it, and still ellipsis rather than
     clip mid-letter. */
  .mf-card-meta{max-width:none; min-width:0;}
}

@media (max-width: 360px){
  .mf-row-wrap{padding:10px 10px 8px;}
  .mf-card{flex:0 0 min(80vw, 225px);}
}
