/* Player Profile page — layout aligned with Stand Out Games / World Cup hub */

.bp-player-page {
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}

.bp-player-page .site-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 12px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background-color: transparent !important;
}

.bp-player-profile-page .fp-breadcrumb {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 12px;
	box-sizing: border-box;
}
table.bp-player-table.bp-player-matches-table {
    margin-bottom: 0px;
    border: none;
}
table.bp-player-table tr, table.bp-player-table td, table.bp-player-table th {
    border-color: #262363;
}

.bp-player-wrap {
	display: grid;
	gap: 18px;
	padding: 10px 0 36px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ── Hero ── */
.bp-player-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(35, 40, 75, 0.92) 48%, rgba(107, 33, 168, 0.9) 100%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	padding: 26px 28px;
	color: #ffffff;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(10px);
}

.bp-player-hero__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
	flex: 1 1 280px;
	min-width: 0;
}

.bp-player-hero__info {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
}

.bp-player-hero__photo-wrap {
	position: relative;
	flex: 0 0 auto;
}

.bp-player-hero__photo-wrap::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(132, 204, 22, 0.55), rgba(107, 33, 168, 0.45));
	z-index: 0;
}

.bp-player-hero__photo {
	position: relative;
	z-index: 1;
	display: block;
	width: 124px;
	height: 124px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(15, 23, 42, 0.9);
	background: rgba(255, 255, 255, 0.1);
}

