.pbp-analyzer-page {
	max-width: 1100px;
	padding-top: 2.5rem;
	padding-bottom: 3rem;
}

.pbp-page-heading {
	margin-bottom: 2rem;
}

.pbp-page-heading h1 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	margin-bottom: 0.65rem;
}

.pbp-eyebrow,
.pbp-section-kicker {
	color: #2aa8ff;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin-bottom: 0.35rem;
}

.pbp-page-description {
	color: #aeb4bd;
	margin: 0 auto;
	max-width: 680px;
}

.pbp-upload-card,
.pbp-section-card,
.pbp-scoreboard {
	background: #292e34;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.pbp-upload-card {
	max-width: 820px;
	margin: 0 auto;
	padding: 1rem;
}

.pbp-drop-zone {
	border: 2px dashed #59616c;
	border-radius: 12px;
	padding: clamp(2.25rem, 7vw, 4.75rem) 1.25rem;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	outline: none;
}

.pbp-drop-zone:hover,
.pbp-drop-zone:focus,
.pbp-drop-zone.is-dragging {
	background: rgba(42, 168, 255, 0.06);
	border-color: #2aa8ff;
}

.pbp-drop-zone.is-dragging {
	transform: scale(1.005);
}

.pbp-upload-icon {
	align-items: center;
	background: rgba(42, 168, 255, 0.12);
	border-radius: 50%;
	color: #55baff;
	display: inline-flex;
	font-size: 2rem;
	height: 74px;
	justify-content: center;
	margin-bottom: 1rem;
	width: 74px;
}

.pbp-drop-zone h2 {
	font-size: 1.45rem;
	font-weight: 750;
}

.pbp-drop-zone > p {
	color: #aeb4bd;
}

.pbp-privacy-note {
	font-size: 0.82rem;
	margin: 1.5rem 0 0 !important;
}

.pbp-file-status {
	color: #b9c0c9;
	font-size: 0.9rem;
	padding: 0.85rem 0.3rem 0.1rem;
	text-align: center;
}

