/* Einzel-Liga: großer Header + Tab-Leiste (weitere Tabs später) */
.yl-hub-header {
	background: rgba(22, 10, 10, 0.92);
	border: 1px solid rgba(255, 170, 90, 0.28);
	border-radius: 8px;
	padding: 20px 22px;
	margin-bottom: 16px;
}
.yl-hub-header h1 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 600;
	color: #f2dfcc;
}
.yl-hub-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.yl-hub-flagimg {
	display: block;
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}
.yl-hub-title-text {
	min-width: 0;
	flex: 1;
}
.yl-hub-meta {
	font-size: 14px;
	color: rgba(242, 223, 204, 0.75);
	line-height: 1.5;
}
.yl-hub-meta span { margin-right: 14px; }
.yl-hub-flag { font-size: 22px; margin-right: 6px; }

.yl-hub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(255, 170, 90, 0.22);
	padding-bottom: 0;
}
.yl-hub-tab {
	display: inline-block;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(242, 223, 204, 0.75);
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	margin-bottom: -1px;
}
.yl-hub-tab.is-active {
	background: rgba(22, 10, 10, 0.95);
	border-color: rgba(255, 170, 90, 0.28);
	color: #fff;
}
.yl-hub-tab.is-disabled {
	cursor: not-allowed;
	opacity: 0.45;
	color: rgba(242, 223, 204, 0.5);
}

/* === Jugendliga-Tabelle (Mockup: Header-Card, Spotlights, moderne Zeilen) === */
.yltb-back { margin-bottom: 10px; }
.yltb {
	--yltb-gold: #d4af37;
	--yltb-gold-dim: rgba(212, 175, 55, 0.22);
	--yltb-red: #8b1e1e;
	--yltb-green: #1e6b3a;
	--yltb-blue: #2a5a8a;
	--yltb-text: #f2dfcc;
	--yltb-muted: rgba(242, 223, 204, 0.65);
	color: var(--yltb-text);
}

.yltb-hero {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(200px, 280px);
	gap: 18px 22px;
	align-items: start;
	background: linear-gradient(145deg, rgba(36, 14, 14, 0.98), rgba(18, 8, 8, 0.95));
	border: 1px solid rgba(255, 170, 90, 0.35);
	border-radius: 12px;
	padding: 20px 22px 22px;
	margin-bottom: 8px;
	box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}
@media (max-width: 900px) {
	.yltb-hero { grid-template-columns: 1fr; }
}
.yltb-hero__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.yltb-hero__flag {
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.yltb-hero__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.yltb-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 170, 90, 0.25);
	color: var(--yltb-text);
}
.yltb-pill--accent {
	border-color: rgba(212, 175, 55, 0.55);
	color: var(--yltb-gold);
}
.yltb-hero__title {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
	line-height: 1.15;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.yltb-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}
.yltb-stat { min-width: 0; }
.yltb-stat__k {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--yltb-muted);
}
.yltb-stat__v {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}
.yltb-hero__right {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.yltb-mini {
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 8px 10px;
}
.yltb-mini__label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--yltb-gold);
	margin-bottom: 4px;
}
.yltb-mini__row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}
.yltb-mini__logo {
	width: 26px;
	height: 26px;
	object-fit: contain;
	border-radius: 4px;
}
.yltb-mini__sub {
	font-size: 11px;
	font-weight: 600;
	color: var(--yltb-muted);
	margin-left: auto;
}

.yltb-tabs.yl-hub-tabs { margin-top: 4px; margin-bottom: 18px; }
.yltb-tabs .yl-hub-tab.is-active {
	box-shadow: inset 0 -3px 0 #b03030;
	border-bottom-color: transparent;
}