.bp-player-hero__name {
	margin: 0 0 10px;
	font-size: clamp(1.55rem, 3.5vw, 2.05rem);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.bp-player-hero__team {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
}

.bp-player-hero__team img {
	width: 26px;
	height: 26px;
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	padding: 2px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bp-player-hero__contract {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 500;
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}
/* Override theme default white hover/focus on buttons and inputs (player page only). */
.bp-player-page button:hover,
.bp-player-page button:focus,
.bp-player-page button:focus-visible,
.bp-player-page input[type='button']:hover,
.bp-player-page input[type='button']:focus,
.bp-player-page input[type='button']:focus-visible,
.bp-player-page input[type='reset']:hover,
.bp-player-page input[type='reset']:focus,
.bp-player-page input[type='reset']:focus-visible,
.bp-player-page input[type='submit']:hover,
.bp-player-page input[type='submit']:focus,
.bp-player-page input[type='submit']:focus-visible,
.bp-player-page input[type='date']:hover,
.bp-player-page input[type='date']:focus,
.bp-player-page input[type='time']:hover,
.bp-player-page input[type='time']:focus,
.bp-player-page input[type='datetime-local']:hover,
.bp-player-page input[type='datetime-local']:focus,
.bp-player-page input[type='week']:hover,
.bp-player-page input[type='week']:focus,
.bp-player-page input[type='month']:hover,
.bp-player-page input[type='month']:focus,
.bp-player-page input[type='text']:hover,
.bp-player-page input[type='text']:focus,
.bp-player-page input[type='email']:hover,
.bp-player-page input[type='email']:focus,
.bp-player-page input[type='url']:hover,
.bp-player-page input[type='url']:focus,
.bp-player-page input[type='password']:hover,
.bp-player-page input[type='password']:focus,
.bp-player-page input[type='search']:hover,
.bp-player-page input[type='search']:focus,
.bp-player-page input[type='tel']:hover,
.bp-player-page input[type='tel']:focus,
.bp-player-page input[type='number']:hover,
.bp-player-page input[type='number']:focus,
.bp-player-page select:hover,
.bp-player-page select:focus,
.bp-player-page textarea:hover,
.bp-player-page textarea:focus {
	background: #4d7625 !important;
	border-color: #4d7625;
	color: #ffffff;
	outline: none;
}

.bp-player-page input[type='date']:focus-visible,
.bp-player-page input[type='time']:focus-visible,
.bp-player-page input[type='datetime-local']:focus-visible,
.bp-player-page input[type='week']:focus-visible,
.bp-player-page input[type='month']:focus-visible,
.bp-player-page input[type='text']:focus-visible,
.bp-player-page input[type='email']:focus-visible,
.bp-player-page input[type='url']:focus-visible,
.bp-player-page input[type='password']:focus-visible,
.bp-player-page input[type='search']:focus-visible,
.bp-player-page input[type='tel']:focus-visible,
.bp-player-page input[type='number']:focus-visible,
.bp-player-page select:focus-visible,
.bp-player-page textarea:focus-visible {
	background: #4d7625 !important;
	border-color: #4d7625;
	color: #ffffff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(77, 118, 37, 0.35);
}

.bp-player-hero__contract::before {
	content: none;
}

.bp-player-meta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bp-player-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bp-player-meta-chip__flag {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	object-fit: contain;
	border-radius: 2px;
}

.bp-player-meta-chip--national {
	border-color: rgba(132, 204, 22, 0.28);
}

.bp-player-meta-chip:hover {
	border-color: rgba(132, 204, 22, 0.35);
	background: rgba(132, 204, 22, 0.08);
}

/* Hero rating badge */
.bp-player-hero__aside {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.bp-player-hero__rating-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 108px;
	padding: 16px 18px;
	border-radius: 16px;
	text-align: center;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bp-player-hero__rating-badge.bp-player-rating--high {
	border-color: rgba(74, 222, 128, 0.45);
	background: linear-gradient(160deg, rgba(34, 197, 94, 0.22) 0%, rgba(0, 0, 0, 0.2) 100%);
	box-shadow: 0 0 24px rgba(74, 222, 128, 0.15);
}

.bp-player-hero__rating-badge.bp-player-rating--mid {
	border-color: rgba(250, 204, 21, 0.4);
	background: linear-gradient(160deg, rgba(234, 179, 8, 0.18) 0%, rgba(0, 0, 0, 0.2) 100%);
	box-shadow: 0 0 24px rgba(250, 204, 21, 0.12);
}

.bp-player-hero__rating-badge.bp-player-rating--low {
	border-color: rgba(248, 113, 113, 0.4);
	background: linear-gradient(160deg, rgba(239, 68, 68, 0.18) 0%, rgba(0, 0, 0, 0.2) 100%);
	box-shadow: 0 0 24px rgba(248, 113, 113, 0.12);
}

.bp-player-hero__rating-value {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.bp-player-hero__rating-badge.bp-player-rating--high .bp-player-hero__rating-value { color: #4ade80; }
.bp-player-hero__rating-badge.bp-player-rating--mid .bp-player-hero__rating-value { color: #facc15; }
.bp-player-hero__rating-badge.bp-player-rating--low .bp-player-hero__rating-value { color: #f87171; }

.bp-player-hero__rating-label {
	display: block;
	margin-top: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.62);
	max-width: 90px;
	line-height: 1.3;
}

/* ── Shared card ── */
.bp-player-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid rgba(115, 174, 255, 0.22);
	border-radius: 16px;
	padding: 20px 22px;
	background: linear-gradient(160deg, rgba(13, 26, 54, 0.96) 0%, rgba(8, 18, 38, 0.98) 100%);
	box-shadow: 0 12px 30px rgba(3, 9, 24, 0.3);
	color: rgba(255, 255, 255, 0.92);
}

.bp-player-section-title {
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 2px solid rgba(132, 204, 22, 0.38);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #ffffff;
}

.bp-player-section-desc {
	font-size: 14px;
    color: rgb(255 255 255);
}

/* ── Career summary ── */
.bp-player-career-summary {
	padding-top: 18px;
}

.bp-player-summary-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
	gap: 12px;
	min-width: 0;
}

.bp-player-summary-chip {
	position: relative;
	padding: 14px 14px 14px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.bp-player-summary-chip::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: rgba(132, 204, 22, 0.5);
}

.bp-player-summary-chip:hover {
	transform: translateY(-1px);
	border-color: rgba(132, 204, 22, 0.28);
	background: rgba(132, 204, 22, 0.06);
}

.bp-player-summary-chip--appearances::before { background: #84cc16; }
.bp-player-summary-chip--clean_sheets::before { background: #38bdf8; }
.bp-player-summary-chip--saves::before { background: #a78bfa; }
.bp-player-summary-chip--goals_conceded::before { background: #f87171; }
.bp-player-summary-chip--assists::before { background: #fbbf24; }

.bp-player-summary-chip__label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.52);
	margin-bottom: 6px;
}

.bp-player-summary-chip__value {
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
}

/* ── Previous / next match card ── */
.bp-player-match-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	min-width: 0;
}

.bp-player-match-row--no-next {
	grid-template-columns: 1fr;
}

.bp-player-match-row > * {
	min-width: 0;
	max-width: 100%;
}

.bp-player-match-card {
	border: 1px solid rgba(115, 174, 255, 0.24);
	border-radius: 16px;
	padding: 0;
	background: linear-gradient(160deg, rgba(13, 26, 54, 0.96) 0%, rgba(8, 18, 38, 0.98) 100%);
	color: rgba(255, 255, 255, 0.92);
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(3, 9, 24, 0.28);
}

.bp-player-match-card--result-w { border-top: 3px solid #4ade80; }
.bp-player-match-card--result-d { border-top: 3px solid #facc15; }
.bp-player-match-card--result-l { border-top: 3px solid #f87171; }

.bp-player-match-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bp-player-match-card__title {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.58);
}

.bp-player-match-card__comp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bp-player-match-card__comp-badge img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.bp-player-match-card__stage {
	margin: 0;
	padding: 0 18px 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}

.bp-player-match-card__fixture {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 16px 18px 14px;
}

.bp-player-match-card__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	min-width: 0;
}

.bp-player-match-card__team img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	padding: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bp-player-match-card__team-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.95);
	word-break: break-word;
}

.bp-player-match-card__scoreblock {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 72px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-player-match-card__score {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
}

.bp-player-match-card__vs {
	font-size: 11px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.bp-player-match-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.18);
}

.bp-player-match-card__date {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.62);
}

.bp-player-match-card__footer-stats {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bp-player-match-card__minutes {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.75);
}

.bp-player-match-card__status {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(132, 204, 22, 0.15);
	color: #84cc16;
	font-weight: 700;
	font-size: 11px;
}

/* ── Ratings ── */
.bp-player-rating {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 4px 9px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.bp-player-rating--match {
	min-width: 44px;
	padding: 6px 10px;
	font-size: 14px;
}

.bp-player-rating--high {
	background: rgba(34, 197, 94, 0.22);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.38);
}

.bp-player-rating--mid {
	background: rgba(234, 179, 8, 0.18);
	color: #facc15;
	border: 1px solid rgba(250, 204, 21, 0.32);
}

.bp-player-rating--low {
	background: rgba(239, 68, 68, 0.18);
	color: #f87171;
	border: 1px solid rgba(248, 113, 113, 0.32);
}

.bp-player-result {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	padding: 3px 7px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.bp-player-result--w { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.bp-player-result--d { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.bp-player-result--l { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* ── Summary chart ── */
.bp-player-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 16px;
	min-width: 0;
}

.bp-player-grid-2 > * {
	min-width: 0;
	max-width: 100%;
}

.bp-player-summary-chart {
	min-height: 100%;
}

.bp-player-ratings-chart {
	display: grid;
	gap: 10px;
	padding: 4px 0;
}

.bp-player-rating-bar {
	display: grid;
	grid-template-columns: minmax(0, 62px) minmax(0, 44px) minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	min-width: 0;
}

.bp-player-rating-bar__month {
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.55);
}

.bp-player-rating-bar__value {
	font-size: 12px;
	font-weight: 800;
	text-align: right;
}

.bp-player-rating-bar__value.bp-player-rating--high { color: #4ade80; border-radius: 10px;
    display: flex;
    justify-content: center;}
.bp-player-rating-bar__value.bp-player-rating--mid { color: #facc15; border-radius: 10px;
    display: flex;
    justify-content: center;}
.bp-player-rating-bar__value.bp-player-rating--low { color: #f87171; border-radius: 10px;
    display: flex;
    justify-content: center;}

.bp-player-rating-bar__track {
	display: block;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.bp-player-rating-bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #65a30d 0%, #84cc16 55%, #a3e635 100%);
	box-shadow: 0 0 10px rgba(132, 204, 22, 0.35);
	transition: width 0.35s ease;
}

/* ── Season stats ── */
.bp-player-season-stats {
	overflow: visible;
}

.bp-player-season-dropdown {
	position: relative;
	margin: 0 0 16px;
	z-index: 5;
}

.bp-player-season-dropdown.is-open {
	z-index: 30;
}

.bp-player-season-dropdown__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.bp-player-season-dropdown__trigger:hover {
	border-color: rgba(77, 118, 37, 0.55);
	background: #4d7625;
}

.bp-player-season-dropdown.is-open .bp-player-season-dropdown__trigger,
.bp-player-season-dropdown__trigger:focus-visible {
	border-color: #4d7625;
	background: #4d7625;
	box-shadow: 0 0 0 2px rgba(77, 118, 37, 0.35);
	outline: none;
}

.bp-player-season-dropdown__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-player-season-dropdown__chevron {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.65);
	transition: transform 0.2s ease;
}

.bp-player-season-dropdown.is-open .bp-player-season-dropdown__chevron {
	transform: rotate(180deg);
	color: #84cc16;
}

.bp-player-season-dropdown__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 6px;
	list-style: none;
	max-height: 240px;
	overflow-y: auto;
	border-radius: 12px;
	border: 1px solid rgba(115, 174, 255, 0.28);
	background: linear-gradient(160deg, rgba(13, 26, 54, 0.98) 0%, rgba(8, 18, 38, 0.99) 100%);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
	scrollbar-width: thin;
	scrollbar-color: rgba(132, 204, 22, 0.75) rgba(255, 255, 255, 0.08);
}

.bp-player-season-dropdown__menu[hidden] {
	display: none;
}

.bp-player-season-dropdown__menu::-webkit-scrollbar {
	width: 8px;
}

.bp-player-season-dropdown__menu::-webkit-scrollbar-thumb {
	background: rgba(132, 204, 22, 0.7);
	border-radius: 999px;
}

.bp-player-season-dropdown__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bp-player-season-dropdown__option img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex: 0 0 18px;
}

.bp-player-season-dropdown__option-text {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.35;
}

.bp-player-season-dropdown__check {
	flex: 0 0 auto;
	color: #84cc16;
}

.bp-player-season-dropdown__option:hover,
.bp-player-season-dropdown__option:focus {
	background: #4d7625;
	color: #ffffff;
	outline: none;
}

.bp-player-season-dropdown__option.is-selected {
	background: rgba(132, 204, 22, 0.16);
	color: #d9f99d;
}

.bp-player-season-panel__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	min-width: 0;
}

.bp-player-season-panel__header > div {
	flex: 1 1 auto;
	min-width: 0;
}

.bp-player-season-panel__header img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.bp-player-season-panel__header strong {
	display: block;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-player-season-panel__header span {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-player-season-panel__header .bp-player-rating {
	margin-left: auto;
}

.bp-player-stat-tabs,
.bp-player-match-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.bp-player-stat-tab,
.bp-player-match-filter {
	padding: 7px 15px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bp-player-stat-tab:hover,
.bp-player-stat-tab:focus,
.bp-player-stat-tab:focus-visible,
.bp-player-match-filter:hover,
.bp-player-match-filter:focus,
.bp-player-match-filter:focus-visible {
	border-color: rgba(77, 118, 37, 0.55);
	background: #4d7625;
	color: #ffffff;
	outline: none;
}

.bp-player-stat-tab.is-active,
.bp-player-match-filter.is-active {
	border-color: rgba(132, 204, 22, 0.55);
	background: rgba(132, 204, 22, 0.16);
	color: #bef264;
	box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.12);
}

.bp-player-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: 10px;
	min-width: 0;
}

.bp-player-stat-item {
	padding: 11px 13px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-player-stat-item__label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.52);
	margin-bottom: 5px;
}

.bp-player-stat-item__value {
	font-size: 15px;
	font-weight: 800;
	color: #ffffff;
}

/* ── Matches table (theme-aligned, fixed columns — no overlap) ── */
.bp-player-matches-section .bp-player-section-title {
	margin-bottom: 12px;
}

.bp-player-matches-section .bp-player-table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-radius: 12px;
	background: rgba(8, 18, 38, 0.55);
	border: 1px solid rgba(115, 174, 255, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	-webkit-overflow-scrolling: touch;
}

.bp-player-matches-section .bp-player-table {
	width: 100%;
	min-width: 1020px;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
}

/* Fixed column widths */
.bp-player-matches-section .bp-player-col-index { width: 36px; }
.bp-player-matches-section .bp-player-col-date { width: 96px; }
.bp-player-matches-section .bp-player-col-comp { width: 128px; }
.bp-player-matches-section .bp-player-col-match { width: auto; }
.bp-player-matches-section .bp-player-col-score { width: 72px; }
.bp-player-matches-section .bp-player-col-result { width: 64px; }
.bp-player-matches-section .bp-player-col-stat { width: 48px; }
.bp-player-matches-section .bp-player-col-rating { width: 72px; }

.bp-player-matches-section .bp-player-table thead {
	position: sticky;
	top: 0;
	z-index: 2;
}

.bp-player-matches-section .bp-player-table th {
	padding: 12px 10px;
	text-align: left;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba(255, 255, 255, 0.92);
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.98) 55%, rgba(49, 46, 129, 0.98) 100%);
	border-bottom: 2px solid rgba(132, 204, 22, 0.35);
	white-space: nowrap;
	overflow: hidden;
	text-align: center;
}

