/* Transfermarkt — Karten-Layout (Aktuelle Liste, Leihe, Vertragslose) */

.tm-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 18px;
	margin-top: 12px;
}

.tm-sidebar {
	flex: 1 1 320px;
	width: min(100%, 520px);
	max-width: 100%;
	background: rgba(12, 4, 4, 0.88);
	border: 1px solid rgba(255, 170, 90, 0.22);
	border-radius: 8px;
	padding: 10px 12px 8px;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 220, 180, 0.06);
}

.tm-sidebar-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #fde8d4;
	border-bottom: 1px solid rgba(255, 170, 90, 0.2);
	padding-bottom: 6px;
}

.tm-filter-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
	align-items: end;
}

.tm-fg-item {
	min-width: 0;
}

.tm-fg-item--full {
	grid-column: 1 / -1;
}

.tm-fg-label {
	display: block;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(253, 232, 212, 0.72);
	margin: 0 0 2px;
	line-height: 1.2;
}

.tm-fg-input,
.tm-fg-item select.input-block-level {
	margin-bottom: 0 !important;
	height: 28px;
	padding: 2px 6px;
	font-size: 12px;
	box-sizing: border-box;
}

.tm-fg-num {
	margin-bottom: 0 !important;
	height: 28px;
	padding: 2px 4px;
	font-size: 12px;
	box-sizing: border-box;
	width: 50%;
}

.tm-filter-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: row;
	gap: 8px;
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid rgba(255, 170, 90, 0.15);
}

.tm-filter-actions .btn {
	flex: 1;
	margin: 0 !important;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 380px) {
	.tm-filter-grid {
		grid-template-columns: 1fr;
	}
	.tm-fg-item--full {
		grid-column: 1;
	}
}

.tm-filter-form .control-group {
	margin-bottom: 0;
}

.tm-filter-form .control-label {
	width: 100%;
	float: none;
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(253, 232, 212, 0.75);
	margin-bottom: 4px;
}

.tm-filter-form .controls {
	margin-left: 0 !important;
}

.tm-two-cols {
	display: flex;
	gap: 6px;
}

.tm-two-cols input {
	width: 50%;
	box-sizing: border-box;
}

.tm-main {
	flex: 1 1 420px;
	min-width: 0;
}

.tm-toolbar {
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tm-count {
	margin: 0;
	font-weight: 600;
	color: #fde8d4;
}

.tm-sort-form {
	margin: 0;
}

.tm-sort-form label {
	display: inline;
	margin-right: 8px;
	font-size: 12px;
	color: rgba(253, 232, 212, 0.85);
}

.tm-card-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tm-card {
	background: linear-gradient(145deg, rgba(26, 10, 10, 0.95), rgba(14, 6, 6, 0.92));
	border-radius: 10px;
	border: 1px solid rgba(255, 170, 90, 0.18);
	padding: 12px 14px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
	position: relative;
	overflow: hidden;
}

.tm-tier-worldclass {
	border-color: rgba(255, 215, 120, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.12), 0 8px 26px rgba(0, 0, 0, 0.35);
}

.tm-tier-star {
	border-color: rgba(230, 60, 60, 0.55);
}

.tm-tier-good {
	border-color: rgba(200, 200, 210, 0.45);
}

.tm-tier-average {
	border-color: rgba(180, 130, 80, 0.35);
}

.tm-card-grid {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) minmax(200px, 280px);
	gap: 14px;
	align-items: stretch;
}

@media (max-width: 1100px) {
	.tm-card-grid {
		grid-template-columns: 96px minmax(0, 1fr);
	}
	.tm-card-right {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		align-items: end;
	}
	.tm-mv-block {
		grid-column: 1 / -1;
	}
	.tm-card-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.tm-layout {
		flex-direction: column;
	}
	.tm-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}
	.tm-card-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.tm-card-left {
		justify-items: center;
		margin: 0 auto;
	}
	.tm-card-meta {
		justify-content: center;
	}
	.tm-stat-row {
		grid-template-columns: 36px 1fr 36px;
	}
}

.tm-card-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-content: start;
	gap: 8px;
}

.tm-card-photo-wrap {
	width: 96px;
	height: 96px;
	flex-shrink: 0;
}

.tm-card-photo {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	border: 2px solid rgba(255, 255, 255, 0.08);
	background: #1a0a0a;
}

.tm-card-photo--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 800;
	color: rgba(255, 200, 160, 0.35);
	text-transform: uppercase;
}

.tm-card-left-below {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 100%;
	max-width: 120px;
	text-align: center;
}

.tm-ovr-badge {
	position: static;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, #3a3a42, #1e1e24);
	border: 2px solid rgba(255, 200, 120, 0.35);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	flex-shrink: 0;
}

