/* MOBILE FIRST - Historia meczów */

.player-profile-page {
	max-width: 980px;
	margin: 0 auto;
	padding: 16px;
}

.player-section {
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 18px;
	padding: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.player-section h2,
.player-section h3 {
	font-size: 24px;
	line-height: 1.15;
	margin: 0 0 16px;
	color: #0f172a;
}

.match-history-table {
	width: 100%;
	border-collapse: collapse;
}

.match-history-table thead {
	display: none;
}

.match-history-table,
.match-history-table tbody,
.match-history-table tr,
.match-history-table td {
	display: block;
	width: 100%;
}

.match-history-table tr {
	padding: 12px 0;
	border-bottom: 1px solid #edf2f7;
}

.match-history-table tr:last-child {
	border-bottom: 0;
}

.match-history-table td {
	padding: 2px 0;
	font-size: 14px;
	line-height: 1.35;
	color: #172033;
}

.match-history-table td:nth-child(1) {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 4px;
}

.match-history-table td:nth-child(1) .badge,
.match-history-table td:nth-child(1) span:first-child {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eaf6ff;
	color: #0369a1;
	font-size: 11px;
	font-weight: 700;
	margin-right: 6px;
}

.match-history-table td:nth-child(2) {
	font-weight: 700;
	color: #0f172a;
}

.match-history-table td:nth-child(3) {
	margin-top: 4px;
	font-weight: 700;
	color: #2563eb;
}

.match-history-table td:nth-child(4) {
	margin-top: 2px;
	font-size: 12px;
	color: #64748b;
}

/* Desktop wraca do tabeli */
@media (min-width: 768px) {
	.player-profile-page {
		padding: 32px;
	}

	.player-section {
		padding: 28px;
	}

	.match-history-table {
		display: table;
	}

	.match-history-table thead {
		display: table-header-group;
	}

	.match-history-table tbody {
		display: table-row-group;
	}

	.match-history-table tr {
		display: table-row;
		border-bottom: 1px solid #edf2f7;
	}

	.match-history-table td,
	.match-history-table th {
		display: table-cell;
		width: auto;
		padding: 12px 14px;
		vertical-align: middle;
	}

	.match-history-table th {
		text-align: left;
		font-size: 12px;
		color: #64748b;
		text-transform: uppercase;
		letter-spacing: 0.04em;
	}
}

/* =========================================================
   TFP PATCH: linked premium compact player profile
========================================================= */

body.player-profile-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(23,105,232,.10), transparent 34rem),
        linear-gradient(180deg, #f7fbff 0%, #edf3fa 100%) !important;
}

.player-profile-page {
    width: min(980px, calc(100% - 32px)) !important;
    max-width: 980px !important;
    padding: 26px 0 54px !important;
}

.player-profile-container {
    width: 100% !important;
    max-width: 980px !important;
    gap: 14px !important;
}

.player-profile-hero {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 18px !important;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 86% 0%, rgba(255,255,255,.22), transparent 20rem),
        linear-gradient(135deg, #1769e8 0%, #5b8df3 100%) !important;
    box-shadow: 0 24px 70px rgba(23,105,232,.18) !important;
}

.player-profile-hero::after {
    content: "";
    position: absolute;
    right: -56px;
    top: -72px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    pointer-events: none;
}

.player-profile-hero__left,
.player-profile-hero__actions {
    position: relative;
    z-index: 1;
}

.player-profile-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    font-size: 15px !important;
}

.player-profile-badge {
    min-height: 22px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
    letter-spacing: .08em !important;
}

.player-profile-hero h1 {
    margin: 7px 0 3px !important;
    font-size: clamp(24px, 4vw, 36px) !important;
    letter-spacing: -.045em !important;
}

.player-profile-hero p {
    max-width: 620px;
    font-size: 13px !important;
}

.player-profile-hero__actions {
    align-items: center;
    justify-content: flex-end;
}

.player-btn {
    min-height: 36px !important;
    border-radius: 13px !important;
    padding: 0 13px !important;
    font-size: 11px !important;
    letter-spacing: -.01em;
}

.player-link-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(208,220,235,.88);
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 44px rgba(16,24,40,.06);
}

.player-link-strip span {
    display: block;
    margin-bottom: 4px;
    color: #175cd3;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.player-link-strip strong {
    display: block;
    color: #101828;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.player-link-strip p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.player-link-strip__stats {
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #eef5ff;
    text-align: center;
}

.player-link-strip__stats b {
    display: block;
    color: #175cd3;
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
}

.player-link-strip__stats small {
    color: #45628e;
    font-size: 10px;
    font-weight: 850;
}

.tfp-premium-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tfp-premium-box {
    min-width: 0;
    padding: 14px !important;
    border: 1px solid rgba(208,220,235,.9);
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 14px 34px rgba(16,24,40,.055);
}

.tfp-premium-box span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tfp-premium-box strong {
    display: block;
    color: #101828;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.tfp-rank-link {
    display: inline-flex;
    margin-top: 8px;
    color: #175cd3;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.player-card {
    padding: 16px !important;
    border-radius: 24px !important;
    border-color: rgba(208,220,235,.88) !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 18px 44px rgba(16,24,40,.06) !important;
}

