/* ── App layout ─────────────────────────────────────────────── */
.app {
	font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	color: #1a1a1a;
	background: #f9f9f9;
	min-height: 100vh;
}

.app-content {
	padding: 1.5rem 2rem;
}

.update-banner {
	position: sticky;
	top: 0;
	z-index: 1300;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.85rem;
	padding: 0.7rem 1rem;
	background: linear-gradient(90deg, #143625, #1e4d36);
	color: #f4fff7;
	border-bottom: 1px solid rgba(126, 196, 156, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.update-banner__body {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.update-banner__title {
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.25px;
	text-transform: uppercase;
}

.update-banner__text {
	font-size: 0.83rem;
	color: rgba(244, 255, 247, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.update-banner__actions {
	display: flex;
	gap: 0.55rem;
	flex-shrink: 0;
}

.update-banner__btn {
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: #f4fff7;
	color: #183a29;
	padding: 0.38rem 0.7rem;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.update-banner__btn--ghost {
	background: transparent;
	color: #f4fff7;
}

.update-banner__btn:hover {
	filter: brightness(0.95);
}

/* ── Header ─────────────────────────────────────────────────── */
.app-header {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #1a3a2a;
	padding: 0.3rem 1.25rem 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 10;
}

.app-header__top-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	width: 100%;
	min-height: 52px;
}

.app-header__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
	padding: 0.5rem 0;
}

.app-header__logo {
	height: 36px;
	width: 36px;
	object-fit: contain;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.2);
}

.app-header__title {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
}

.app-header__admin-btn {
	background: #123a2a;
	color: #d8f4e3;
	border: 1px solid rgba(216, 244, 227, 0.35);
	border-radius: 999px;
	padding: 0.33rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	justify-self: end;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-header__admin-btn:hover {
	background: #175137;
	transform: translateY(-1px);
}

/* ── Navigation ─────────────────────────────────────────────── */
.app-nav {
	display: flex;
	gap: 0.25rem;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.app-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: none;
	border: none;
	color: #a8c5b0;
	font-family: 'Barlow', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.9rem 1rem;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.app-nav__item:hover {
	color: #ffffff;
}

.app-nav__item--active {
	color: #ffffff;
	border-bottom-color: #4caf72;
}

.app-nav__item--featured {
	color: #ffd68a;
	border-bottom-color: rgba(255, 200, 92, 0.45);
}

.app-nav__item--featured:hover,
.app-nav__item--featured.app-nav__item--active {
	color: #fff4cf;
	border-bottom-color: #ffc85c;
}

.app-nav__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.42rem;
	border-radius: 999px;
	background: #ffc85c;
	color: #1f291f;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	line-height: 1;
}

.app-nav__tag--side {
	margin-left: auto;
}

.app-header__menu-btn {
	display: none;
	align-items: center;
	gap: 0.45rem;
	border: 1px solid #3f5f4f;
	background: #234634;
	color: #fff;
	border-radius: 7px;
	padding: 0.5rem 0.8rem;
	font-weight: 700;
	font-size: 0.82rem;
	line-height: 1;
	cursor: pointer;
}

.app-header__hamburger {
	display: inline-grid;
	gap: 3px;
	width: 14px;
}

.app-header__hamburger-line {
	display: block;
	height: 2px;
	width: 14px;
	border-radius: 999px;
	background: currentColor;
	transform-origin: center;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-header__menu-btn--open .app-header__hamburger-line:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}

.app-header__menu-btn--open .app-header__hamburger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0.5);
}

.app-header__menu-btn--open .app-header__hamburger-line:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

.app-header__menu-label {
	display: inline-block;
}

.app-header__menu-spacer {
	display: none;
	width: 64px;
	height: 1px;
}

.admin-panel {
	display: grid;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #dbe6df;
	border-radius: 12px;
	background: #ffffff;
	max-width: 780px;
	margin-inline: auto;
}

.admin-panel__label {
	font-weight: 700;
	font-size: 0.9rem;
	color: #123a2a;
}

.admin-panel__auth-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.7rem;
	align-items: center;
}

.admin-panel__input,
.admin-panel__textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.8rem;
	border: 1px solid #c9d9cf;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: Barlow, sans-serif;
}

.admin-panel__textarea {
	min-height: 110px;
	resize: vertical;
}

.admin-panel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	justify-self: start;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 8px;
	background: #1a5a3d;
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
}