.pbp-results-toolbar {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.pbp-drive-actions {
	display: flex;
	gap: 0.5rem;
}

.pbp-scoreboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.pbp-score-team {
	align-items: center;
	display: flex;
	gap: 1.25rem;
	min-height: 150px;
	padding: 1.5rem 2rem;
}

.pbp-score-team:last-child {
	flex-direction: row-reverse;
	text-align: right;
}

.pbp-team-mark {
	align-items: center;
	background: #20242a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	display: flex;
	font-size: 1rem;
	font-weight: 900;
	height: 64px;
	justify-content: center;
	letter-spacing: -0.03em;
	width: 64px;
}

.pbp-team-abbr {
	color: #bbc1c9;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.pbp-final-score {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 850;
	line-height: 1;
}

.pbp-game-status {
	align-items: center;
	background: #20242a;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	color: #aeb4bd;
	display: flex;
	flex-direction: column;
	font-size: 0.72rem;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.12em;
	padding: 1rem 1.35rem;
	text-transform: uppercase;
}

.pbp-game-status i {
	color: #2aa8ff;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.pbp-tabs {
	gap: 0.5rem;
	margin: 1.5rem 0 1rem;
}

.pbp-tabs .nav-link {
	color: #aeb4bd;
	font-weight: 700;
	min-width: 150px;
}

.pbp-tabs .nav-link.active {
	background-color: #0022ff;
	color: #fff;
}

.pbp-section-card {
	overflow: hidden;
}

.pbp-section-heading {
	align-items: center;
	background: #252a30;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	padding: 1.15rem 1.35rem;
}

.pbp-section-heading h2 {
	font-size: 1.3rem;
	margin: 0;
}

.pbp-count-badge {
	background: #20242a;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 999px;
	color: #bfc5cd;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.4rem 0.7rem;
}

.pbp-quarter-heading {
	background: #1f2328;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	color: #c7ccd3;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0;
	padding: 0.75rem 1.35rem;
	text-transform: uppercase;
}

.pbp-scoring-play {
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	display: grid;
	gap: 1rem;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	padding: 1rem 1.35rem;
}

.pbp-scoring-play:last-child {
	border-bottom: 0;
}

.pbp-scoring-team {
	font-size: 0.9rem;
	font-weight: 850;
}

.pbp-scoring-time {
	color: #939ba6;
	font-size: 0.76rem;
	margin-top: 0.15rem;
}

.pbp-scoring-description {
	font-size: 0.94rem;
	font-weight: 650;
	margin-bottom: 0.2rem;
}

.pbp-scoring-detail {
	color: #99a1ab;
	font-size: 0.8rem;
}

.pbp-scoring-score {
	font-size: 1.1rem;
	font-weight: 850;
	white-space: nowrap;
}

.pbp-drive-list .accordion-item {
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: #fff;
}

.pbp-drive-list .accordion-item:last-child {
	border-bottom: 0;
}

.pbp-drive-list .accordion-button {
	background: #292e34;
	box-shadow: none;
	color: #fff;
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 54px minmax(120px, 0.8fr) minmax(180px, 1.25fr) auto;
	padding: 1rem 1.2rem;
}

.pbp-drive-list .accordion-button:not(.collapsed) {
	background: #30363d;
	color: #fff;
}

.pbp-drive-list .accordion-button::after {
	margin-left: 0.4rem;
	filter: invert(1) grayscale(1);
}

.pbp-drive-team {
	align-items: center;
	background: #20242a;
	border-radius: 8px;
	display: flex;
	font-size: 0.75rem;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	letter-spacing: 0.04em;
	width: 50px;
}

.pbp-drive-result {
	font-size: 0.9rem;
	font-weight: 850;
}

.pbp-drive-meta {
	color: #aab1ba;
	font-size: 0.8rem;
}

.pbp-drive-score {
	font-size: 0.85rem;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.pbp-drive-list .accordion-body {
	background: #23272c;
	padding: 0;
}

.pbp-drive-summary-strip {
	background: #1e2227;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: #aeb5be;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.78rem;
	gap: 1rem 1.5rem;
	padding: 0.75rem 1.25rem;
}

.pbp-play-row {
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 64px 104px 105px minmax(0, 1fr);
	padding: 0.8rem 1.25rem;
}

.pbp-play-row:last-child {
	border-bottom: 0;
}

.pbp-play-row.is-transition {
	background: rgba(42, 168, 255, 0.035);
}

.pbp-play-clock,
.pbp-play-down,
.pbp-play-field {
	color: #aeb5be;
	font-size: 0.78rem;
}

.pbp-play-description {
	font-size: 0.86rem;
	line-height: 1.45;
}

.pbp-play-type {
	color: #55baff;
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	margin-right: 0.45rem;
	text-transform: uppercase;
}

.pbp-empty {
	color: #aeb4bd;
	padding: 2.5rem 1rem;
	text-align: center;
}

.pbp-result-touchdown,
.pbp-result-field-goal,
.pbp-result-safety {
	color: #4ad295;
}

.pbp-result-turnover,
.pbp-result-missed-field-goal {
	color: #ff6d78;
}

.pbp-result-punt,
.pbp-result-end-of-half,
.pbp-result-end-of-game {
	color: #b8bec6;
}

@media (max-width: 768px) {
	.pbp-analyzer-page {
		padding-top: 1.25rem;
	}

	.pbp-results-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.pbp-drive-actions {
		justify-content: flex-end;
	}

	.pbp-scoreboard {
		grid-template-columns: 1fr 60px 1fr;
	}

	.pbp-score-team,
	.pbp-score-team:last-child {
		flex-direction: column;
		gap: 0.75rem;
		min-height: 170px;
		padding: 1.2rem 0.75rem;
		text-align: center;
	}

	.pbp-team-mark {
		height: 50px;
		width: 50px;
	}

	.pbp-game-status {
		padding: 0.75rem 0.4rem;
		writing-mode: vertical-rl;
	}

	.pbp-scoring-play {
		grid-template-columns: 62px minmax(0, 1fr);
	}

	.pbp-scoring-score {
		grid-column: 2;
	}

	.pbp-drive-list .accordion-button {
		grid-template-columns: 50px minmax(0, 1fr) auto;
	}

	.pbp-drive-meta {
		grid-column: 2 / 4;
	}

	.pbp-play-row {
		grid-template-columns: 58px minmax(0, 1fr);
	}

	.pbp-play-down,
	.pbp-play-field {
		grid-column: 2;
	}

	.pbp-play-description {
		grid-column: 1 / -1;
	}
}


/* Team branding supplied by ssecmaster.teamsmaster */
.pbp-score-team {
	position: relative;
	isolation: isolate;
}

.pbp-score-team::before {
	background: linear-gradient(90deg, var(--team-primary, #39424d), transparent 85%);
	content: "";
	inset: 0;
	opacity: 0.28;
	position: absolute;
	z-index: -1;
}

.pbp-score-team:last-child::before {
	background: linear-gradient(270deg, var(--team-primary, #39424d), transparent 85%);
}

.pbp-team-logo {
	filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.35));
	height: 58px;
	max-width: 76px;
	object-fit: contain;
	width: 68px;
}

.pbp-team-logo-fallback {
	align-items: center;
	background: var(--team-primary, #20242a);
	border: 2px solid var(--team-secondary, rgba(255, 255, 255, 0.16));
	border-radius: 50%;
	color: var(--team-text, #fff);
	display: flex;
	font-size: 0.9rem;
	font-weight: 900;
	height: 64px;
	justify-content: center;
	width: 64px;
}

.pbp-team-name {
	font-size: 1rem;
	font-weight: 750;
	margin-bottom: 0.3rem;
}

.pbp-drive-team {
	background: var(--team-primary, #20242a);
	border: 1px solid var(--team-secondary, rgba(255, 255, 255, 0.12));
	color: var(--team-text, #fff);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.pbp-drive-list .accordion-item {
	border-left: 4px solid var(--team-primary, transparent);
}

.pbp-scoring-play {
	border-left: 4px solid var(--team-primary, transparent);
	position: relative;
}

.pbp-scoring-logo {
	height: 34px;
	margin-right: 0.55rem;
	max-width: 42px;
	object-fit: contain;
	vertical-align: middle;
	width: 38px;
}

.pbp-scoring-team-name {
	color: #aeb5be;
	font-size: 0.72rem;
	font-weight: 650;
	margin-top: 0.1rem;
}

.pbp-team-color-bar {
	background: linear-gradient(
		90deg,
		var(--team-primary, #39424d) 0 72%,
		var(--team-secondary, #fff) 72% 100%
	);
	border-radius: 999px;
	height: 5px;
	margin-top: 0.45rem;
	max-width: 105px;
	width: 100%;
}

.pbp-score-team:last-child .pbp-team-color-bar {
	margin-left: auto;
}

@media (max-width: 768px) {
	.pbp-team-logo {
		height: 48px;
		max-width: 58px;
		width: 54px;
	}

	.pbp-team-name {
		font-size: 0.82rem;
	}
}


/* Game leaders and team statistics */
.pbp-analysis-summary {
	margin-bottom: 1.25rem;
}

.pbp-game-leaders,
.pbp-team-stats {
	min-height: 100%;
}

.pbp-leader-header,
.pbp-leader-row {
	display: grid;
	grid-template-columns: 105px minmax(0, 1fr) minmax(0, 1fr);
}

.pbp-leader-header {
	background: #20242a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: #aeb4bd;
	font-size: 0.78rem;
	font-weight: 600;
}

.pbp-leader-header > div,
.pbp-leader-row > div {
	padding: 0.75rem 1rem;
}

.pbp-leader-header-team {
	align-items: center;
	display: flex;
	gap: 0.45rem;
}

.pbp-leader-header-team:last-child {
	justify-content: flex-end;
	text-align: right;
}

.pbp-leader-header-logo {
	height: 22px;
	max-width: 28px;
	object-fit: contain;
	width: 26px;
}

.pbp-leader-row {
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	min-height: 76px;
}

.pbp-leader-row:last-child {
	border-bottom: 0;
}

.pbp-leader-category {
	color: #aeb4bd;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.pbp-leader-player:last-child {
	text-align: right;
}

.pbp-leader-name {
	color: #f2f2f2;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.25;
}

.pbp-leader-line {
	color: #aeb4bd;
	font-size: 0.8rem;
	line-height: 1.35;
	margin-top: 0.2rem;
}

.pbp-leader-empty {
	color: #747c86;
	font-size: 0.82rem;
}

.pbp-team-stats-header,
.pbp-team-stat-row {
	display: grid;
	grid-template-columns: minmax(70px, 0.8fr) minmax(130px, 1.4fr) minmax(70px, 0.8fr);
	text-align: center;
}

.pbp-team-stats-header {
	align-items: center;
	background: #20242a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	font-size: 0.78rem;
	font-weight: 600;
	min-height: 50px;
}

.pbp-team-stats-header > div {
	padding: 0.65rem 0.7rem;
}

.pbp-team-stat-team {
	align-items: center;
	display: flex;
	gap: 0.45rem;
	justify-content: center;
}

.pbp-team-stat-logo {
	height: 25px;
	max-width: 32px;
	object-fit: contain;
	width: 29px;
}

.pbp-team-stat-row {
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	min-height: 45px;
}

.pbp-team-stat-row:last-child {
	border-bottom: 0;
}

.pbp-team-stat-row > div {
	padding: 0.62rem 0.65rem;
}

.pbp-team-stat-value {
	font-size: 0.9rem;
	font-weight: 600;
}

.pbp-team-stat-label {
	color: #aeb4bd;
	font-size: 0.78rem;
	font-weight: 400;
}

.pbp-team-stat-value.is-better {
	color: #fff;
	position: relative;
}

.pbp-team-stat-value.is-better::after {
	background: var(--team-primary, #59616c);
	border-radius: 999px;
	bottom: 5px;
	content: "";
	height: 2px;
	left: 25%;
	opacity: 0.85;
	position: absolute;
	right: 25%;
}

.pbp-derived-note {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: #7f8790;
	font-size: 0.7rem;
	padding: 0.7rem 1rem;
	text-align: center;
}

@media (max-width: 768px) {
	.pbp-leader-header,
	.pbp-leader-row {
		grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr);
	}

	.pbp-leader-header > div,
	.pbp-leader-row > div {
		padding: 0.7rem 0.65rem;
	}

	.pbp-leader-name {
		font-size: 0.82rem;
	}

	.pbp-leader-line {
		font-size: 0.74rem;
	}

	.pbp-team-stats-header,
	.pbp-team-stat-row {
		grid-template-columns: minmax(60px, 0.75fr) minmax(112px, 1.4fr) minmax(60px, 0.75fr);
	}
}


/* Full-width ESPN-style desktop layout */
.pbp-analyzer-page {
	max-width: 1680px;
	padding-left: clamp(1rem, 2vw, 2rem);
	padding-right: clamp(1rem, 2vw, 2rem);
	width: 100%;
}

.pbp-page-heading,
.pbp-upload-card {
	max-width: 900px;
}

.pbp-page-heading {
	margin-left: auto;
	margin-right: auto;
}

.pbp-scoreboard {
	margin-left: auto;
	margin-right: auto;
	max-width: 1500px;
}

.pbp-results-toolbar {
	margin-left: auto;
	margin-right: auto;
	max-width: 1500px;
}

.pbp-desktop-grid {
	align-items: start;
	display: grid;
	gap: 1rem;
	grid-template-columns:
		minmax(255px, 0.9fr)
		minmax(620px, 2.4fr)
		minmax(270px, 1fr);
	margin: 0 auto;
	max-width: 1500px;
	width: 100%;
}

.pbp-sidebar {
	min-width: 0;
}

.pbp-main-column {
	min-width: 0;
	order: 2;
}

.pbp-leaders-column {
	order: 1;
}

.pbp-stats-column {
	order: 3;
}

.pbp-sticky-card {
	position: sticky;
	top: 92px;
}

.pbp-tabs {
	margin-top: 0;
}

.pbp-main-column .pbp-section-card {
	width: 100%;
}

.pbp-drive-list .accordion-button {
	grid-template-columns:
		54px
		minmax(120px, 0.7fr)
		minmax(180px, 1.3fr)
		auto;
}

.pbp-play-row {
	grid-template-columns: 66px 110px 110px minmax(0, 1fr);
}

@media (min-width: 1200px) and (max-width: 1450px) {
	.pbp-desktop-grid {
		grid-template-columns:
			minmax(235px, 0.85fr)
			minmax(560px, 2.15fr)
			minmax(250px, 0.95fr);
	}
}

@media (max-width: 1199.98px) {
	.pbp-desktop-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.pbp-leaders-column {
		grid-column: 1;
		grid-row: 1;
	}

	.pbp-stats-column {
		grid-column: 2;
		grid-row: 1;
	}

	.pbp-main-column {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.pbp-sticky-card {
		position: static;
	}
}

@media (max-width: 767.98px) {
	.pbp-analyzer-page {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.pbp-desktop-grid {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.pbp-leaders-column {
		order: 1;
		width: 100%;
	}

	.pbp-stats-column {
		order: 2;
		width: 100%;
	}

	.pbp-main-column {
		order: 3;
		width: 100%;
	}

	.pbp-tabs {
		margin-top: 0.25rem;
	}

	.pbp-drive-list .accordion-button {
		grid-template-columns: 50px minmax(0, 1fr) auto;
	}

	.pbp-play-row {
		grid-template-columns: 58px minmax(0, 1fr);
	}
}


/* True full-width desktop layout */
.pbp-analyzer-page.container-fluid {
	width: 94vw;
	max-width: none !important;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

.pbp-results-toolbar,
.pbp-scoreboard,
.pbp-desktop-grid {
	width: 100%;
	max-width: none !important;
}

.pbp-desktop-grid {
	grid-template-columns:
		minmax(285px, 18%)
		minmax(0, 62%)
		minmax(300px, 20%);
	gap: clamp(0.85rem, 1vw, 1.25rem);
}

.pbp-leader-header,
.pbp-leader-row {
	grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr);
}

.pbp-leader-header > div,
.pbp-leader-row > div {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

@media (min-width: 1800px) {
	.pbp-analyzer-page.container-fluid {
		width: 92vw;
	}

	.pbp-desktop-grid {
		grid-template-columns:
			minmax(300px, 17%)
			minmax(0, 65%)
			minmax(315px, 18%);
	}
}

@media (min-width: 1200px) and (max-width: 1799.98px) {
	.pbp-analyzer-page.container-fluid {
		width: 96vw;
	}

	.pbp-desktop-grid {
		grid-template-columns:
			minmax(255px, 20%)
			minmax(0, 57%)
			minmax(270px, 23%);
	}
}

@media (max-width: 1199.98px) {
	.pbp-analyzer-page.container-fluid {
		width: calc(100% - 2rem);
		max-width: none !important;
	}
}

@media (max-width: 767.98px) {
	.pbp-analyzer-page.container-fluid {
		width: calc(100% - 1rem);
		padding-left: 0;
		padding-right: 0;
	}
}


/* Quarter separators for the All Drives accordion */
.pbp-drive-quarter-heading {
	border-left: 4px solid #59616c;
	margin: 0;
	position: relative;
	z-index: 1;
}

.pbp-drive-quarter-heading:first-child {
	border-top: 0;
}

.pbp-drive-quarter-heading + .accordion-item {
	border-top: 0;
}


/* Absolute game entertainment grade */
.pbp-game-grade {
	background:
		linear-gradient(
			110deg,
			rgba(255, 255, 255, 0.025),
			rgba(255, 255, 255, 0)
		),
		#252a30;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-left: 5px solid var(--grade-color, #8d96a1);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	margin: 0 auto 1rem;
	max-width: none;
	overflow: hidden;
	width: 100%;
}

.pbp-grade-main {
	align-items: center;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 1rem 1.25rem;
}

.pbp-grade-score-wrap {
	align-items: baseline;
	display: flex;
	min-width: 112px;
}

.pbp-grade-score {
	color: var(--grade-color, #fff);
	font-size: clamp(2.4rem, 4vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.055em;
	line-height: 0.95;
}

.pbp-grade-out-of {
	color: #8e969f;
	font-size: 0.78rem;
	font-weight: 500;
	margin-left: 0.4rem;
}

.pbp-grade-copy h2 {
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	font-weight: 600;
	margin: 0 0 0.45rem;
}

.pbp-grade-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pbp-grade-tag {
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 999px;
	color: #d9dde2;
	font-size: 0.72rem;
	font-weight: 500;
	padding: 0.25rem 0.55rem;
}

.pbp-grade-details-button {
	white-space: nowrap;
}

.pbp-grade-details-inner {
	background: #20242a;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 1rem 1.25rem;
}

.pbp-grade-evaluation-section {
	align-items: start;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
}

.pbp-grade-reasons {
	display: grid;
	gap: 0.5rem;
}

.pbp-grade-reason {
	align-items: flex-start;
	color: #c9ced4;
	display: flex;
	font-size: 0.82rem;
	gap: 0.55rem;
	line-height: 1.4;
}

.pbp-grade-reason i {
	color: var(--grade-color, #8d96a1);
	margin-top: 0.15rem;
	width: 14px;
}

.pbp-grade-breakdown {
	display: grid;
	gap: 0.55rem;
}

.pbp-grade-breakdown-row {
	align-items: center;
	display: grid;
	gap: 0.65rem;
	grid-template-columns: minmax(100px, 1fr) minmax(90px, 1.4fr) 46px;
}

.pbp-grade-breakdown-label,
.pbp-grade-breakdown-score {
	color: #aeb4bd;
	font-size: 0.74rem;
}

.pbp-grade-breakdown-score {
	text-align: right;
}

.pbp-grade-breakdown-track {
	background: #15191e;
	border-radius: 999px;
	height: 6px;
	overflow: hidden;
}

.pbp-grade-breakdown-fill {
	background: var(--grade-color, #8d96a1);
	border-radius: inherit;
	height: 100%;
	width: var(--grade-progress, 0%);
}

@media (max-width: 767.98px) {
	.pbp-grade-main {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 0.9rem 1rem;
	}

	.pbp-grade-details-button {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.pbp-grade-details-inner {
		padding: 0.9rem 1rem;
	}

	.pbp-grade-evaluation-section {
		grid-template-columns: 1fr;
	}

	.pbp-grade-score-wrap {
		min-width: 90px;
	}
}


.pbp-historical-narratives {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin-top: 1.25rem;
	padding-top: 1.15rem;
	width: 100%;
}

.pbp-historical-narratives h3 {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.pbp-history-item {
	align-items: flex-start;
	display: flex;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}

.pbp-history-item > i {
	color: var(--grade-color, #e9b949);
	margin-top: 0.2rem;
	width: 16px;
}

.pbp-history-item.is-neutral > i {
	color: #9aa3ad;
}

.pbp-history-item strong,
.pbp-history-item span,
.pbp-history-item small {
	display: block;
}

.pbp-history-item strong {
	font-size: 0.8rem;
}

.pbp-history-item span {
	color: #c8cdd3;
	font-size: 0.78rem;
	line-height: 1.4;
}

.pbp-history-item small {
	color: #858e98;
	font-size: 0.68rem;
	margin-top: 0.12rem;
}

.pbp-history-bonus {
	color: #76d7a5;
	font-size: 0.72rem;
	font-weight: 600;
	margin: 0.75rem 0 0;
}


.pbp-history-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pbp-history-position {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #e9edf1;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.2rem 0.42rem;
}


.pbp-history-team-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pbp-history-team-column {
	min-width: 0;
}

.pbp-history-team-column + .pbp-history-team-column {
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	padding-left: 1.5rem;
}

.pbp-history-team-header {
	align-items: center;
	border-bottom: 2px solid var(--story-team-color);
	display: flex;
	gap: 0.65rem;
	margin-bottom: 0.9rem;
	padding-bottom: 0.65rem;
}

.pbp-history-team-header img {
	height: 34px;
	object-fit: contain;
	width: 34px;
}

.pbp-history-team-header strong,
.pbp-history-team-header span {
	display: block;
}

.pbp-history-team-header strong {
	font-size: 0.88rem;
	line-height: 1.2;
}

.pbp-history-team-header span {
	color: #8f99a4;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-top: 0.15rem;
}

.pbp-history-team-list {
	min-width: 0;
}

.pbp-history-empty {
	color: #747e89;
	font-size: 0.76rem;
	font-style: italic;
	margin: 0;
}

.pbp-history-unassigned {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 1rem;
	padding-top: 0.9rem;
}

.pbp-history-unassigned h4 {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

@media (max-width: 800px) {
	.pbp-history-team-grid {
		grid-template-columns: 1fr;
	}

	.pbp-history-team-column + .pbp-history-team-column {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		margin-top: 0.25rem;
		padding-left: 0;
		padding-top: 1.15rem;
	}
}


.pbp-analysis-loading {
	align-items: center;
	background:
		linear-gradient(
			135deg,
			rgba(39, 45, 52, 0.98),
			rgba(29, 34, 40, 0.98)
		);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin: 1.25rem auto;
	min-height: 180px;
	padding: 2rem;
	text-align: left;
	width: 100%;
}

.pbp-analysis-loading-spinner {
	align-items: center;
	background: rgba(52, 181, 235, 0.1);
	border: 1px solid rgba(52, 181, 235, 0.28);
	border-radius: 50%;
	color: #34b5eb;
	display: flex;
	flex: 0 0 auto;
	font-size: 1.5rem;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.pbp-analysis-loading h2 {
	font-size: 1rem;
	margin: 0 0 0.3rem;
}

.pbp-analysis-loading p {
	color: #aeb7c1;
	font-size: 0.82rem;
	margin: 0;
}

.pbp-history-unavailable {
	align-items: flex-start;
	color: #aeb7c1;
	display: flex;
	font-size: 0.78rem;
	gap: 0.55rem;
	padding: 0.25rem 0;
}

.pbp-history-unavailable i {
	color: #d5a85f;
	margin-top: 0.12rem;
}

@media (max-width: 600px) {
	.pbp-analysis-loading {
		flex-direction: column;
		text-align: center;
	}
}
