/*
 * RotoBaller — College Football Game Center (live scoreboard) table layer.
 * Same visual system as the CFB Rankings tool (cfb-rankings.css): Outfit type, Anton display
 * headings, pill controls, a left-pinned rank/player column with a horizontally scrolling stat
 * grid, sticky toolbar + header, team logos. Base styles apply at every width; the min-width:601px
 * block adds desktop roominess.
 */

#rb-cfbgc { display: none; }

.rb-gc-wrap {
	--rb-navy: #1b2a4a;
	--rb-blue: #006DC8;
	--rb-blue-dk: #005099;
	--rb-accent: #006DC8;
	--rb-sort: #1e7fd6;
	--rb-line: #e6eaf1;
	--rb-ink: #1a2027;
	--rb-mute: #6b7280;
	--rb-live: #d92d20;
	--rb-win: #1a7f37;
	--rb-loss: #b21f2d;
	font-family: 'Outfit', -apple-system, "Helvetica Neue", Arial, sans-serif;
	color: var(--rb-ink);
	background: #fff;
	-webkit-text-size-adjust: 100%;
	margin: 0 0 22px;
}
.rb-gc-wrap * { box-sizing: border-box; }
.rb-gc-wrap, .rb-gc-wrap input, .rb-gc-wrap select, .rb-gc-wrap button,
.rb-gc-c, .rb-gc-rk, .rb-gc-nm, .rb-gc-foot, .rb-gc-status,
.rb-gc-card-d, .rb-gc-card-d * {
	font-family: 'Outfit', -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- controls (pinned by JS via .rb-gc-pinned, not sticky — see cfb-rankings.css) ---------- */
.rb-gc-controls {
	position: relative; z-index: 30;
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	padding: 8px 2px 9px; margin: 0;
	background: #fff;
}
body.rb-gc-pinned-mode #searchform { display: none !important; }
.rb-gc-controls.rb-gc-pinned {
	position: fixed; top: 0; left: 0; right: 0; width: auto;
	z-index: 2000000006;
	background: #fff; box-shadow: 0 3px 8px rgba(16, 24, 40, .12);
}
.rb-gc-sentinel { height: 0; margin: 0; }
.rb-gc-cspacer { height: 0; }

.rb-gc-sel {
	flex: 0 0 auto; height: 34px; width: 128px; font: inherit; font-size: 13px; font-weight: 600;
	color: #fff; white-space: nowrap; overflow: hidden; text-overflow: clip; cursor: pointer;
	padding: 0 24px 0 13px; border: none; border-radius: 20px;
	background-color: var(--rb-sort);
	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='none' stroke='%23ffffff' stroke-width='1.7' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center;
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.rb-gc-sel.rb-gc-week { width: 170px; background-color: var(--rb-navy); }
.rb-gc-search {
	flex: 0 1 210px; min-width: 96px; height: 34px; font: inherit; font-size: 13px; color: var(--rb-ink);
	padding: 0 13px; background: #fff; border: 1px solid var(--rb-sort); border-radius: 20px;
	-webkit-appearance: none; appearance: none;
}
.rb-gc-sel:focus, .rb-gc-search:focus { outline: none; box-shadow: 0 0 0 3px rgba(30, 127, 214, .25); }
.rb-gc-sbtn, .rb-gc-dl {
	flex: 0 0 auto; width: 34px; height: 34px; align-items: center; justify-content: center;
	padding: 0; border: 1px solid var(--rb-sort); border-radius: 50%; background: #fff; color: var(--rb-sort); cursor: pointer;
}
.rb-gc-sbtn { display: none; }
.rb-gc-dl { display: inline-flex; }
.rb-gc-dl:hover, .rb-gc-sbtn:hover { background: #eef4fb; }
.rb-gc-upd i { font-style: normal; color: #9aa0a8; font-variant-numeric: tabular-nums; }

/* loading bar */
.rb-gc-loadbar { position: relative; height: 3px; overflow: hidden; background: transparent; }
.rb-gc-loadbar i { display: none; position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--rb-accent); }
.rb-gc-loadbar.on i { display: block; animation: rb-gc-loadfill .45s ease-out forwards; }
@keyframes rb-gc-loadfill { 0% { width: 0; } 80% { width: 92%; } 100% { width: 100%; } }

/* ---------- status strip: live badge · game counts · last update ---------- */
.rb-gc-status {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
	padding: 6px 2px 8px; font-size: 12px; color: var(--rb-mute);
}
.rb-gc-live {
	display: inline-flex; align-items: center; gap: 6px; margin-right: 10px;
	padding: 2px 9px 2px 7px; border-radius: 999px;
	background: #fdecec; color: var(--rb-live); font-size: 11px; font-weight: 700; letter-spacing: .6px;
}
.rb-gc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--rb-live); animation: rb-gc-pulse 1.4s ease-in-out infinite; }
@keyframes rb-gc-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.rb-gc-stat { font-weight: 500; }
.rb-gc-upd { margin-left: auto; }
.rb-gc-warn { flex-basis: 100%; padding: 4px 8px; border-radius: 4px; background: #fff4e5; color: #8a5a00; font-weight: 600; }

/* ---------- table ---------- */
.rb-gc-scroll { position: relative; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.rb-gc-row { display: flex; align-items: stretch; min-width: max-content; }
.rb-gc-rows { min-width: max-content; }

.rb-gc-pin {
	position: sticky; left: 0; z-index: 3;
	display: flex; align-items: center; gap: 8px;
	width: 208px; min-width: 208px; padding: 0 8px 0 4px;
	background: #fff;
}
/* the frozen column only casts a shadow once the grid has been scrolled sideways */
.rb-gc-scrolled .rb-gc-pin { box-shadow: 6px 0 6px -6px rgba(16, 24, 40, .22); }
/* ID + !important: the theme gives every content <img> a bottom padding, a width and display:block,
 * which floated the logo above the row's centre line and stretched its box to 149px. */
#rb-cfbgc .rb-gc-plogo, #rb-cfbgc .rb-gc-card-d li img {
	display: block !important; box-sizing: border-box !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
	object-fit: contain; flex: 0 0 auto; align-self: center;
}
#rb-cfbgc .rb-gc-plogo { width: 20px !important; height: 20px !important; }
#rb-cfbgc .rb-gc-card-d li img { width: 20px !important; height: 20px !important; }
.rb-gc-rk { width: 34px; min-width: 34px; text-align: center; line-height: 1.05; }
.rb-gc-rk b { display: block; font-size: 14px; font-weight: 700; color: var(--rb-navy); }
.rb-gc-nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rb-gc-nm .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rb-gc-grid { display: flex; align-items: stretch; }
.rb-gc-c {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	padding: 0 4px; font-size: 13px; font-variant-numeric: tabular-nums;
}
.rb-gc-c.hero { font-weight: 700; color: var(--rb-sort); background: #f4f8fd; }

/* header row */
.rb-gc-head { position: relative; z-index: 6; background: #fff; border-top: 1px solid #e6e9ed; border-bottom: 1px solid #d8dce1; }
.rb-gc-head .rb-gc-pin { z-index: 7; background: #fff; }
#rb-cfbgc .rb-gc-head .rb-gc-rk, #rb-cfbgc .rb-gc-head .rb-gc-nm {
	font-size: 11px !important; line-height: 1.15 !important;
	font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #4b5563;
}
.rb-gc-head .rb-gc-rk { display: flex; align-items: center; justify-content: center; }
.rb-gc-head .rb-gc-nm { gap: 3px; }
#rb-cfbgc .rb-gc-head .rb-gc-c {
	min-height: 44px; font-size: 10.5px !important; line-height: 1.1 !important;
	font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
	color: #6b7280; text-align: center; white-space: normal; gap: 2px;
}
#rb-cfbgc .rb-gc-head .rb-gc-c.hero { color: var(--rb-sort) !important; background: #f4f8fd; }
.rb-gc-fixedhead { position: fixed; z-index: 2000000005; display: none; overflow: hidden; box-shadow: 0 3px 6px rgba(16, 24, 40, .16); }
.rb-gc-fixedhead .rb-gc-head { position: static; }

.rb-gc-sortable { cursor: pointer; user-select: none; -webkit-user-select: none; }
.rb-gc-head .rb-gc-sortable:hover { background: #f1f4f8; }
#rb-cfbgc .rb-gc-head .rb-gc-c.sorted { background: #eef4fb; color: var(--rb-sort) !important; }
#rb-cfbgc .rb-gc-head .rb-gc-c.hero.sorted { background: #e3eefb; color: var(--rb-sort) !important; }
#rb-cfbgc .rb-gc-head .rb-gc-nm.sorted { color: var(--rb-sort) !important; }
.rb-gc-ar { font-size: 8px; line-height: 1; opacity: .45; font-style: normal; color: #9aa0a8; }
.rb-gc-ar.on { opacity: 1; color: var(--rb-sort); }
.rb-gc-hl { display: inline; }

/* typography lock (the theme forces 19px onto post content; ID + !important wins) */
#rb-cfbgc .rb-gc-body .rb-gc-nm { font-size: 14px !important; line-height: 1.2 !important; }
#rb-cfbgc .rb-gc-body .rb-gc-grid .rb-gc-c { font-size: 13px !important; line-height: 1.2 !important; }
#rb-cfbgc .rb-gc-rk b { font-size: 14px !important; line-height: 1.05 !important; }
#rb-cfbgc .rb-gc-pos { font-size: 9.5px !important; line-height: 1 !important; }
#rb-cfbgc .rb-gc-foot { font-size: 12px !important; line-height: 1.5 !important; }
#rb-cfbgc .rb-gc-status { font-size: 12px !important; line-height: 1.4 !important; }
#rb-cfbgc .rb-gc-sel, #rb-cfbgc .rb-gc-search { font-size: 13px !important; line-height: 34px !important; }
#rb-cfbgc .rb-gc-more button { font-size: 14px !important; }

/* body rows */
.rb-gc-body { min-height: 46px; border-bottom: 1px solid var(--rb-line); background: #fff; }
.rb-gc-body:nth-child(even) { background: #fafbfd; }
.rb-gc-body:nth-child(even) .rb-gc-pin { background: #fafbfd; }
.rb-gc-body:hover { background: #eef4ff; }
.rb-gc-body:hover .rb-gc-pin { background: #eef4ff; }
/* pre-kickoff rows read quieter: the name is there, the numbers aren't yet */
.rb-gc-body.rb-gc-pre .rb-gc-nm, .rb-gc-body.rb-gc-pre .rb-gc-rk b { color: #6b7280; }
.rb-gc-body.rb-gc-pre .rb-gc-c.hero { color: #9aa0a8; background: #f8fafc; }

/* position badge */
.rb-gc-pos {
	flex: 0 0 auto; display: inline-block; min-width: 26px; padding: 2px 5px; border-radius: 4px;
	font-size: 9.5px; font-weight: 700; letter-spacing: .3px; text-align: center;
	background: #eef1f4; color: #444;
}
.rb-gc-pos.qb { background: #efe9fc; color: #5a3bbf; }
.rb-gc-pos.rb { background: #d9f1f4; color: #0e7490; }
.rb-gc-pos.wr { background: #e6f1fb; color: #185fa5; }
.rb-gc-pos.te { background: #fdefdb; color: #9a5b09; }

/* team / opponent cells */
.rb-gc-cteam { overflow: hidden; }
/* Team centred; Opp left-aligned with the @/vs marker in a fixed slot so the markers stack in a
 * straight line and the code starts right after it. Codes are capped at four letters in the JS. */
.rb-gc-c.rb-gc-ct { justify-content: flex-end; padding: 0 3px 0 2px; }
.rb-gc-c.rb-gc-co { justify-content: flex-start; padding: 0 2px 0 0; }
.rb-gc-co .rb-gc-team { gap: 2px; }
.rb-gc-co .rb-gc-team em { display: inline-block; width: 14px; text-align: right; }
.rb-gc-team { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.rb-gc-team b { white-space: nowrap; font-weight: 600; }
.rb-gc-team em { font-style: normal; font-size: 11px; color: var(--rb-mute); }
.rb-gc-logo { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }

/* the game cell */
.rb-gc-cgame { white-space: nowrap; }
.rb-gc-gm-time { color: var(--rb-mute); font-weight: 500; }
.rb-gc-gm-time i, .rb-gc-gm-live i, .rb-gc-gm-final i { font-style: normal; font-size: 10.5px; color: var(--rb-mute); margin-left: 5px; }
.rb-gc-gm-muted { color: #9aa0a8; }
.rb-gc-gm-live b, .rb-gc-gm-final b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-gc-gm-live b.w, .rb-gc-gm-final b.w { color: var(--rb-win); }
.rb-gc-gm-live b.l, .rb-gc-gm-final b.l { color: var(--rb-loss); }
.rb-gc-gm-live i { color: var(--rb-live); font-weight: 700; }
.rb-gc-gm-live u { text-decoration: none; color: #f0a500; font-size: 9px; margin-left: 4px; }
/* red-zone pill: the possession team has the ball inside the 20 */
.rb-gc-gm-live u.rz {
	display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 3px;
	background: var(--rb-live); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .4px;
	vertical-align: 1px; animation: rb-gc-rz 1.6s ease-in-out infinite;
}
@keyframes rb-gc-rz { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- dashboards (leaders + TD tracker) ---------- */
.rb-gc-dash {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
	margin: 2px 0 14px;
}
@media (max-width: 1100px) { .rb-gc-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Phones and small tablets: one row that scrolls sideways, snapping card to card. */
@media (max-width: 900px) {
	.rb-gc-dash {
		display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory; scroll-padding-left: 2px;
		gap: 8px; padding: 0 2px 6px; margin-right: -2px;
	}
	.rb-gc-card-d { flex: 0 0 250px; scroll-snap-align: start; }
}
.rb-gc-card-d { background: #fff; border: 1px solid #dfe4ec; border-radius: 8px; overflow: hidden; }
#rb-cfbgc .rb-gc-card-d h3 {
	margin: 0; padding: 9px 12px; border-bottom: 2px solid var(--rb-blue);
	font-family: 'Outfit', sans-serif !important; font-size: 12px !important; line-height: 1.2 !important;
	font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--rb-navy);
}
.rb-gc-card-d ul { list-style: none; margin: 0; padding: 4px 0; }
#rb-cfbgc .rb-gc-card-d li {
	display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 12px;
	font-size: 13px !important; line-height: 1.2 !important; margin: 0;
}
.rb-gc-card-d li img, .rb-gc-card-d li i { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.rb-gc-card-d li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rb-gc-card-d li .n em { font-style: normal; color: var(--rb-sort); font-weight: 700; }
.rb-gc-card-d li b { flex: 0 0 auto; font-weight: 700; color: var(--rb-navy); font-variant-numeric: tabular-nums; }
.rb-gc-card-d li b small, .rb-gc-card-d li > small { font-size: 10.5px; font-weight: 500; color: var(--rb-mute); margin-left: 4px; white-space: nowrap; }
.rb-gc-card-d li > small { flex: 0 0 auto; margin-left: 0; }
#rb-cfbgc .rb-gc-card-d p { margin: 0; padding: 14px 12px; font-size: 12.5px !important; color: var(--rb-mute); }
.rb-gc-card-td ul { max-height: 178px; overflow-y: auto; }
@media (max-width: 600px) {
	#rb-cfbgc .rb-gc-card-d li { font-size: 12px !important; min-height: 28px; }
	.rb-gc-card-td ul { max-height: 150px; }
}
.rb-gc-gm-final em {
	display: inline-block; width: 16px; margin-right: 6px; font-style: normal; font-size: 10px; font-weight: 700;
	text-align: center; border-radius: 3px; padding: 1px 0; background: #eef1f4; color: #4b5563;
}
.rb-gc-gm-final em.w { background: #e3f3e8; color: var(--rb-win); }
.rb-gc-gm-final em.l { background: #fbe7e9; color: var(--rb-loss); }

.rb-gc-msg { padding: 26px 10px; text-align: center; font-size: 14px; color: var(--rb-mute); }
.rb-gc-msg small { display: block; margin-top: 6px; font-size: 12px; color: #9aa0a8; }

.rb-gc-more { display: flex; justify-content: center; margin: 14px 0 2px; }
.rb-gc-more button {
	font: inherit; font-size: 14px; font-weight: 600; color: var(--rb-navy);
	padding: 11px 26px; border: 1px solid #cfd8e6; border-radius: 999px;
	background: #fff; cursor: pointer; transition: background .15s, border-color .15s;
}
.rb-gc-more button:hover { background: #eef4ff; border-color: var(--rb-blue); }
.rb-gc-foot { margin: 10px 2px 0; font-size: 12px; line-height: 1.5; color: var(--rb-mute); }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
	.rb-gc-pin { width: 158px; min-width: 158px; padding: 0 6px 0 3px; gap: 5px; }
	#rb-cfbgc .rb-gc-plogo { width: 17px !important; height: 17px !important; }
	#rb-cfbgc .rb-gc-body .rb-gc-nm { font-size: 12px !important; line-height: 1.15 !important; }
	.rb-gc-body { min-height: 40px; }
	.rb-gc-rk { width: 26px; min-width: 26px; }
	#rb-cfbgc .rb-gc-rk b { font-size: 12.5px !important; }
	#rb-cfbgc .rb-gc-body .rb-gc-grid .rb-gc-c { font-size: 11px !important; }
	.rb-gc-c { padding: 0 3px; }
	#rb-cfbgc .rb-gc-head .rb-gc-c { min-height: 44px; font-size: 8.5px !important; letter-spacing: .2px; padding: 4px 3px; }
	#rb-cfbgc .rb-gc-head .rb-gc-rk, #rb-cfbgc .rb-gc-head .rb-gc-nm { font-size: 9px !important; }
	#rb-cfbgc .rb-gc-pos { font-size: 8.5px !important; padding: 2px 4px; min-width: 22px; }
	.rb-gc-ar { font-size: 7px; }
	#rb-cfbgc .rb-gc-foot { font-size: 11px !important; }
	.rb-gc-controls { flex-wrap: wrap; gap: 4px; }
	.rb-gc-sel { width: 66px; padding: 0 18px 0 8px; background-position: right 6px center; }
	.rb-gc-sel.rb-gc-week { width: 112px; }
	#rb-cfbgc .rb-gc-sel, #rb-cfbgc .rb-gc-search { font-size: 11.5px !important; }
	.rb-gc-sbtn { display: inline-flex; margin-left: auto; }
	.rb-gc-dl { width: 32px; height: 32px; }
	.rb-gc-sbtn { width: 32px; height: 32px; }
	.rb-gc-search { display: none; flex: 1 1 100%; min-width: 0; padding: 0 10px; height: 32px; }
	.rb-gc-search.open { display: block; }
	.rb-gc-logo { width: 15px; height: 15px; }
	.rb-gc-team em { font-size: 10px; }
	.rb-gc-co .rb-gc-team em { width: 12px; }
	.rb-gc-gm-time i, .rb-gc-gm-live i, .rb-gc-gm-final i { font-size: 9.5px; margin-left: 4px; }
	#rb-cfbgc .rb-gc-status { font-size: 11px !important; }
	.rb-gc-status { justify-content: flex-start; gap: 4px 8px; }
	.rb-gc-live { margin-right: 0; }
	.rb-gc-upd { margin-left: 0; order: 1; }
	.rb-gc-stat { order: 2; }
}

/* ---------- desktop ---------- */
@media (min-width: 601px) {
	.rb-gc-sel { width: 138px; }
	.rb-gc-sel.rb-gc-week { width: 186px; }
	#rb-cfbgc .rb-gc-sel, #rb-cfbgc .rb-gc-search { font-size: 14px !important; }
	.rb-gc-pin { width: 268px; min-width: 268px; padding-left: 8px; }
	.rb-gc-rk { width: 40px; min-width: 40px; }
	#rb-cfbgc .rb-gc-body .rb-gc-nm { font-size: 15px !important; }
	.rb-gc-body { min-height: 50px; }
	#rb-cfbgc .rb-gc-body .rb-gc-grid .rb-gc-c { font-size: 13.5px !important; }
	#rb-cfbgc .rb-gc-adrow { height: 110px; padding: 10px 0; overflow: hidden; }
}

/* ---------- interleaved Raptive in-content ad slot (see cfb-rankings.css for the reasoning) ---------- */
#rb-cfbgc .rb-gc-adrow {
	position: sticky; left: 0; z-index: 3; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 4px 0; background: #fbfbfc;
	border-top: 1px solid var(--rb-line, #e6eaf1); border-bottom: 1px solid var(--rb-line, #e6eaf1);
}
#rb-cfbgc .rb-gc-adrow .ad-template { margin: auto; max-width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; }
#rb-cfbgc .rb-gc-adrow .ad-template > * { margin: auto; }
@media (max-width: 600px) {
	#rb-cfbgc .rb-gc-adrow { height: 60px; padding: 5px 0; overflow: hidden; }
	#rb-cfbgc .rb-gc-adrow .ad-template { margin: auto; min-height: 0; }
}
body.development #rb-cfbgc .rb-gc-adrow .ad-template { font-size: 0 !important; color: transparent !important; }
#rb-cfbgc .rb-gc-adph {
	box-sizing: border-box; display: flex; align-items: center; justify-content: center;
	width: 320px; height: 50px; max-width: calc(100% - 16px); margin: auto;
	background: #e5e7eb; border: 1px solid #d1d5db; color: #9ca3af; font-size: 11px; font-weight: 600; letter-spacing: .5px;
}
#rb-cfbgc .rb-gc-adph::after { content: '320 × 50'; }
@media (min-width: 601px) {
	#rb-cfbgc .rb-gc-adph { width: 728px; height: 90px; font-size: 12px; }
	#rb-cfbgc .rb-gc-adph::after { content: '728 × 90'; }
}

/* Breathing room below the theme's blue SEO box / any injected player above the mount. */
body.rb-cfbgc-on #rb-cfbgc { margin-top: 24px; }
