/* tournament_matches.css */

.matches-page {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 .5rem;
}

/* ---- Header ---- */
.matches-header {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.matches-header h1 {
  font-size: 1rem;
  font-weight: 800;
  color: #0a0a12;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0;
}

.matches-count {
  font-size: .7rem;
  color: #3B9797;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---- Match list ---- */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

/* ---- Single match row ---- */
.match-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .8rem;
  background: #0a0a12;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 151, 151, .12);
  transition: background .15s;
}

.match-row:last-child {
  border-bottom: none;
}

.match-row:hover {
  background: #13132a;
}

/* ---- Match number ---- */
.match-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3B9797;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Players ---- */
.match-players {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.p-name {
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs {
  color: #ffd666;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-shrink: 0;
}

/* ---- Date ---- */
.matches-date {
  color: rgba(255, 255, 255, .75);
  font-size: .7rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Arrow ---- */
.match-arrow {
  color: rgba(255, 214, 102, .4);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.match-row:hover .match-arrow {
  color: #ffd666;
  transform: translateX(2px);
}

/* ---- Pagination ---- */
.matches-pagination {
  display: flex;
  justify-content: center;
  gap: .3rem;
  margin-top: .8rem;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #0a0a12;
  color: rgba(255, 255, 255, .6);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.page-btn:hover {
  background: #13132a;
  color: #ffd666;
}

.page-btn.active {
  background: #3B9797;
  color: #fff;
}

/* ---- Footer links ---- */
.matches-footer {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
}

.matches-link {
  padding: .4rem 1.2rem;
  background: #0a0a12;
  color: #ffd666;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s;
}

.matches-link:hover {
  background: #13132a;
}

/* ---- Empty state ---- */
.matches-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: .85rem;
  background: #0a0a12;
  border-radius: 10px;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .matches-page {
    padding: 0 2px;
  }

  .matches-header {
    padding-left: .5rem;
  }

  .match-row {
    padding: .55rem .5rem;
    gap: .5rem;
  }

  .match-num {
    width: 22px;
    height: 22px;
    font-size: .6rem;
  }

  .p-name {
    font-size: .75rem;
  }

  .vs {
    font-size: .6rem;
  }
}