.bp-player-matches-section .bp-player-table__th-index,
.bp-player-matches-section .bp-player-table__th-center,
.bp-player-matches-section .bp-player-table__th-num {
	text-align: center;
}

.bp-player-matches-section .bp-player-table__th-num span {
	vertical-align: middle;
}

.bp-player-matches-section .bp-player-table__sort-icon {
	display: inline-block;
	vertical-align: middle;
	margin-left: 3px;
	color: #84cc16;
	opacity: 0.85;
}

.bp-player-matches-section .bp-player-table td {
	padding: 12px 10px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	vertical-align: middle;
	background: rgba(13, 26, 54, 0.72);
	overflow: hidden;
}

.bp-player-matches-section .bp-player-table tbody tr:nth-child(even) td {
	background: rgba(10, 20, 42, 0.82);
}

.bp-player-matches-section .bp-player-table tbody tr:last-child td {
	border-bottom: none;
}

.bp-player-matches-section .bp-player-table__row {
	transition: background-color 0.15s ease;
}

.bp-player-matches-section .bp-player-table tbody tr:hover td {
	background: rgba(132, 204, 22, 0.07) !important;
}

.bp-player-matches-section .bp-player-table tbody tr.is-hidden {
	display: none;
}

.bp-player-matches-section .bp-player-table__index {
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.45);
}