.yltb-spotlights {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}
@media (max-width: 1100px) {
	.yltb-spotlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.yltb-spotlights { grid-template-columns: 1fr; }
}
.yltb-card {
	background: rgba(22, 10, 10, 0.88);
	border: 1px solid rgba(255, 170, 90, 0.22);
	border-radius: 10px;
	padding: 12px 14px;
	min-height: 108px;
}
.yltb-card--talent {
	border-color: rgba(212, 175, 55, 0.45);
	box-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
}
.yltb-card__title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--yltb-gold);
}
.yltb-spot-player {
	display: flex;
	gap: 12px;
	align-items: center;
}
.yltb-spot-player__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(80, 40, 20, 0.6));
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 15px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.yltb-spot-player__name {
	font-weight: 700;
	font-size: 15px;
	color: #fff;
}
.yltb-spot-player__club {
	font-size: 12px;
	color: var(--yltb-muted);
	margin-top: 2px;
}
.yltb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.yltb-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}
.yltb-badge--str { background: rgba(212, 175, 55, 0.25); color: #fff; }
.yltb-badge--pot { background: rgba(40, 120, 70, 0.45); color: #e8ffe8; }

.yltb-spot-formteam, .yltb-spot-simple {
	display: flex;
	align-items: center;
	gap: 10px;
}
.yltb-spot-formteam__logo, .yltb-spot-simple__logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.yltb-spot-simple__num {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	margin-top: 4px;
}

.yltb-formdots {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	flex-wrap: wrap;
}
.yltb-formdot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.35);
}
.yltb-formdot.is-w { background: linear-gradient(145deg, #2d8f4a, #1e6b3a); }
.yltb-formdot.is-d { background: linear-gradient(145deg, #c9a227, #8a6a12); }
.yltb-formdot.is-l { background: linear-gradient(145deg, #b03030, #6e1818); }

.yltb-tablewrap {
	overflow-x: visible;
	margin-bottom: 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 170, 90, 0.22);
	background: rgba(10, 4, 4, 0.55);
}
.yltb-table {
	margin: 0 !important;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	table-layout: auto;
	background: transparent !important;
	border-collapse: separate;
	border-spacing: 0;
}
.yltb-table thead th {
	background: rgba(0, 0, 0, 0.45);
	color: var(--yltb-gold);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 12px 10px !important;
	border-bottom: 1px solid rgba(255, 170, 90, 0.25) !important;
	vertical-align: middle !important;
}
.yltb-th-rank { width: 48px; text-align: center; }
.yltb-table tbody td {
	padding: 10px 10px !important;
	vertical-align: middle !important;
	border-color: rgba(255, 255, 255, 0.06) !important;
	font-size: 13px;
}
.yltb-table tbody tr:nth-child(even) td {
	background: rgba(0, 0, 0, 0.12);
}

.yltb-td-rank { text-align: center; }
.yltb-rankbadge {
	display: inline-flex;
	min-width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-weight: 800;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.yltb-tr.yl-zone-champ .yltb-td-rank .yltb-rankbadge,
.yltb-tr.yl-zone-first .yltb-td-rank .yltb-rankbadge {
	background: linear-gradient(145deg, rgba(212, 175, 55, 0.55), rgba(120, 80, 20, 0.55));
	border-color: rgba(212, 175, 55, 0.75);
	color: #1a0a0a;
	box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}
.yltb-tr.yl-zone-podium td { background: rgba(212, 175, 55, 0.06); }
.yltb-tr.yl-zone-intl td { background: rgba(42, 90, 138, 0.12); }
.yltb-tr.yl-zone-promo td { background: rgba(30, 107, 58, 0.1); }
.yltb-tr.yl-zone-releg td { background: rgba(139, 30, 30, 0.18); }

.yltb-team { position: relative; }
.yltb-team__main {
	display: flex;
	align-items: center;
	gap: 10px;
}
.yltb-team__logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 4px;
}
.yltb-team__name {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	word-break: break-word;
}
.yltb-team__coach {
	font-size: 11px;
	color: var(--yltb-muted);
	margin-top: 2px;
}
.yltb-team__marker {
	font-size: 10px;
	color: var(--yltb-gold);
	margin-top: 2px;
}
.yltb-teamcard {
	display: none;
	min-width: 220px;
	max-width: min(280px, calc(100vw - 24px));
	z-index: 4000;
}
.yltb-formtip {
	display: none;
	min-width: 220px;
	max-width: min(320px, calc(100vw - 24px));
	z-index: 4000;
	font-size: 11px;
	line-height: 1.45;
	background: rgba(16, 6, 6, 0.98);
	border: 1px solid rgba(255, 170, 90, 0.35);
	border-radius: 8px;
	padding: 8px 10px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
.yltb-teamcard.is-float-open,
.yltb-formtip.is-float-open {
	display: block;
}
.yltb-teamcard__inner {
	background: rgba(20, 8, 8, 0.98);
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: 8px;
	padding: 10px 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.yltb-teamcard__t {
	font-size: 10px;
	text-transform: uppercase;
	color: var(--yltb-gold);
	margin-bottom: 4px;
}

.yltb-formhover { position: relative; }
.yltb-formtip__line { margin: 3px 0; display: flex; align-items: center; gap: 6px; }

.yltb-goalpair {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	white-space: nowrap;
}
.yltb-ico { font-size: 12px; opacity: 0.85; }

.yltb-td-diff.is-pos { color: #7ddf9a; font-weight: 800; }
.yltb-td-diff.is-neg { color: #ff8a8a; font-weight: 800; }
.yltb-td-pts {
	font-size: 18px !important;
	font-weight: 800;
	color: #fff;
	text-align: center;
}

.yltb-td-talents { position: relative; }
.yltb-talents { position: relative; display: inline-block; text-align: left; }
.yltb-talents-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 4px 10px;
	font: inherit;
	font-weight: 800;
	font-size: 15px;
	line-height: 1.2;
	color: var(--yltb-gold);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: 8px;
	cursor: pointer;
}
.yltb-talents-btn:hover,
.yltb-talents-btn:focus-visible {
	border-color: rgba(212, 175, 55, 0.85);
	outline: none;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.yltb-talents-pop {
	display: none;
	position: absolute;
	z-index: 60;
	right: 0;
	top: calc(100% + 4px);
	min-width: 220px;
	max-width: min(320px, 92vw);
	padding: 10px 12px;
	background: rgba(18, 8, 8, 0.98);
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
	font-size: 12px;
	line-height: 1.45;
}
.yltb-talents-pop.is-open {
	display: block;
}
.yltb-talents-pop__head {
	margin-bottom: 8px;
	line-height: 1.4;
}
.yltb-talents-pop__list {
	margin: 0;
	padding-left: 18px;
}
.yltb-talents-pop__list li { margin: 4px 0; }
.yltb-talents-pop__empty { margin: 6px 0 0; }

.yltb-legend {
	font-size: 12px;
	color: var(--yltb-muted);
	margin: 10px 0 6px;
	line-height: 1.6;
}
.yltb-legitem { margin-right: 14px; white-space: nowrap; }
.yltb-sample {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	margin-right: 4px;
	vertical-align: middle;
}
.yltb-sample.yl-zone-champ { background: linear-gradient(145deg, #d4af37, #6a4a10); }
.yltb-sample.yl-zone-intl { background: rgba(42, 90, 138, 0.85); }
.yltb-sample.yl-zone-promo { background: rgba(30, 107, 58, 0.85); }
.yltb-sample.yl-zone-releg { background: rgba(139, 30, 30, 0.85); }

/* Tabellenplatz 1–3: leichte Zeilenbetonung (zusätzlich zu Zonenfarben) */
.yltb-tr--top1 td {
	box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}
.yltb-tr--top2 td,
.yltb-tr--top3 td {
	box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

/* Abstiegszone: Warnhinweis neben dem Rang */
.yltb-tr.yl-zone-releg .yltb-td-rank .yltb-rankbadge {
	gap: 4px;
}
.yltb-tr.yl-zone-releg .yltb-td-rank .yltb-rankbadge::after {
	content: '\26A0';
	font-size: 12px;
	line-height: 1;
	margin-left: 2px;
	color: #ff9a9a;
	text-shadow: 0 0 6px rgba(255, 80, 80, 0.45);
}

/* Schmale Viewports: horizontales Scrollen nur für die Tabelle, kompaktere Zeilen */
@media (max-width: 900px) {
	.yltb-tablewrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.yltb-table {
		min-width: 560px;
	}
	.yltb-hero__title {
		font-size: 22px;
	}
	.yltb-hero__stats {
		gap: 8px 12px;
	}
	.yltb-stat__v {
		font-size: 14px;
	}
	.yltb-table thead th,
	.yltb-table tbody td {
		padding: 8px 6px !important;
		font-size: 12px !important;
	}
	.yltb-team__logo {
		width: 28px;
		height: 28px;
	}
	.yltb-team__name {
		font-size: 13px;
	}
	.yltb-formdot {
		width: 18px;
		height: 18px;
		font-size: 10px;
	}
	.yltb-td-pts strong {
		font-size: 16px !important;
	}
}
@media (max-width: 520px) {
	.yltb-spotlights {
		grid-template-columns: 1fr;
	}
	.yltb-card {
		min-height: 0;
		padding: 10px 12px;
	}
	.yltb-table {
		min-width: 500px;
	}
	.yltb-talents-pop.is-open {
		position: fixed;
		left: 10px !important;
		right: 10px;
		top: auto !important;
		bottom: 10px;
		max-width: none;
		width: auto;
		max-height: 55vh;
		overflow-y: auto;
	}
}

