/* Classic player page — hero layout (photo / text / flag) */

.clsp-hero {
	display: grid;
	/* RTL: col1 = visual right (photo), col3 = visual left (flag) */
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--ic-space-md) 1.25rem;
	align-items: start;
	width: 100%;
}

.clsp-hero-photo {
	grid-column: 1;
	grid-row: 1;
}

.clsp-hero-text {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	text-align: right;
}

.clsp-hero-flag {
	grid-column: 3;
	grid-row: 1;
}

.clsp-hero-photo img,
.clsp-hero-flag img {
	display: block;
	width: 128px;
	height: 128px;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	border: 2px solid var(--ic-control-border-strong, #adb5bd);
	border-radius: 8px;
	background: var(--ic-disabled-bg, #e9ecef);
}

.clsp-hero-flag img {
	object-fit: contain;
	background: transparent;
}

.clsp-hero-text .ic-form-page-title {
	margin-top: 0;
}

.clsp-hero-text .ic-form-section-title {
	margin-bottom: var(--ic-space-xs);
}

@media (max-width: 767.98px) {
	.clsp-hero {
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		justify-content: space-between;
		align-items: start;
		gap: var(--ic-space-sm) 1rem;
	}

	/* Top corners: photo right, flag left (RTL grid) */
	.clsp-hero-photo {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.clsp-hero-flag {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	.clsp-hero-text {
		grid-column: 1 / -1;
		grid-row: 2;
		text-align: right;
	}

	.clsp-hero-photo img,
	.clsp-hero-flag img {
		width: 72px;
		height: 72px;
	}
}