.bp-player-matches-section .bp-player-table__date {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.62);
	white-space: nowrap;
}

.bp-player-matches-section .bp-player-table__comp-cell {
	max-width: 0;
}

.bp-player-matches-section .bp-player-table__comp {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	max-width: 100%;
}

.bp-player-matches-section .bp-player-table__comp img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex: 0 0 20px;
}

.bp-player-matches-section .bp-player-table__comp-name {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.bp-player-matches-section .bp-player-table__match-cell {
	max-width: 0;
}

.bp-player-matches-section .bp-player-table__match-teams {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	width: 100%;
}

.bp-player-matches-section .bp-player-table__match-team {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1 1 0;
	max-width: calc(50% - 14px);
	justify-content: center;
}

.bp-player-matches-section .bp-player-table__match-team img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	padding: 2px;
	flex: 0 0 22px;
}

.bp-player-matches-section .bp-player-table__team-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	min-width: 0;
}

.bp-player-matches-section .bp-player-table__match-divider {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.38);
	letter-spacing: 0.04em;
}

.bp-player-matches-section .bp-player-table__score-cell,
.bp-player-matches-section .bp-player-table__result-cell,
.bp-player-matches-section .bp-player-table__stat,
.bp-player-matches-section .bp-player-table__rating-cell {
	text-align: center;
}

