#nextMatch {
  padding: 8px 12px;
  border: 2px solid #1f2933;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  background: #f8fafc;

  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;

  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  overflow: hidden;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 14px;
}

/* allow elements to shrink */
#nextMatch > * {
  min-width: 0;
}

.next-label {
  font-weight: 700;
  flex: 0 0 auto;
}

.separator {
  color: #64748b;
  flex: 0 0 auto;
}

.match-date {
  flex: 0 0 auto;
  white-space: nowrap;
}

.match-text {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

#countdown {
  font-weight: 700;
  color: #16a34a;
  flex: 0 0 auto;
}

/* short names hidden by default */
.short-team {
  display: none;
}

/* medium screens */
@media (max-width: 768px) {

  #nextMatch {
    font-size: 12px;
    padding: 6px 8px;
    gap: 6px;
  }

}

/* small phones */
@media (max-width: 480px) {

  #nextMatch {
    font-size: 11px;
    gap: 4px;
  }

  .full-team {
    display: none;
  }

  .short-team {
    display: inline;
  }

}