/* /replay/{lapNo} — 랩 신원 표(톱페이지 보드 모양). 플레이어·비교·분석 스타일은 site.css에 있다. */
.replay-records .eyebrow {
	margin-bottom: 4px;
}

.replay-title {
	margin: 0 0 12px;
	font-size: 26px;
	font-variant-numeric: tabular-nums;
}

.replay-by {
	color: var(--muted);
	font-size: 16px;
	font-weight: 400;
}

.replay-by a {
	color: var(--text);
	text-decoration: none;
}

.replay-by a:hover,
.replay-identity a:hover,
.replay-links a:hover {
	text-decoration: underline;
}

.replay-muted {
	color: var(--muted);
}

.replay-identity {
	overflow: hidden;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.replay-identity table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
}

.replay-identity th,
.replay-identity td {
	padding: 5px 8px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
	border-bottom: 1px solid var(--line);
}

.replay-identity thead th {
	color: var(--muted);
	font-size: 12px;
	font-weight: 400;
}

.replay-identity tbody tr:last-child th,
.replay-identity tbody tr:last-child td {
	border-bottom: 0;
}

.replay-identity tbody th {
	color: var(--muted);
	font-weight: 400;
}

.replay-identity thead th:first-child { width: 110px; }
.replay-identity .replay-id-time { width: 110px; }
.replay-identity .replay-id-ps { width: 70px; text-align: right; }
.replay-identity td.replay-id-tires,
.replay-identity thead th:nth-child(6) { width: 80px; }
.replay-identity .replay-id-rank { width: 80px; text-align: right; }
.replay-identity .replay-id-date { width: 60px; text-align: right; }

.replay-identity a {
	text-decoration: none;
}

.replay-identity td.replay-id-time {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.replay-identity td.replay-id-driver {
	font-weight: 500;
}

.replay-identity td.replay-id-date,
.replay-identity td.replay-id-tires {
	color: var(--muted);
}

/* 랩 색 표식 — 플레이어 COLORS(Reference 노랑, Comparison 청록)와 같다. */
.replay-swatch {
	display: inline-block;
	width: 12px;
	height: 3px;
	margin-right: 6px;
	vertical-align: middle;
	background: #f5c542;
}

.replay-id-comparison .replay-swatch {
	background: #42d7e8;
}

.replay-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 8px 0 0;
	font-size: 12px;
}

.replay-links a {
	color: var(--pb);
	text-decoration: none;
}

.replay-links .replay-muted {
	margin-left: auto;
}

/* 제목 · 차량 · 비교 랩을 한 줄에 둔다. */
.replay-compare-form {
	display: flex;
	flex: 1 1 320px;
	min-width: 0;
}

.replay-compare-form .compare-label {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.replay-compare-form .compare-select {
	flex: 1 1 auto;
	min-width: 0;
}

.compare-panel .replay-muted {
	margin: 0;
}

.status-inline[hidden] {
	display: none;
}

@media (max-width: 540px) {
	.replay-title {
		font-size: 22px;
	}

	.replay-identity thead {
		display: none;
	}

	.replay-identity table,
	.replay-identity tbody,
	.replay-identity tr {
		display: block;
	}

	.replay-identity tr {
		display: flex;
		flex-wrap: wrap;
		gap: 2px 10px;
		padding: 6px 8px;
		border-bottom: 1px solid var(--line);
	}

	.replay-identity tbody tr:last-child {
		border-bottom: 0;
	}

	.replay-identity th,
	.replay-identity td {
		width: auto !important;
		padding: 0;
		border: 0;
		text-align: left !important;
	}

	.replay-identity tbody th {
		flex: 1 1 100%;
	}

	.replay-links .replay-muted {
		margin-left: 0;
	}

	/* 콤보 둘은 한 줄씩 차지하고 판 안에서 줄어든다. */
	.compare-head .compare-label,
	.replay-compare-form {
		flex: 1 1 100%;
		min-width: 0;
	}

	.compare-head select {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		max-width: none;
	}
}
