/* Game detail scorebug: teams left/right, scores between. --team-accent comes from TEAM1/2_ACCENT. */
.game-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: var(--theme-text-muted);
	font-size: 16px;
	text-align: center;
	margin-bottom: 10px;
}

.game-meta .glyphicon {
	font-size: 18px;
	text-decoration: none;
}

.scorebug {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
	align-items: center;
	gap: 22px;
	margin: 0 0 5px;
}

.scorebug-team {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
	border-top: 3px solid var(--team-accent);
	font-size: 18px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.scorebug-team.is-reversed {
	flex-direction: row-reverse;
	text-align: right;
}

.scorebug-logo {
	flex: none;
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.scorebug-score {
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.scorebug-score.is-loser {
	color: var(--theme-text-muted);
	font-weight: 500;
}

.scorebug-status {
	color: var(--theme-text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media screen and (max-width: 768px) {
	.scorebug {
		gap: 8px;
	}

	.scorebug-team,
	.scorebug-team.is-reversed {
		flex-direction: column;
		gap: 6px;
		font-size: 13px;
		text-align: center;
	}

	.scorebug-score {
		font-size: 32px;
	}

	/* Add Plays live score */
	.score-board {
		font-size: 18px !important;
	}

	.sb-team-score {
		flex: 2 !important;
	}
}


.score-board {
	padding:0px;
	font-size:25px;
	border:1px solid grey;
	border-radius:4px;
}

.sb-top-team {
	flex: 9;
	padding-left:10px;
	background-color:white;
	text-align:left;
	border-top-left-radius:4px;
}

.sb-bottom-team{
	flex: 9;
	padding-left:10px;
	background-color:white;
	text-align:left;
	border-bottom-left-radius:4px;
}

.sb-team-score {
	flex: 1;
	text-align:center;
}

.sb-top-team-score {
	background-color:#BBDEFB;
	border-top-right-radius:4px;
}

.sb-bottom-team-score {
	background-color:#FFCDD2;
	border-bottom-right-radius:4px;
}

/* Game actions: text + icon links instead of buttons. Desktop stacks them; phones wrap them in one row. */
.game-tools {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e2e2;
}

.game-tools.is-compact {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2px 18px;
	margin: 0;
	padding: 8px 0;
	border-top: 1px solid #e2e2e2;
}

.game-tool {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	border: 0;
	background: none;
	font-size: 14px;
	text-align: left;
}

/* :focus too, or Bootstrap's a:focus turns the label blue. */
.game-tool,
.game-tool:focus {
	color: var(--theme-navbar-bg);
	text-decoration: none;
}

/* Underline only the label, not the Beta tag. */
.game-tool:not([aria-disabled="true"]):hover,
.game-tool:focus-visible {
	color: #000;
}

.game-tool:focus-visible .game-tool-label {
	text-decoration: underline;
}

/* No actions for this viewer: drop the empty block and its divider. */
.game-tools:empty {
	display: none;
}

.game-tool[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.45;
}

.game-tool.is-main {
	font-weight: 600;
}

.game-tool-icon {
	flex: none;
	color: #6b6b6b;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.game-tool.is-main:not([aria-disabled="true"]) .game-tool-icon,
.game-tool:not([aria-disabled="true"]):hover .game-tool-icon {
	color: var(--theme-primary);
}

.game-tool-tag {
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(51, 102, 194, 0.12);
	color: var(--theme-primary);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.game-tools-note {
	color: var(--theme-text-muted);
	font-size: 12px;
}

.game-tools.is-compact .game-tools-note {
	width: 100%;
}

/* Player typeahead on Add Plays — match native select affordance */
.player-typeahead {
	position: relative;
}

.player-typeahead .form-control {
	cursor: pointer;
	padding-right: 30px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

.player-typeahead .form-control:focus {
	cursor: text;
}

.player-typeahead .form-control::placeholder {
	color: #999;
}

.player-typeahead-menu {
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 2px;
}

.player-typeahead-menu > li > a {
	display: block;
	padding: 3px 20px;
	clear: both;
	font-weight: normal;
	line-height: 1.42857143;
	color: #333;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.player-typeahead-menu > .active > a,
.player-typeahead-menu > .active > a:hover,
.player-typeahead-menu > .active > a:focus {
	color: #fff;
	background-color: var(--theme-primary);
	text-decoration: none;
	outline: 0;
}