.bp-player-matches-section .bp-player-table__match-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	padding: 4px 8px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 12px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.bp-player-matches-section .bp-player-table__stat {
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.82);
}

.bp-player-matches-section .bp-player-table__empty {
	color: rgba(255, 255, 255, 0.28);
	font-weight: 600;
}

/* Result + rating badges — dark theme */
.bp-player-matches-section .bp-player-result {
	min-width: 26px;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
}

.bp-player-matches-section .bp-player-result--w {
	background: rgba(34, 197, 94, 0.22);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.3);
}

.bp-player-matches-section .bp-player-result--d {
	background: rgba(234, 179, 8, 0.18);
	color: #facc15;
	border: 1px solid rgba(250, 204, 21, 0.28);
}

.bp-player-matches-section .bp-player-result--l {
	background: rgba(239, 68, 68, 0.18);
	color: #f87171;
	border: 1px solid rgba(248, 113, 113, 0.28);
}

.bp-player-matches-section .bp-player-rating--table {
	min-width: 40px;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
}

.bp-player-matches-section .bp-player-rating--table.bp-player-rating--high {
	background: rgba(34, 197, 94, 0.22);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.35);
}

.bp-player-matches-section .bp-player-rating--table.bp-player-rating--mid {
	background: rgba(234, 179, 8, 0.18);
	color: #facc15;
	border: 1px solid rgba(250, 204, 21, 0.3);
}

