.slider-container-mf {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.bracket-slider-mf {
  display: flex;
  transition: transform 0.5s ease;
}

.round-mf {
  flex: 1 0 100%;  /* Замість фіксованого width: 100vw використовуємо flex */
  padding: 20px;
  box-sizing: border-box;
}

.round-title-mf {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}

.match-grid-mf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.match-mf {
  background: #e9e9e9;
  border: 1px solid #ccc;
  padding: 10px;
  width: 200px;
  border-radius: 6px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.team-mf {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-family: Verdana;
  font-size: 12px;
}

.match-leg-mf {
  font-size: 10px;
  color: #555;
  margin-top: 5px;
}

.team-mf.winner-mf {
  font-weight: bold;
}

.nav-buttons-mf {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 10px auto;
}

.nav-buttons-mf button {
  padding: 10px 20px;
  background: #354c68;
  color: white;
  font-size: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.nav-buttons-mf button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .match-mf {
    width: 90%;
  }
}

@media (max-width: 1200px) {
  .slider-container-mf {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .slider-container-mf {
    max-width: 100%;
  }
}

.team-logo-mf {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.match-links-mf {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.match-links-mf a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 6px 4px;
  background-color: #f0f0f0;
  color: #2b4e8c;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #ccc;
}

.match-links-mf a:hover {
  background-color: #2b4e8c;
  color: white;
  border-color: #2b4e8c;
}