.admin-panel__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.admin-panel__section {
	display: grid;
	gap: 0.7rem;
	padding: 0.85rem;
	border: 1px solid #e0ebe4;
	border-radius: 10px;
	background: #f9fcfa;
}

.admin-panel__section-title {
	margin: 0;
	font-size: 1rem;
	color: #103223;
}

.admin-panel__error {
	margin: 0;
	color: #b42318;
	font-weight: 600;
	word-break: break-word;
}

.admin-panel__status {
	margin: 0;
	color: #0c3f2b;
	font-weight: 600;
	word-break: break-word;
}

.admin-panel__loader {
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	animation: admin-loader-spin 0.8s linear infinite;
}

@keyframes admin-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

.app-header__menu-btn:hover {
	background: #2b5842;
}

.app-side-nav {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: min(78vw, 320px);
	background: #163424;
	box-shadow: 2px 0 18px rgba(0, 0, 0, 0.25);
	transform: translateX(-105%);
	transition: transform 0.2s ease;
	z-index: 1200;
	display: flex;
	flex-direction: column;
}

.app-side-nav--open {
	transform: translateX(0);
}

.app-side-nav__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	border: 0;
	padding: 0;
	margin: 0;
	z-index: 1100;
	cursor: pointer;
}

.app-side-nav__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border-bottom: 1px solid rgba(173, 206, 188, 0.16);
}

.app-side-nav__title {
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}

.app-side-nav__close {
	border: 1px solid #476956;
	background: #234634;
	color: #fff;
	border-radius: 6px;
	padding: 0.35rem 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.app-side-nav__list {
	display: grid;
	gap: 0.3rem;
	padding: 0.8rem;
}

.app-side-nav__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 0;
	background: transparent;
	color: #b9d3c6;
	padding: 0.75rem 0.85rem;
	text-align: left;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.app-side-nav__item:hover {
	background: rgba(115, 166, 142, 0.15);
	color: #fff;
}

.app-side-nav__item--active {
	background: rgba(115, 166, 142, 0.22);
	color: #fff;
}

.app-side-nav__item--featured {
	color: #ffe1a3;
	background: rgba(255, 200, 92, 0.08);
}

.app-side-nav__item--featured:hover,
.app-side-nav__item--featured.app-side-nav__item--active {
	background: rgba(255, 200, 92, 0.18);
	color: #fff6df;
}

@media (min-width: 1025px) {
	.app-side-nav,
	.app-side-nav__backdrop {
		display: none;
	}
}

@media (max-width: 1024px) {
	.app-header {
		padding: 0.35rem 0.85rem 0;
	}

	.app-header__top-row {
		min-height: 50px;
	}

	.app-nav--desktop {
		display: none;
	}

	.app-header__menu-btn {
		display: inline-flex;
		align-items: center;
		justify-self: start;
		padding: 0.5rem 0.6rem;
	}

	.app-header__menu-label {
		display: none;
	}

	.app-header__menu-spacer {
		display: block;
		justify-self: end;
	}

	.app-header__brand {
		padding: 0;
	}

	.app-header__title {
		font-size: 1rem;
	}

	.app-header__admin-btn {
		padding: 0.3rem 0.6rem;
		font-size: 0.66rem;
	}

	.app-content {
		padding: 1rem;
	}

	.update-banner {
		padding: 0.65rem 0.85rem;
	}
}

@media (max-width: 700px) {
	.update-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.update-banner__text {
		white-space: normal;
	}

	.admin-panel {
		padding: 0.9rem;
	}

	.admin-panel__auth-controls {
		grid-template-columns: 1fr;
	}

	.admin-panel__btn {
		justify-self: stretch;
		width: 100%;
	}
}

/* ── Dashboard full-page video background ───────────────────── */
.dashboard-page {
	position: relative;
	min-height: calc(100vh - 90px);
	max-width: none;
	display: flex;
	flex-direction: column;
}

.dashboard-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.dashboard-bg__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.dashboard-bg__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 100%),
		radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

