/* =========================================================
   Daily Match Scroller – Theme Friendly Full CSS
   Structure preserved, typography inherited from theme
   ========================================================= */

/* Global inherit */
.match-cards-section,
.match-cards-section * {
  font-family: inherit;
  color: inherit;
}

/* Container */
.match-cards-section {
  background: var(--wp--preset--color--background, transparent);
  padding: 12px 10px;
  border-radius: 8px;
}

/* CTA */
.mf-cc-cta{
  display: inline-block;
  font-weight: 600;
  font-size: 0.85em;
  color: var(--wp--preset--color--primary, #1a73e8);
}

.mf-compact-card:hover .mf-cc-cta{
  text-decoration: underline;
}

/* Scroller */
.match-cards-scroller-modern {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  will-change: transform;
}

/* Custom Scrollbar */
.match-cards-scroller-modern::-webkit-scrollbar {
  height: 6px;
}
.match-cards-scroller-modern::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

/* Card */
.mf-compact-card {
  flex: 0 0 300px;
  background: var(--wp--preset--color--base, #fff);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px;
}

/* Status Badges */
.mf-cc-badge {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 0.75em;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
}
.badge-live { background: #1e7f43; }
.badge-result { background: #4b45c6; }
.badge-upcoming { background: #c97a0a; }
.badge-update { background: #666; }

/* Header */
.mf-cc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.85em;
  line-height: 1.4;
}
.mf-cc-meta { font-weight: 600; }
.mf-cc-dot { opacity: 0.6; }
.mf-cc-stage { opacity: 0.9; font-weight: 600; }

/* Rows */
.mf-cc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mf-cc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mf-cc-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mf-cc-left img,
.mf-cc-logo-fallback {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.mf-cc-logo-fallback {
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  color: rgba(0,0,0,0.6);
}

/* Team Name */
.mf-cc-team {
  white-space: nowrap;
  max-width: 160px;
}

/* Score / Time */
.mf-cc-right {
  font-size: 1em;
}

/* Footer */
.mf-cc-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85em;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {

  /* Card width */
  .mf-compact-card {
    flex: 0 0 240px;
    padding: 8px;
  }

  /* Each row spacing */
  .mf-cc-row {
    gap: 6px;
  }

  /* LEFT side takes remaining space */
  .mf-cc-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Team name strict ellipsis */
  .mf-cc-team {
    max-width: 115px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
  }

  /* RIGHT side fixed (time / score) */
  .mf-cc-right {
    flex: 0 0 auto;
    min-width: 60px;
    text-align: right;
    font-size: 0.9em;
    white-space: nowrap;
  }

  /* Header tighter */
  .mf-cc-head {
    font-size: 0.78em;
    margin-bottom: 6px;
  }

  /* Footer */
  .mf-cc-foot {
    font-size: 0.78em;
    margin-top: 6px;
    padding-top: 6px;
  }
}
