.lives_row_base_style > td {
  /*border-style: solid;*/
  /*border-color: black;*/
  /*border-width: 1px;*/
  background-color: #3d3d3d;
}

.lives_row_alternate_style > td {
  /*border-style: solid;*/
  /*border-color: black;*/
  /*border-width: 1px;*/
  background-color: #3d423d;
}

.round_header_style > td {
  /*border-style: solid;*/
  /*border-color: black;*/
  /*border-width: 1px;*/
  background-color: #919191;
  font-size: 18px;
}

.lives_home_col > td:nth-child(1) {
  text-align: right;
}

.lives_away_col > td:nth-child(5) {
  text-align: left;
}

.lives_playerhiglightrow > td {
  outline: none;
  border-color: rgb(70, 223, 70);
  box-shadow: inset 0 0 7px rgb(70, 223, 70);
  -webkit-box-shadow: inset 0 0 7px rgb(70, 223, 70);
  -moz-box-shadow: inset 0 0 7px rgb(70, 223, 70);
}

.match_underway_highlight > td {
  outline: none;
  border-color: rgb(252, 213, 59);
  box-shadow: inset 0 0 7px rgb(252, 213, 59);
  -webkit-box-shadow: inset 0 0 7px rgb(252, 213, 59);
  -moz-box-shadow: inset 0 0 7px rgb(252, 213, 59);
}

/* Better highlight your row! */

.glow-row {
  border: 2px solid transparent;
  animation: glow 1.5s infinite alternate;
  font-size: 1.2em;
  font-weight: bold;
}

/* Match the green glow from .lives_playerhiglightrow */

@keyframes glow {
  from {
    border-color: rgba(70, 223, 70, 0.5);
    box-shadow: 0 0 10px rgba(70, 223, 70, 0.6);
  }
  to {
    border-color: rgba(70, 223, 70, 1);
    box-shadow: 0 0 25px rgba(70, 223, 70, 1);
  }
}

.lives_round_timestamp {
  font-size: 12px;
}

#lives_matches_table_format {
  border-style: solid;
  border-color: white;
  border-width: 2px;
}

.lives_table_location_small > td:nth-child(3) {
  font-size: 10px;
}

/* Bracket top controls - grouped top-right (fullscreen + countdown) */
.bracket-top-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Bracket fullscreen button - stylized pill */
.bracket-fullscreen-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4dbaa;
  background: linear-gradient(145deg, rgba(70, 70, 70, 0.95), rgba(50, 50, 50, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(244, 219, 170, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  transition: all 0.2s ease;
}
.bracket-fullscreen-btn:hover {
  background: linear-gradient(145deg, rgba(85, 85, 85, 0.98), rgba(65, 65, 65, 0.98));
  border-color: rgba(244, 219, 170, 0.7);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

/* Bracket refresh countdown - stylized pill, matches fullscreen btn */
.bracket-refresh-countdown {
  font-size: 13px;
  font-weight: 600;
  color: #f4dbaa;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(145deg, rgba(70, 70, 70, 0.95), rgba(50, 50, 50, 0.95));
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(244, 219, 170, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 3em;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.bracket-refresh-countdown:hover {
  background: linear-gradient(145deg, rgba(85, 85, 85, 0.98), rgba(65, 65, 65, 0.98));
  border-color: rgba(244, 219, 170, 0.7);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

/* When bracket container is fullscreen - flex layout for centering */
.toplevel_manage_div:fullscreen,
.toplevel_manage_div:-webkit-full-screen,
.toplevel_manage_div:-moz-full-screen {
  height: 100vh;
  width: 100%;
  padding: 50px 20px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Centering wrapper - when bracket fits: flex center, no scroll. When overflow: padding + scroll */
.bracket-fullscreen-centering {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bracket-fullscreen-centering.bracket-needs-scroll {
  overflow: auto;
  padding: 50vh 0;
  align-items: flex-start;
}