.section-header h2 {
    font-size: 17px !important;
    letter-spacing: -.03em;
}

.section-header p {
    font-size: 12px !important;
}

.player-info-grid,
.player-stats-grid,
.match-history-item__meta {
    gap: 8px !important;
}

.player-info-grid > div,
.match-history-item__meta > div,
.player-notes-box,
.player-stat-box {
    border-radius: 16px !important;
    border-color: rgba(208,220,235,.78) !important;
    background: #f8fbff !important;
    padding: 11px !important;
}

.player-info-grid span,
.match-history-item__meta span,
.player-notes-box span,
.player-stat-box span {
    color: #667085 !important;
    font-size: 10px !important;
    font-weight: 950 !important;
}

.player-info-grid strong,
.match-history-item__meta strong,
.player-stat-box strong {
    color: #101828 !important;
    font-size: 13px !important;
}

.player-stat-box strong {
    font-size: 18px !important;
    letter-spacing: -.03em;
}

.player-empty {
    border-radius: 16px !important;
    background: #f8fbff !important;
    font-size: 12px !important;
}

.tfp-form-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.tfp-form-dot {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
    background: #eef2f7;
    color: #475467;
}

.tfp-form-dot.is-win {
    background: #ecfdf3;
    color: #027a48;
}

.tfp-form-dot.is-loss {
    background: #fff1f3;
    color: #b42318;
}

.tfp-h2h-list {
    display: grid;
    gap: 8px;
}

.tfp-h2h-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(208,220,235,.78);
    border-radius: 16px;
    background: #f8fbff;
}

.tfp-h2h-item a {
    color: #101828;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.tfp-h2h-meta {
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
    font-weight: 750;
}

.tfp-h2h-score {
    min-width: 54px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #eef5ff;
    color: #175cd3;
    font-size: 14px;
    font-weight: 950;
    text-align: center;
}

.match-history-item {
    border-radius: 20px !important;
    border-color: rgba(208,220,235,.84) !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(16,24,40,.045) !important;
}

.match-history-item__top h3 {
    font-size: 15px !important;
    letter-spacing: -.02em;
}

.match-scoreline {
    border-radius: 16px !important;
    background: linear-gradient(180deg, #f8fbff, #eef5ff) !important;
}

.match-scoreline strong {
    font-size: 22px !important;
    color: #175cd3 !important;
}

.match-history-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.player-btn--mini {
    min-height: 34px !important;
    font-size: 11px !important;
}

.tfp-pro-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 7px;
    background: #eef5ff;
    color: #175cd3;
    font-size: 10px;
    font-weight: 950;
}

@media (max-width: 820px) {
    .player-profile-page {
        width: min(100% - 20px, 980px) !important;
        padding-top: 16px !important;
    }

    .player-profile-hero {
        border-radius: 22px !important;
    }

    .player-profile-hero__actions {
        justify-content: flex-start;
    }

    .player-link-strip,
    .tfp-premium-row {
        grid-template-columns: 1fr 1fr;
    }

    .player-link-strip > div:first-child {
        grid-column: 1 / -1;
    }

    .player-overview-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    .player-profile-page {
        width: min(100% - 14px, 980px) !important;
        padding-top: 10px !important;
    }

    .player-profile-hero__left {
        align-items: flex-start !important;
    }

    .player-profile-avatar {
        width: 50px !important;
        height: 50px !important;
        border-radius: 16px !important;
    }

    .player-profile-hero h1 {
        font-size: 24px !important;
    }

    .player-link-strip,
    .tfp-premium-row,
    .player-info-grid,
    .player-stats-grid,
    .match-history-item__meta {
        grid-template-columns: 1fr 1fr !important;
    }

    .player-link-strip__stats {
        min-width: 0;
    }

    .player-btn {
        width: auto !important;
        flex: 1 1 auto;
    }

    .player-card {
        padding: 13px !important;
        border-radius: 20px !important;
    }
}


/* =========================================================
   TFP PATCH: ultra compact profile + visible competition results
========================================================= */

body.player-profile-body {
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%) !important;
}

.player-profile-page {
    width: min(820px, calc(100% - 28px)) !important;
    max-width: 820px !important;
    padding: 18px 0 44px !important;
}

.player-profile-container {
    max-width: 820px !important;
    gap: 10px !important;
}

.player-profile-hero {
    min-height: 82px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
}

.player-profile-hero__left {
    gap: 10px !important;
}

.player-profile-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
}

.player-profile-badge {
    min-height: 18px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
}