.bp-player-matches-section .bp-player-rating--table.bp-player-rating--low {
	background: rgba(239, 68, 68, 0.18);
	color: #f87171;
	border: 1px solid rgba(248, 113, 113, 0.3);
}

.bp-player-matches-section .bp-player-match-filters {
	margin-bottom: 14px;
}

/* ── Competition statistics table ── */
.bp-player-competition-stats .bp-player-table-wrap--compact {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-radius: 12px;
	background: rgba(8, 18, 38, 0.55);
	border: 1px solid rgba(115, 174, 255, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	-webkit-overflow-scrolling: touch;
}

.bp-player-competition-table {
	width: 100%;
	min-width: 920px;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
	border: 0px;
}

/* Fixed column widths — prevents competition/seasons text bleeding into neighbors */
.bp-player-competition-table .bp-player-comp-col-name { width: 220px; }
.bp-player-competition-table .bp-player-comp-col-seasons { width: 200px; }
.bp-player-competition-table .bp-player-comp-col-stat { width: 56px; }
.bp-player-competition-table .bp-player-comp-col-rating { width: 72px; }

.bp-player-competition-table th {
	padding: 12px 10px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba(255, 255, 255, 0.92);
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.98) 55%, rgba(49, 46, 129, 0.98) 100%);
	border-bottom: 2px solid rgba(132, 204, 22, 0.35);
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
}

.bp-player-competition-table th.bp-player-table__th-num {
	text-align: center;
}

