.tournament-schedule {
  padding: 40px 20px;
  background: #f5f5f5;
}

.responsive-table {
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(66, 64, 64, 0.1);
}

.responsive-table th,
.responsive-table td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}

.responsive-table th {
  background-color: #4d4a4a;
  color: white;
  text-align: center;
}

.responsive-table td p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.responsive-table a {
  color: #333;
  font-weight: bold;
  text-decoration: underline;
}

.view-all-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.modal2 {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content2 {
  background-color: #fff;
  margin: 5% auto;
  /* padding: 20px; */
  border-radius: 8px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative; /* ключевая строка */

  padding: 2rem 1rem 1rem 1rem;
}

.table-scroll-wrapper {
  overflow-y: auto;
  flex-grow: 1;
  margin-top: 1rem;
}

.close {
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  color: #444;
  cursor: pointer;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #ddd;
}

@media (max-width: 768px) {
  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
    width: 100%;
  }

  .responsive-table {
    margin: 0 5px 0 5px;
  }

  .responsive-table thead tr {
    display: none;
  }

  .responsive-table td {
    position: relative;
    padding-left: 10%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
    /* font-size: 0.875rem; */
    padding: 5px;
  }

  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 16px;
    font-weight: bold;
    color: #888;
  }
}