.tm-tier-worldclass .tm-ovr-badge {
	background: radial-gradient(circle at 30% 25%, #ffe6a8, #c9a24a);
	border-color: rgba(255, 230, 160, 0.85);
	color: #2a1a05;
}

.tm-tier-star .tm-ovr-badge {
	border-color: rgba(255, 90, 90, 0.75);
}

.tm-ovr-badge__n {
	font-size: 17px;
	font-weight: 800;
}

.tm-ovr-badge__l {
	font-size: 9px;
	font-weight: 700;
	opacity: 0.85;
}

.tm-tier-worldclass .tm-ovr-badge .tm-ovr-badge__l,
.tm-tier-worldclass .tm-ovr-badge .tm-ovr-badge__n {
	color: #2a1a05;
}

.tm-pos-pill {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(120, 20, 20, 0.55);
	border: 1px solid rgba(255, 170, 90, 0.25);
	color: #fde8d4;
}

.tm-pos-secondary {
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	color: rgba(255, 230, 210, 0.72);
	letter-spacing: 0.04em;
	word-break: break-word;
	max-width: 100%;
}

.tm-card-mid {
	min-width: 0;
}

.tm-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.tm-card-name {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
}

.tm-card-name a {
	color: #fff8f0;
}

.tm-card-name a:hover {
	color: #ffd4a8;
}

.tm-hot {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(180, 40, 40, 0.35);
	border: 1px solid rgba(255, 120, 120, 0.25);
	color: #ffd6d6;
	max-width: 100%;
}

.tm-hot--hotness_top_talent {
	background: rgba(40, 120, 200, 0.25);
	border-color: rgba(120, 190, 255, 0.35);
	color: #d8ecff;
}

.tm-hot--hotness_bargain {
	background: rgba(40, 160, 90, 0.25);
	border-color: rgba(120, 255, 180, 0.25);
	color: #d8ffe8;
}

.tm-hot--hotness_low_interest {
	background: rgba(90, 90, 110, 0.35);
	color: #e0e0ea;
}

.tm-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	font-size: 12px;
	color: rgba(253, 232, 212, 0.82);
	margin-bottom: 8px;
}

.tm-club a {
	color: #ffd4a8;
	font-weight: 600;
}

.tm-club-logo {
	width: 20px;
	height: 20px;
	object-fit: contain;
	vertical-align: -4px;
	margin-right: 6px;
	border-radius: 3px;
}

.tm-flag {
	width: 18px;
	height: 12px;
	object-fit: cover;
	margin-right: 6px;
	vertical-align: -1px;
	border-radius: 2px;
}

.tm-stat-grid {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 4px;
}

.tm-stat-row {
	display: grid;
	grid-template-columns: 34px 1fr 32px;
	align-items: center;
	gap: 8px;
	font-size: 11px;
}

.tm-stat-k {
	font-weight: 800;
	color: rgba(255, 220, 200, 0.55);
	letter-spacing: 0.04em;
}

.tm-stat-v {
	text-align: right;
	font-weight: 700;
	color: #fff4ea;
}

.tm-bar {
	height: 7px;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	transition: width 0.25s ease;
}

.tm-bar-fill--off { background: linear-gradient(90deg, #2d6a4f, #52b788); }
.tm-bar-fill--def { background: linear-gradient(90deg, #1d3557, #457b9d); }
.tm-bar-fill--pas { background: linear-gradient(90deg, #5c4d7d, #9b72cf); }
.tm-bar-fill--tem { background: linear-gradient(90deg, #b86b00, #ffb703); }
.tm-bar-fill--phy { background: linear-gradient(90deg, #6a3b1f, #e76f51); }
.tm-bar-fill--for { background: linear-gradient(90deg, #4a4e69, #c9cbcf); }

.tm-stat-row--for .tm-stat-k {
	color: rgba(200, 210, 220, 0.65);
}

.tm-micro {
	margin: 8px 0 0;
	font-size: 10px;
	color: rgba(253, 232, 212, 0.45);
}

.tm-card-right {
	border-left: 1px solid rgba(255, 170, 90, 0.12);
	padding-left: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

@media (max-width: 1100px) {
	.tm-card-right {
		border-left: none;
		padding-left: 0;
		border-top: 1px solid rgba(255, 170, 90, 0.12);
		padding-top: 12px;
	}
}

.tm-mv-block {
	text-align: right;
}

.tm-mv-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(253, 232, 212, 0.55);
}

.tm-mv-value {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	color: #fffaf4;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.tm-price-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	font-size: 12px;
}

.tm-price-row--muted {
	opacity: 0.75;
}

.tm-price-label {
	color: rgba(253, 232, 212, 0.55);
}

.tm-price-num {
	font-weight: 700;
	color: #fde8d4;
}

.tm-btn-bid {
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-top: 4px !important;
}

/* Marktwert-/Gehalt-Filter: Tausender-Leerzeichen, bessere Lesbarkeit */
.tm-money-row .tm-two-cols input.cm-money-input {
	min-height: 34px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid rgba(255, 200, 150, 0.22);
	background: rgba(0, 0, 0, 0.45);
	color: #fff6ea;
}
.tm-money-row .tm-fg-label {
	font-size: 10px;
}

.tm-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	border-radius: 10px 10px 0 0;
	background: linear-gradient(90deg, transparent, rgba(255, 190, 120, 0.35), transparent);
	pointer-events: none;
	opacity: 0.9;
}

.tm-mv-value {
	font-variant-numeric: tabular-nums;
}

.tm-toolbar {
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(10, 4, 4, 0.55);
	border: 1px solid rgba(255, 170, 90, 0.12);
}