.bp-player-competition-table td {
	padding: 12px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	vertical-align: middle;
	background: rgba(13, 26, 54, 0.72);
	overflow: hidden;
}

.bp-player-competition-table tbody tr:nth-child(even) td {
	background: rgba(10, 20, 42, 0.82);
}

.bp-player-competition-table tbody tr:last-child td {
	border-bottom: none;
}

.bp-player-competition-table tbody tr:hover td {
	background: rgba(132, 204, 22, 0.07) !important;
}

.bp-player-competition-table .bp-player-table__comp-cell,
.bp-player-competition-table .bp-player-table__seasons-cell {
	max-width: 0;
}

.bp-player-competition-table .bp-player-table__seasons-cell {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.62);
	line-height: 1.4;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.bp-player-competition-table .bp-player-table__stat,
.bp-player-competition-table .bp-player-table__rating-cell {
	text-align: center;
	white-space: nowrap;
}

.bp-player-competition-table .bp-player-table__comp {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.bp-player-competition-table .bp-player-table__comp img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex: 0 0 20px;
	margin-top: 1px;
}

.bp-player-competition-table .bp-player-table__comp-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.35;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.bp-player-competition-table .bp-player-table__empty {
	color: rgba(255, 255, 255, 0.28);
	font-weight: 600;
}

.bp-player-competition-table .bp-player-rating--table {
	min-width: 40px;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
}

/* ── Transfer history / trophies / team history ── */
.bp-player-transfer-list,
.bp-player-trophy-list,
.bp-player-team-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.bp-player-transfer-item,
.bp-player-trophy-item,
.bp-player-team-history-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s ease, background-color 0.2s ease;
	min-width: 0;
}

.bp-player-transfer-item:hover,
.bp-player-trophy-item:hover,
.bp-player-team-history-item:hover {
	border-color: rgba(132, 204, 22, 0.28);
	background: rgba(132, 204, 22, 0.06);
}

.bp-player-transfer-item__date {
	flex: 0 0 88px;
	font-size: 12px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.58);
}

.bp-player-transfer-item__teams {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.bp-player-transfer-item__team {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 0;
	max-width: calc(50% - 14px);
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
}

.bp-player-transfer-item__team img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	flex: 0 0 22px;
}

.bp-player-transfer-item__team span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-player-transfer-item__arrow {
	flex: 0 0 auto;
	color: #84cc16;
}

.bp-player-transfer-item__fee {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 800;
	color: #d9f99d;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(132, 204, 22, 0.12);
	border: 1px solid rgba(132, 204, 22, 0.22);
	white-space: nowrap;
}

/* Hide orphaned arrow when transfer has no club names in the API data */
.bp-player-transfer-item:not(:has(.bp-player-transfer-item__team span:not(:empty))) .bp-player-transfer-item__teams {
	display: none;
}

.bp-player-transfer-item:not(:has(.bp-player-transfer-item__team span:not(:empty))) .bp-player-transfer-item__fee {
	margin-left: auto;
}

.bp-player-trophy-item__icon {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
}

