/* ===== Player Card Container ===== */
.playerCard {
  display: table;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  scroll-margin-top: 100px;
}

/* ===== Back Button ===== */
.backButton {
  background-color: #fef200;
  color: black;
  border: none;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.backButton:hover {
  background-color: #e6d700;
}

/* ===== Opponent Table Styling ===== */
.opponentTable {
  table-layout: fixed;
  width: 100%;
  display: table;
  overflow-x: auto;
  border-collapse: collapse;
}
.opponentTable thead th {
  position: sticky;
  top: 0;
  background-color: #fef200;
  z-index: 2;
  padding: 2px;
  border: 1px solid #ccc;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opponentTable th,
.opponentTable td {
  padding: 2px;
  border: 1px solid #ccc;
  font-size: 14px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ===== Column Width & Alignment ===== */
.opponentTable .stl_pc_ot_round,
.opponentTable .stl_pc_ot_rank,
.opponentTable .stl_pc_ot_title,
.opponentTable .stl_pc_ot_points,
.opponentTable .stl_pc_ot_result {
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  text-align: left;
}

.opponentTable .stl_pc_ot_rating {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: left;
}

.opponentTable .stl_pc_ot_color {
  width: 15px;
  max-width: 15px;
  text-align: left;
}

.opponentTable .stl_pc_ot_name {
  width: 40%;
  min-width: 40px;
  text-align: left;
}

/* ===== Name Link Styling ===== */
.opponentTable .stl_link_name {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

/* ===== Detail Text Styling ===== */
.opponentTable .stl_tl_detail {
  display: block;
  font-size: 0.9em;
  font-style: italic;
  font-weight: normal;
  color: #444;
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* ===== Responsive Typography ===== */
@media (min-width: 768px) {
  .opponentTable {
    display: table;
    width: auto;
    overflow-x: visible;
  }

  .opponentTable th,
  .opponentTable td {
    font-size: 16px;
  }
}