/* Keep the existing card widths and outer columns; share one player row equally. */
:is(#rounds .match,#championship .champ){
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:0;
  align-content:start;
}
:is(#rounds .match,#championship .champ)>:not(.player){
  grid-column:1/-1;
  min-width:0;
}
:is(#rounds .match,#championship .champ)>.player{
  position:relative;
  grid-column:1;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  align-items:stretch;
  min-width:0;
  min-height:44px;
  padding:0;
  border:0;
  border-top:2px solid #2865ad;
}
:is(#rounds .match,#championship .champ)>.player+.player{
  grid-column:2;
  border-top-color:#c43843;
  border-left:1px solid #dce3ec;
}
/* Embedded video brackets already use two-ID rules, so include them explicitly. */
:is(#rounds,#championship,#publicBracket #rounds,#operatorBracket #rounds,#viewerBracket #rounds) .player>.player-choice{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:center;
  align-items:start;
  gap:2px;
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:4px 3px;
  text-align:center;
  font-size:13px;
  line-height:1.25;
}
:is(#rounds,#championship) .player-choice>span{
  width:100%;
  text-align:center;
}
:is(#rounds,#championship) .player-choice>span,
:is(#rounds,#championship) .player b,
:is(#rounds,#championship) .player small{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}
:is(#rounds,#championship) .player b{
  font-size:inherit;
  line-height:1.25;
}
:is(#rounds,#championship,#publicBracket #rounds,#operatorBracket #rounds,#viewerBracket #rounds) .player small{
  margin-top:2px;
  font-size:10px;
  line-height:1.3;
}
:is(#rounds,#championship) .player .player-result{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:100%;
  min-width:0;
  white-space:normal;
}
:is(#rounds,#championship) .player .player-points{
  font-size:17px;
  line-height:1.1;
}
:is(#rounds,#championship) .player .player-status{
  max-width:100%;
  margin-left:0;
  padding:1px 3px;
  white-space:normal;
  overflow-wrap:anywhere;
}
/* Score buttons are siblings of the winner-choice button, never nested in it. */
.admin-mode :is(#rounds,#championship,#publicBracket #rounds,#operatorBracket #rounds,#viewerBracket #rounds) .has-inline-score>.player-choice{
  min-height:66px;
  padding-right:32px;
  text-align:left;
}
.admin-mode :is(#rounds,#championship) .has-inline-score>.player-choice>span{
  text-align:left;
}
.admin-mode :is(#rounds,#championship) .has-inline-score .player-result{
  justify-content:flex-start;
}
:is(#rounds,#championship) .player>.player-score-controls{
  position:absolute;
  top:4px;
  right:3px;
  display:grid;
  grid-template-columns:26px;
  gap:2px;
  width:26px;
  margin:0;
  padding:0;
  z-index:1;
}
:is(#rounds,#championship) .player-score-controls>button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  min-width:26px;
  height:26px;
  min-height:26px;
  margin:0;
  padding:0;
  font-size:12px;
  line-height:1;
  touch-action:manipulation;
  cursor:pointer;
}
:is(#rounds,#championship) .player-score-controls>button:disabled{
  opacity:.4;
  cursor:default;
}
:is(#rounds,#championship) .player-score-controls>button:focus-visible{
  outline:2px solid #174f94;
  outline-offset:1px;
}
:is(#rounds,#championship) .player>.card-score-status{
  margin:2px 3px;
  min-width:0;
  font-size:10px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
:is(#rounds,#championship) .player>.card-score-status:empty{
  display:none;
}
body:not(.admin-mode) :is(#rounds,#championship) .player-score-controls,
body:not(.admin-mode) :is(#rounds,#championship) .player>.card-score-status{
  display:none;
}
:is(#rounds .match,#championship .champ)>.empty-player{
  align-content:center;
  padding:4px 3px;
  font-size:12px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
:is(#rounds,#championship) .player>.edit-player-information{
  width:calc(100% - 6px);
  min-width:0;
  min-height:36px;
  margin:3px;
  padding:4px 2px;
  font-size:11px;
  line-height:1.25;
  white-space:normal;
  overflow-wrap:anywhere;
}
.admin-mode :is(#rounds,#championship) .player>.player-status-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px;
  padding:2px 3px 4px;
}
:is(#rounds,#championship) .player-status-actions button{
  min-width:0;
  min-height:32px;
  padding:4px 1px;
  font-size:10px;
  line-height:1.25;
  letter-spacing:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
@media(max-width:600px){
  :is(#rounds,#championship,#publicBracket #rounds,#operatorBracket #rounds,#viewerBracket #rounds) .player>.player-choice{font-size:12px}
}