.bp-player-trophy-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.bp-player-trophy-item__body strong {
	display: block;
	font-size: 14px;
	color: #ffffff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-player-trophy-item__body span {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.58);
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-player-trophy-item__logo {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.bp-player-team-history-item.is-active {
	border-color: rgba(132, 204, 22, 0.35);
	background: rgba(132, 204, 22, 0.08);
}

.bp-player-team-history-item__logo {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	padding: 2px;
}

.bp-player-team-history-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.bp-player-team-history-item__body strong {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #ffffff;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.bp-player-team-history-item__badge {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(132, 204, 22, 0.16);
	color: #bef264;
}

.bp-player-team-history-item__dates {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.58);
	margin-top: 3px;
}

.bp-player-team-history-item__number {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.72);
	padding: 4px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.bp-player-page .site-main {
		padding: 0 10px;
	}

	.bp-player-profile-page .fp-breadcrumb {
		padding: 0 10px;
	}

	.bp-player-wrap {
		gap: 14px;
		padding: 8px 0 28px;
	}

	.bp-player-hero {
		flex-direction: column;
		padding: 18px 14px;
		gap: 16px;
	}

	.bp-player-hero__main {
		flex: 1 1 100%;
		width: 100%;
	}

	.bp-player-hero__aside {
		width: 100%;
		justify-content: center;
	}

	.bp-player-hero__rating-badge {
		width: 100%;
		max-width: 220px;
	}

	.bp-player-summary-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.bp-player-grid-2,
	.bp-player-match-row {
		grid-template-columns: 1fr;
	}

	.bp-player-stat-tabs,
	.bp-player-match-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-right: -4px;
		padding-bottom: 4px;
	}

	.bp-player-stat-tabs::-webkit-scrollbar,
	.bp-player-match-filters::-webkit-scrollbar {
		display: none;
	}

	.bp-player-stat-tab,
	.bp-player-match-filter {
		flex: 0 0 auto;
	}

	/* Keep previous/next match fixture horizontal (same as desktop) */
	.bp-player-match-card__fixture {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 8px;
		padding: 14px 12px 12px;
	}

	.bp-player-match-card__team {
		gap: 6px;
	}

	.bp-player-match-card__team img {
		width: 34px;
		height: 34px;
		padding: 3px;
	}

	.bp-player-match-card__team-name {
		font-size: 11px;
		line-height: 1.2;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		word-break: normal;
	}

	.bp-player-match-card__scoreblock {
		min-width: 58px;
		padding: 8px 10px;
		gap: 4px;
	}

	.bp-player-match-card__score {
		font-size: 1.15rem;
	}

	.bp-player-matches-section .bp-player-table-wrap,
	.bp-player-competition-stats .bp-player-table-wrap--compact {
		margin: 0 -4px;
		padding: 0 4px;
	}

	.bp-player-matches-section .bp-player-table__match-teams {
		flex-wrap: wrap;
		row-gap: 6px;
	}

	.bp-player-matches-section .bp-player-table__match-team {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.bp-player-transfer-item {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.bp-player-transfer-item__date {
		flex: 1 1 100%;
	}

	.bp-player-transfer-item__teams {
		flex: 1 1 100%;
		width: 100%;
		flex-wrap: wrap;
		row-gap: 6px;
	}

	.bp-player-transfer-item__team {
		flex: 1 1 calc(50% - 16px);
		max-width: calc(50% - 16px);
	}

	.bp-player-transfer-item__fee {
		margin-left: auto;
	}

	.bp-player-match-card__footer {
		flex-wrap: wrap;
	}

	.bp-player-match-card__footer-stats {
		flex-wrap: wrap;
	}
}

@media (max-width: 640px) {
	.bp-player-page .site-main {
		padding: 0 8px;
	}

	.bp-player-profile-page .fp-breadcrumb {
		padding: 0 8px;
	}

	.bp-player-card {
		padding: 16px 14px;
		border-radius: 14px;
	}

	.bp-player-hero {
		padding: 16px 12px;
		border-radius: 14px;
	}

	.bp-player-hero__photo {
		width: 96px;
		height: 96px;
	}

	.bp-player-summary-row {
		grid-template-columns: 1fr;
	}

	.bp-player-summary-chip {
		padding: 12px 12px 12px 14px;
	}

	.bp-player-summary-chip__value {
		font-size: 1.15rem;
	}

	.bp-player-meta-chip {
		font-size: 11px;
		padding: 5px 10px;
	}

	.bp-player-rating-bar {
		grid-template-columns: minmax(0, 52px) minmax(0, 40px) minmax(0, 1fr);
		gap: 8px;
	}

	.bp-player-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.bp-player-hero__main {
		flex: unset !important;
	}
}