.player-profile-hero h1 {
    margin: 4px 0 2px !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.player-profile-hero p {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.player-profile-hero__actions {
    gap: 6px !important;
}

.player-btn {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
}

.player-link-strip {
    padding: 9px 11px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(16,24,40,.045) !important;
}

.player-link-strip span {
    font-size: 9px !important;
    margin-bottom: 2px !important;
}

.player-link-strip strong {
    font-size: 12px !important;
}

.player-link-strip p {
    margin-top: 2px !important;
    font-size: 10.5px !important;
}

.player-link-strip__stats {
    min-width: 78px !important;
    padding: 7px 8px !important;
    border-radius: 13px !important;
}

.player-link-strip__stats b {
    font-size: 18px !important;
}

.player-link-strip__stats small {
    font-size: 9px !important;
}

.tfp-premium-row {
    gap: 8px !important;
}

.tfp-premium-box {
    min-height: 62px !important;
    padding: 10px 11px !important;
    border-radius: 16px !important;
}

.tfp-premium-box span {
    font-size: 9px !important;
    margin-bottom: 4px !important;
}

.tfp-premium-box strong {
    font-size: 19px !important;
}

.tfp-rank-link {
    margin-top: 4px !important;
    font-size: 10px !important;
}

.player-overview-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.player-card {
    padding: 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(16,24,40,.045) !important;
}

.section-header {
    margin-bottom: 9px !important;
}

.section-header h2 {
    font-size: 14px !important;
    line-height: 1.05 !important;
}

.section-header p {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
}

.player-info-grid,
.player-stats-grid,
.match-history-item__meta {
    gap: 6px !important;
}

.player-info-grid > div,
.player-notes-box,
.player-stat-box,
.match-history-item__meta > div {
    min-height: auto !important;
    padding: 8px !important;
    border-radius: 12px !important;
}

.player-info-grid span,
.player-stat-box span,
.player-notes-box span,
.match-history-item__meta span {
    font-size: 8.5px !important;
}

.player-info-grid strong,
.player-stat-box strong,
.match-history-item__meta strong {
    font-size: 11px !important;
}

.player-stat-box strong {
    font-size: 15px !important;
}

.player-empty {
    padding: 10px !important;
    border-radius: 12px !important;
    font-size: 10.5px !important;
}

.tfp-form-dot {
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
}

.player-section-count {
    min-width: 34px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 950;
}

.competition-results-list {
    display: grid;
    gap: 7px;
}

.competition-result-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(208,220,235,.8);
    border-radius: 14px;
    background: #fff;
}

.competition-result-item__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.competition-result-item__main strong {
    color: #101828;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.competition-result-item__main small {
    color: #667085;
    font-size: 10.5px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.competition-source {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 7px;
    color: #175cd3;
    background: #eef5ff;
    font-size: 8.5px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.competition-source.is-tournament {
    color: #7c3aed;
    background: #f5f3ff;
}

.competition-result-item__score {
    min-width: 72px;
    text-align: center;
}

.competition-result-item__score b {
    display: block;
    color: #101828;
    font-size: 15px;
    line-height: 1;
    font-weight: 950;
}

.competition-result-item__score span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 9.5px;
    font-weight: 800;
}

.competition-result-item__result {
    min-width: 76px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    background: #f2f4f7;
    font-size: 10px;
    font-weight: 950;
}

.competition-result-item__result.is-win {
    color: #027a48;
    background: #ecfdf3;
}

.competition-result-item__result.is-loss {
    color: #b42318;
    background: #fff1f3;
}

.tfp-h2h-item {
    padding: 9px !important;
    border-radius: 13px !important;
}

.tfp-h2h-item a,
.tfp-h2h-item strong {
    color: #101828 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

.tfp-h2h-meta {
    font-size: 10px !important;
}

.tfp-h2h-score {
    min-width: 46px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.match-history-item {
    padding: 10px !important;
    border-radius: 15px !important;
}

.match-history-item__top h3 {
    font-size: 13px !important;
}

.match-history-item__top p {
    font-size: 10px !important;
}

.match-scoreline {
    padding: 9px !important;
    border-radius: 12px !important;
}

.match-scoreline strong {
    font-size: 17px !important;
}

@media (max-width: 820px) {
    .player-profile-page {
        width: min(100% - 18px, 820px) !important;
    }

    .player-profile-hero,
    .player-link-strip,
    .tfp-premium-row,
    .player-overview-grid {
        grid-template-columns: 1fr !important;
    }

    .player-profile-hero__actions {
        justify-content: flex-start !important;
    }

    .tfp-premium-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 560px) {
    .player-profile-page {
        width: min(100% - 12px, 820px) !important;
        padding-top: 10px !important;
    }

    .player-profile-hero h1 {
        font-size: 21px !important;
    }

    .tfp-premium-row,
    .player-info-grid,
    .player-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .competition-result-item {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .competition-result-item__result {
        grid-column: 1 / -1;
        width: 100%;
    }
}


/* =========================================================
   TFP PATCH: strict identity match note / tighter header
========================================================= */

.player-profile-hero {
    max-width: 100% !important;
}

.player-profile-hero h1 {
    letter-spacing: -0.035em !important;
}

.player-link-strip {
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.92)) !important;
}

.player-link-strip p {
    max-width: 560px !important;
}


/* TFP PATCH: trainer profile uses only coach-panel matches */
.player-card--results {
    display: none !important;
}