/* ── Dashboard Hero title ───────────────────────────────────── */
.dashboard-hero {
	position: relative;
	z-index: 1;
	padding: 0 0 1.5rem;
}

.dashboard-hero__banner {
	position: relative;
	width: 100%;
	height: 280px;
	background-size: cover;
	background-position: center 35%;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 0;
}

.dashboard-hero__banner-vignette {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.62) 100%),
		rgba(0,0,0,0.28);
	box-shadow: inset 0 0 80px rgba(0,0,0,0.45);
}

.dashboard-hero__banner-content {
	position: absolute;
	bottom: 1.6rem;
	left: 2rem;
	color: #fff;
}

.dashboard-hero__title {
	margin: 0 0 0.3rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0,0,0,0.7);
	line-height: 1.1;
	color: #fff;
}

.dashboard-hero__sub {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.82;
	text-shadow: 0 1px 4px rgba(0,0,0,0.6);
	color: #fff;
}

@media (max-width: 600px) {
	.dashboard-hero__banner {
		height: 180px;
	}
	.dashboard-hero__title {
		font-size: 1.5rem;
	}
}

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.dashboard-schedule-row {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.dashboard-schedule-widget {
	padding: 1rem;
	border-radius: 12px;
	background: rgba(10, 28, 18, 0.74);
	border: 1px solid rgba(100, 180, 130, 0.24);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.dashboard-schedule-widget__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7de0a8;
}

.dashboard-schedule-banner__pill {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(73, 181, 127, 0.24);
	border: 1px solid rgba(73, 181, 127, 0.45);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.38px;
	text-transform: uppercase;
	color: #d4f7e4;
}

.dashboard-schedule-banner__pill--umpiring {
	background: rgba(73, 154, 215, 0.22);
	border-color: rgba(73, 154, 215, 0.45);
	color: #d5edff;
}

.dashboard-schedule-banner__line {
	margin: 0;
	font-size: 0.87rem;
	color: #d1ebdd;
}

.dashboard-schedule-banner__line--strong {
	color: #ffffff;
	font-weight: 700;
}

.dashboard-schedule-banner__list {
	margin-top: 0.9rem;
	display: grid;
	gap: 0.6rem;
}

.dashboard-schedule-banner__event {
	padding: 0.78rem;
	border-radius: 10px;
	border: 1px solid rgba(120, 194, 148, 0.24);
	background: rgba(255, 255, 255, 0.04);
	display: grid;
	gap: 0.32rem;
}

.dashboard-schedule-banner__event-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dashboard-schedule-banner__today {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: rgba(255, 200, 92, 0.22);
	border: 1px solid rgba(255, 200, 92, 0.5);
	color: #ffe9bf;
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.dashboard-card {
	background: rgba(10, 28, 18, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(100, 180, 130, 0.2);
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.dashboard-card__title {
	margin: 0 0 0.75rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7de0a8;
}

.dashboard-card__empty {
	padding: 0.65rem;
	color: #98bda8;
	font-size: 0.88rem;
	background: rgba(255,255,255,0.06);
	border: 1px dashed rgba(100,180,130,0.3);
	border-radius: 8px;
}

.dashboard-bars {
	display: grid;
	gap: 0.65rem;
}

.dashboard-bars__row {
	display: grid;
	gap: 0.35rem;
}

.dashboard-bars__meta {
	display: flex;
	justify-content: space-between;
	gap: 0.7rem;
	font-size: 0.85rem;
}

.dashboard-bars__name {
	color: #c8e8d4;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dashboard-bars__value {
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

.dashboard-bars__track {
	background: rgba(255,255,255,0.12);
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}

.dashboard-bars__fill {
	height: 100%;
	min-width: 2px;
	border-radius: 999px;
	transform-origin: left center;
	transform: scaleX(0);
	animation: dashboard-bar-reveal 1.6s ease forwards;
}

@keyframes dashboard-bar-reveal {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

.dashboard-bars__fill--wickets {
	background: linear-gradient(90deg, #2f8f62, #49b57f);
}

.dashboard-bars__fill--strike-rate {
	background: linear-gradient(90deg, #2f6ea6, #499ad7);
}

.dashboard-bars__fill--runs {
	background: linear-gradient(90deg, #9c5e19, #d7882f);
}

.dashboard-bars__fill--economy {
	background: linear-gradient(90deg, #6f4ea2, #9071c0);
}

@media (max-width: 1100px) {
	.dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.dashboard-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-schedule-row {
		grid-template-columns: 1fr;
	}
}

.dashboard-footer {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 1rem 0.9rem 0.75rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	border-radius: 10px;
	background: rgba(10, 28, 18, 0.68);
	border: 1px solid rgba(100, 180, 130, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.dashboard-footer__item {
	font-size: 0.82rem;
	font-weight: 600;
	color: #c8e8d4;
	letter-spacing: 0.2px;
}

@media (max-width: 700px) {
	.dashboard-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── Page ───────────────────────────────────────────────────── */
.page {
	max-width: 100%;
}

.page__header {
	margin-bottom: 1.25rem;
}

.page__title {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #1a3a2a;
	margin: 0 0 0.25rem;
}

.page__description {
	color: #555;
	margin: 0;
	font-size: 0.875rem;
}

.team-stats-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.team-stats-summary__card,
.team-stats-insight {
	background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
	border: 1px solid #d7e7dd;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(26, 58, 42, 0.08);
}

.team-stats-summary__label,
.team-stats-insight__title {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.45px;
	color: #5f7768;
}

.team-stats-summary__value,
.team-stats-insight__value {
	display: block;
	margin-bottom: 0.25rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.45rem;
	line-height: 1.2;
	color: #1a3a2a;
	word-break: break-word;
}

.team-stats-summary__value--form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	font-family: 'Barlow', sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.team-stats-summary__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.team-stats-summary__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	background: #1a3a2a;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	white-space: nowrap;
}

.team-stats-summary__card--record {
	background: linear-gradient(180deg, #f7fbf8 0%, #edf7f1 100%);
}

.team-stats-record-table-wrap {
	margin-bottom: 0.45rem;
	border: 1px solid #d4e5db;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.team-stats-record-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.team-stats-record-table th,
.team-stats-record-table td {
	width: 25%;
	text-align: center;
	padding: 0.7rem 0.35rem;
	border-right: 1px solid #e1ede5;
}

.team-stats-record-table th:last-child,
.team-stats-record-table td:last-child {
	border-right: 0;
}

.team-stats-record-table th {
	background: #1a3a2a;
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.team-stats-record-table td {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.2rem;
	color: #1a3a2a;
	background: #ffffff;
}

.team-stats-summary__meta,
.team-stats-insight__meta {
	margin: 0;
	font-size: 0.82rem;
	color: #5e6f65;
	line-height: 1.4;
}

.team-stats-form,
.team-stats-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	padding: 0.34rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

.team-stats-form--win,
.team-stats-badge--win {
	background: #2f8f62;
}

.team-stats-form--loss,
.team-stats-badge--loss {
	background: #c44d3f;
}

.team-stats-form--tie,
.team-stats-badge--tie {
	background: #7a5bb6;
}

.team-stats-form--no-result,
.team-stats-badge--no-result {
	background: #667788;
}

.team-stats-insights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.team-stats-insight {
	min-height: 134px;
}

.team-performance-panel {
	margin-bottom: 1rem;
}

.team-performance-panel__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.team-performance-panel__tab {
	border: 1px solid #cfe1d8;
	background: #ffffff;
	color: #1a3a2a;
	padding: 0.65rem 0.95rem;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.team-performance-panel__tab:hover,
.team-performance-panel__tab--active {
	background: #1a3a2a;
	border-color: #1a3a2a;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(26, 58, 42, 0.14);
}

.team-performance-chart {
	background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
	border: 1px solid #d7e7dd;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(26, 58, 42, 0.08);
}

.team-performance-chart__head {
	margin-bottom: 0.9rem;
}

.team-performance-chart__title {
	margin: 0 0 0.3rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #1a3a2a;
}

.team-performance-chart__description {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #5c6f64;
}

.team-performance-chart__empty {
	padding: 0.85rem;
	border-radius: 8px;
	background: #f3f8f5;
	color: #5a6d63;
	font-size: 0.85rem;
}

.team-performance-chart__rows {
	display: grid;
	gap: 0.9rem;
}

.team-performance-chart__row {
	display: grid;
	gap: 0.45rem;
}

.team-performance-chart__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
}

.team-performance-chart__name {
	font-size: 0.92rem;
	font-weight: 700;
	color: #173525;
}

.team-performance-chart__record {
	font-size: 0.76rem;
	font-weight: 600;
	color: #62816f;
	text-transform: uppercase;
	letter-spacing: 0.35px;
}

.team-performance-chart__summary {
	display: grid;
	justify-items: end;
	font-size: 0.76rem;
	font-weight: 600;
	color: #4e6959;
	white-space: nowrap;
}

.team-performance-chart__bar-track,
.team-performance-chart__stack {
	display: flex;
	overflow: hidden;
	border-radius: 999px;
	height: 10px;
	background: #e3eee7;
}

.team-performance-chart__bar-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #f0ad2d, #ffd16b);
}

.team-performance-chart__stack {
	height: 8px;
	background: #edf4f0;
}

.team-performance-chart__segment--win {
	background: #2f8f62;
}

.team-performance-chart__segment--loss {
	background: #c44d3f;
}

.team-performance-chart__segment--tie {
	background: #7a5bb6;
}

.team-performance-chart__segment--no-result {
	background: #667788;
}

.team-stats-controls {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.team-stats-controls__search {
	max-width: 560px;
}

.team-stats-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.team-stats-filter {
	border: 1px solid #cfe1d8;
	background: #fff;
	color: #1a3a2a;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.team-stats-filter:hover,
.team-stats-filter--active {
	background: #1a3a2a;
	border-color: #1a3a2a;
	color: #fff;
}

.team-stats-message {
	min-width: 320px;
	white-space: normal;
	line-height: 1.45;
}

.team-stats-empty {
	text-align: center;
	color: #5a6d63;
	padding: 1rem 0.75rem;
}

@media (max-width: 1100px) {
	.team-stats-summary,
	.team-stats-insights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.team-stats-summary,
	.team-stats-insights {
		grid-template-columns: 1fr;
	}

	.team-stats-summary__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.team-performance-chart__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.team-performance-chart__summary {
		justify-items: start;
		white-space: normal;
	}
}

/* ── Batting Summary Form Banner ───────────────────────────── */
.batting-form-banner {
	margin: 0 0 1rem;
	border-radius: 10px;
	padding: 0.95rem;
	background: linear-gradient(135deg, #1a3a2a 0%, #27573f 100%);
	border: 1px solid rgba(69, 143, 101, 0.35);
	box-shadow: 0 8px 20px rgba(10, 36, 25, 0.2);
	color: #ffffff;
}

.batting-form-banner--state {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.9rem;
}

.batting-form-banner--error {
	background: #fff0ee;
	color: #9c2f23;
	border-color: #f1b5af;
}

.batting-form-banner__head {
	margin-bottom: 0.85rem;
}

.batting-form-banner__title {
	margin: 0;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.2rem;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.batting-form-banner__sub {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.82);
}

.batting-form-banner__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
}

.batting-form-banner__card {
	border-radius: 8px;
	padding: 0.65rem 0.7rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	min-height: 88px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
}

.batting-form-banner__metric {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.74);
}

.batting-form-banner__player {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.batting-form-banner__value {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.15;
	color: #d7f7e5;
}

.batting-form-banner__empty {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1024px) {
	.batting-form-banner__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.batting-form-banner__grid {
		grid-template-columns: 1fr;
	}
}

/* ── States ─────────────────────────────────────────────────── */
.page__state {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem;
	color: #555;
	font-size: 0.9rem;
}

.page__state--error {
	color: #c0392b;
	background: #fff0ee;
	border-radius: 6px;
	border: 1px solid #f5c6c2;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #ccc;
	border-top-color: #1a3a2a;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ── Table ──────────────────────────────────────────────────── */
.table-wrapper {
	overflow-x: auto;
	border-radius: 8px;
	border: 1px solid #dde3e0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

.data-table th {
	background: #1a3a2a;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 10px 14px;
	text-align: left;
	white-space: nowrap;
}

.sortable-th {
	cursor: pointer;
	user-select: none;
}

.sortable-th:hover {
	background: #254d38;
}

.sortable-th.sort-active {
	background: #2e6b4a;
}

.sort-arrow {
	opacity: 0.6;
	font-size: 0.75em;
}

.sortable-th.sort-active .sort-arrow {
	opacity: 1;
}

.data-table td {
	padding: 9px 14px;
	font-size: 0.875rem;
	color: #222;
	vertical-align: middle;
	white-space: nowrap;
}

.row-even {
	background: #ffffff;
}

.row-odd {
	background: #f3f8f5;
}

.data-table tbody tr:hover {
	background: #e6f4ec;
}

.batting-points-cell {
	font-weight: 700;
	color: #1a3a2a;
}

.dcl-profile-btn {
	display: inline-block;
	padding: 5px 12px;
	background: #1a3a2a;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.dcl-profile-btn:hover {
	background: #2e6b4a;
}

/* ── Batting History Player List ────────────────────────────── */
.player-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 0.7rem;
}

.player-search-wrap {
	margin: 0 0 0.9rem;
	display: grid;
	gap: 0.45rem;
}

.player-search-input {
	max-width: 420px;
	width: 100%;
	padding: 0.62rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #c7dacf;
	background: #fff;
	color: #1a3a2a;
	font-size: 0.92rem;
	outline: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.player-search-input:focus {
	border-color: #72a68d;
	box-shadow: 0 0 0 3px rgba(114, 166, 141, 0.2);
}

.player-search-meta {
	font-size: 0.82rem;
	color: #5a6d63;
}

.player-chip {
	border: 1px solid #cfe1d8;
	background: #ffffff;
	color: #1a3a2a;
	padding: 0.7rem 0.9rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.player-chip:hover {
	transform: translateY(-1px);
	border-color: #7fab93;
	box-shadow: 0 2px 8px rgba(26, 58, 42, 0.12);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(8, 18, 13, 0.45);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1.5rem;
	z-index: 999;
}

.modal-card {
	width: min(1200px, 100%);
	max-height: 86vh;
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	padding: 1rem;
}

.modal-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.modal-card__title {
	margin: 0;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #1a3a2a;
}

.modal-card__close {
	border: 1px solid #c6d8cf;
	background: #f2f7f4;
	color: #1a3a2a;
	border-radius: 6px;
	padding: 0.45rem 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.modal-card__close:hover {
	background: #e6f0eb;
}

/* ── Recent Performance Card ────────────────────────────────── */
.recent-perf-card {
	background: linear-gradient(135deg, #1a3a2a 0%, #2e6b4a 100%);
	border-radius: 10px;
	padding: 1rem 1.2rem;
	margin-bottom: 1rem;
}

.recent-perf-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.8rem;
	margin-bottom: 0.85rem;
}

.recent-perf-card__player {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #fff;
}

.recent-perf-card__label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: rgba(255,255,255,0.65);
}

.recent-perf-stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.5rem;
}

.recent-perf-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 7px;
	padding: 0.6rem 0.4rem;
	min-width: 0;
	grid-column: span 2;
}

.recent-perf-stat__val {
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.recent-perf-stat__lbl {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: rgba(255,255,255,0.7);
	margin-top: 0.25rem;
	text-align: center;
	white-space: nowrap;
}

.recent-perf-stat--points {
	align-items: center;
	padding: 0.6rem 0.4rem;
	text-align: center;
	grid-column: span 3;
}

.recent-perf-stat--points .recent-perf-stat__lbl {
	text-align: center;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.recent-perf-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.recent-perf-stat {
		grid-column: span 2;
	}

	.recent-perf-stat--points {
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	.recent-perf-stats {
		grid-template-columns: 1fr;
	}

	.recent-perf-stat,
	.recent-perf-stat--points {
		grid-column: span 1;
	}
}

@media (max-width: 360px) {
	.recent-perf-stats {
		grid-template-columns: 1fr;
	}
}

