/* Spielseite (match.php) – baut auf front.css + category.css auf */

.ri-match-hero {
	padding: 16px var(--ri-pad) 18px;
	background: radial-gradient(120% 90% at 50% 0%, #163A74 0%, var(--ri-navy) 60%, #081E44 100%);
	color: #fff;
	text-align: center;
}
.ri-match-comp {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #A9B8D6;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ri-match-comp img { width: 20px; height: 20px; object-fit: contain; }

.ri-match-teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 8px;
	margin-top: 16px;
}
.ri-match-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.ri-match-team img { width: 56px; height: 56px; object-fit: contain; }
.ri-match-team.is-real span:not(.ri-form-dots) { color: var(--ri-accent); }

.ri-match-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; padding-top: 8px; }
.ri-match-date { color: #A9B8D6; font-size: 13px; font-weight: 700; }
.ri-match-time {
	padding: 6px 12px;
	background: var(--ri-accent);
	color: var(--ri-navy);
	font-size: 22px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.ri-match-score { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ri-match-status {
	padding: 3px 8px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ri-match-hero.is-live .ri-match-status { background: #D6283B; }

.ri-form-dots { display: flex; gap: 3px; }
.ri-form-dots i {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	color: #fff;
	font-size: 9px;
	font-style: normal;
	font-weight: 800;
}
.ri-form-dots .is-w { background: #1E9E57; }
.ri-form-dots .is-d { background: #7E8794; }
.ri-form-dots .is-l { background: #D6283B; }

.ri-match-scorers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	list-style: none;
	color: #D5DDEE;
	font-size: 12px;
	line-height: 1.5;
}
.ri-match-scorers li { display: flex; flex-direction: column; }
.ri-match-scorers--home { text-align: right; }
.ri-match-scorers--away { text-align: left; }
.ri-match-venue { margin: 14px 0 0; color: #7F90B3; font-size: 12px; }

/* 4 Tabs */
.ri-tabs--4 { grid-template-columns: repeat(4, 1fr); }
.ri-tabs--4 .ri-tab { font-size: 13px; letter-spacing: .02em; gap: 6px; }
.ri-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #D6283B; animation: ri-pulse 1.2s infinite; }
@keyframes ri-pulse { 50% { opacity: .3; } }

/* H2H */
.ri-h2h-summary { padding: 18px var(--ri-pad) 6px; }
.ri-h2h-counts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ri-h2h-counts span { display: flex; flex-direction: column; gap: 2px; color: var(--ri-muted); font-size: 12px; font-weight: 600; }
.ri-h2h-counts strong { color: var(--ri-text); font-size: 26px; font-weight: 800; line-height: 1.1; }
.ri-h2h-counts span:first-child strong { color: #1E9E57; }
.ri-h2h-counts span:last-child strong { color: #D6283B; }
.ri-h2h-bar { display: flex; height: 8px; margin-top: 12px; background: var(--ri-line); }
.ri-h2h-bar .is-s { background: #1E9E57; }
.ri-h2h-bar .is-u { background: #9A9FA8; }
.ri-h2h-bar .is-n { background: #D6283B; }
.ri-h2h-note { margin: 10px 0 0; color: var(--ri-muted); font-size: 12px; text-align: center; }
.ri-game-link { display: flex; flex: 1; align-items: center; gap: 16px; color: inherit; }
.ri-games .ri-game:has(.ri-game-link) { padding: 0; }
.ri-games .ri-game-link { padding: 12px var(--ri-pad); }

/* Aufstellung */
.ri-lineups { display: grid; gap: 0; }
.ri-lineup { padding: 16px var(--ri-pad); border-bottom: 8px solid #f2f2f4; }
.ri-app .ri-lineup-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.ri-lineup-head img { width: 22px; height: 22px; object-fit: contain; }
.ri-lineup-head em { margin-left: auto; padding: 3px 8px; background: var(--ri-navy); color: var(--ri-accent); font-size: 12px; font-style: normal; font-weight: 800; }
.ri-lineup-list { margin: 0; padding: 0; list-style: none; }
.ri-lineup-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ri-line); font-size: 15px; }
.ri-lineup-list b { width: 24px; color: var(--ri-muted); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ri-lineup-list span { flex: 1; min-width: 0; font-weight: 600; }
.ri-lineup-list small { color: var(--ri-muted); font-size: 11px; font-weight: 700; }
.ri-lineup-list i { font-style: normal; font-weight: 800; }
.ri-lineup-list .is-out { color: #D6283B; }
.ri-lineup-list .is-in { color: #1E9E57; }
.ri-app .ri-lineup-subhead { margin: 16px 0 4px; color: var(--ri-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ri-lineup-list--subs li { font-size: 14px; }

/* Platzhalter (Daten folgen) */
.ri-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px var(--ri-pad); color: var(--ri-muted); text-align: center; }
.ri-placeholder svg { color: var(--ri-accent); }
.ri-placeholder p { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.5; }
.ri-placeholder strong { display: block; margin-bottom: 4px; color: var(--ri-text); font-size: 16px; }

/* Statistik */
.ri-stats { padding: 16px var(--ri-pad) 8px; }
.ri-stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--ri-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ri-stats-head img { width: 24px; height: 24px; object-fit: contain; }
.ri-stat { padding: 8px 0; }
.ri-stat-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; }
.ri-stat-row span { color: var(--ri-muted); font-weight: 600; }
.ri-stat-row b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ri-stat-bar { display: flex; gap: 4px; height: 6px; margin-top: 6px; }
.ri-stat-bar i { background: #D5DAE3; }
.ri-stat-bar i.is-lead { background: var(--ri-navy); }
.ri-stat-bar i:first-child { margin-left: auto; }

/* Spielverlauf */
.ri-timeline { margin: 0; padding: 0 0 16px; list-style: none; }
.ri-tl { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 10px; padding: 8px var(--ri-pad); border-bottom: 1px solid var(--ri-line); font-size: 14px; }
.ri-tl-min { grid-column: 2; grid-row: 1; color: var(--ri-muted); font-size: 12px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.ri-tl-icon { display: none; }
.ri-tl-text { display: flex; flex-direction: column; gap: 2px; grid-row: 1; }
.ri-tl--home .ri-tl-text { grid-column: 1; text-align: right; }
.ri-tl--away .ri-tl-text { grid-column: 3; text-align: left; }
.ri-tl-text small { color: var(--ri-muted); font-size: 12px; }
.ri-tl-in { color: #1E9E57; font-weight: 600; }
.ri-tl-out { color: #D6283B; font-size: 13px; }
.ri-tl.is-goal .ri-tl-text strong::before { content: "⚽ "; }
.ri-tl.is-yellow .ri-tl-text strong::before { content: ""; display: inline-block; width: 9px; height: 12px; margin-right: 6px; background: #F2C230; vertical-align: -1px; }
.ri-tl.is-red .ri-tl-text strong::before { content: ""; display: inline-block; width: 9px; height: 12px; margin-right: 6px; background: #D6283B; vertical-align: -1px; }
.ri-tl.is-goal { background: #FBF6E6; }

/* Artikel: Karte "Zum Spiel" */
.ri-match-card { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; background: var(--ri-navy); color: #fff; }
.ri-app a.ri-match-card { color: #fff; text-decoration: none; }
.ri-match-card img { width: 26px; height: 26px; object-fit: contain; }
.ri-match-card-teams { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.ri-match-card-teams small { display: block; color: #A9B8D6; font-size: 12px; font-weight: 600; }
.ri-match-card-cta { color: var(--ri-accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
