/* RotoBaller — NBA Player Stats: the few NBA-only rules on top of rankings-mobile-cards.css and the NFL
 * stats page's nfl-player-stats.css (both loaded first; body carries rb-nps-on so the NFL page's look
 * applies as-is). Here: the server-rendered skeleton's control row, the Per Game | Per 36 | Totals
 * switch, the scope button and the sheet's date pickers.
 */

/* ── first paint: grey controls + header, then the shared .rb-mc-loading card rows (rb-skeleton.css).
 * Heights match the loaded chrome (controls row + column header) so nothing moves when the JS swaps
 * the skeleton out. ── */
#rb-mc .rb-nbps-sk-chrome {
	position: relative; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
	height: 102px; padding: 10px 8px 0; box-sizing: border-box;
}
#rb-mc .rb-nbps-sk-chrome .rb-skel { display: block; flex: 0 0 auto; margin: 0; background: #E8ECF1; }
#rb-mc .rb-nbps-sk-pos { width: 360px; height: 31px; border-radius: 16px; }
#rb-mc .rb-nbps-sk-search { width: 200px; height: 34px; border-radius: 20px; }
#rb-mc .rb-nbps-sk-mode { width: 235px; height: 36px; border-radius: 18px; }
#rb-mc .rb-nbps-sk-scope { width: 150px; height: 34px; border-radius: 20px; }
#rb-mc .rb-nbps-sk-gear { width: 34px; height: 34px; border-radius: 50%; }
#rb-mc .rb-nbps-sk-head {
	position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
	border-bottom: 1px solid #D8DCE1; box-sizing: border-box;
}
@media (max-width: 600px) {
	#rb-mc .rb-nbps-sk-chrome { height: 161px; gap: 6px; padding: 8px 4px 0; }
	#rb-mc .rb-nbps-sk-pos { flex: 1 1 100%; width: auto; height: 28px; }
	#rb-mc .rb-nbps-sk-search { flex: 1 1 0; width: auto; height: 36px; }
	#rb-mc .rb-nbps-sk-mode { width: 170px; height: 30px; }
	/* its own line after the settings icon, like the loaded scope line: full-width box, 130px bar */
	#rb-mc .rb-nbps-sk-chrome .rb-nbps-sk-scope {
		order: 1; flex: 1 1 100%; width: auto; height: 14px; margin-top: 4px; border-radius: 0;
		background: linear-gradient(#E8ECF1, #E8ECF1) 4px 0 / 130px 100% no-repeat;
	}
}

/* The JS pins the title's font inline (the theme swaps it on phones); match it before the JS runs so the
 * skeleton's title line is the loaded one's height. */
body.rb-nbps-on #rb-mc .rb-nps-top-h {
	font-family: 'Anton', 'Anton SC', 'Outfit', sans-serif !important; font-weight: 400 !important;
	font-size: 30px !important; line-height: 1.05 !important; text-transform: uppercase !important;
}
body.rb-nbps-on #rb-mc .rb-nps-top-c { line-height: 1.25 !important; }
@media (max-width: 600px) {
	body.rb-nbps-on #rb-mc .rb-nps-top-h { font-size: 26px !important; }
}

/* ── Per Game | Per 36 | Totals ── */
#rb-mc .rb-nbps-mode { flex: 0 0 auto; }

/* ── scope button: what the board shows ("2026-27 · Last 10 Games"); opens the settings sheet ── */
#rb-mc .rb-nbps-scope {
	flex: 0 1 auto; min-width: 0; margin: 0; padding: 8px 13px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.2; color: #1e7fd6;
	background: #fff; border: 1px solid #d8dce1; border-radius: 20px; cursor: pointer;
}
#rb-mc .rb-nbps-scope:hover { border-color: #1e7fd6; }
@media (max-width: 600px) {
	#rb-mc .rb-nbps-mode .rb-mc-tg { padding-left: 7px; padding-right: 7px; }
	/* phones: its own short line under search + switch + settings */
	#rb-mc .rb-nbps-scope { order: 1; flex: 1 1 100%; padding: 2px 4px; border: 0; text-align: left; font-size: 12.5px; }
}

/* ── settings sheet: date pickers share the sheet's select look ── */
.rb-nbps-sheet input.rb-nbps-s-date {
	display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box;
	font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 600; color: #15202b;
	background: #f6f8fa; border: 1px solid #d8dce1; border-radius: 22px; -webkit-appearance: none; appearance: none;
}
.rb-nbps-sheet .rb-nps-s-wk input.rb-nbps-s-date { flex: 1 1 0; }

/* +/- and the rank badge: keep negative numbers from wrapping in narrow phone columns */
#rb-mc .rb-mc-c[data-key="pm"] { white-space: nowrap; }
