.lanes-lt {
	--lt-bg: var(--lanes-ink, #0B0D12);
	--lt-panel: var(--lanes-asphalt, #1A1D24);
	--lt-line: rgba(255, 255, 255, .10);
	--lt-text: var(--lanes-white, #FFFFFF);
	--lt-muted: rgba(255, 255, 255, .62);
	--lt-accent: var(--lanes-blue, #0019FF);
	--lt-flag: var(--lanes-flag, #FFD400);
	--lt-live: #22c55e;
	--lt-stale: var(--lanes-flag, #FFD400);
	--lt-off: #ef4444;
	--lt-display: var(--lanes-display, "Barlow Condensed", sans-serif);
	--lt-body: var(--lanes-body, "Barlow", sans-serif);
	background: var(--lt-bg);
	background-image: radial-gradient(ellipse 45% 120% at 100% 0%, rgba(0, 25, 255, .35), transparent 65%);
	color: var(--lt-text);
	border-radius: 2px;
	border-top: 4px solid var(--lt-accent);
	padding: 24px 28px 16px;
	margin: 0 0 24px;
	width: 100%;
	font-family: var(--lt-body);
	box-shadow: 0 12px 30px rgba(11, 13, 18, .18);
	box-sizing: border-box;
}

.lanes-lt__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.lanes-lt__series {
	font-family: var(--lt-display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--lt-flag);
	margin: 0 0 4px;
}

.lanes-lt__series:empty { display: none; }

.lanes-lt__title {
	margin: 0;
	font-family: var(--lt-display);
	font-weight: 800;
	font-size: clamp(30px, 4vw, 44px);
	line-height: .95;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--lt-text);
}

.lanes-lt__status {
	text-align: right;
}

.lanes-lt__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 2px;
	font-family: var(--lt-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--lt-line);
	color: var(--lt-muted);
}

.lanes-lt__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--lt-muted);
}

.lanes-lt__badge[data-state="live"] { color: var(--lt-live); border-color: rgba(34, 197, 94, .45); }
.lanes-lt__badge[data-state="live"] .lanes-lt__dot { background: var(--lt-live); animation: lanes-lt-pulse 1.4s ease-in-out infinite; }
.lanes-lt__badge[data-state="stale"] { color: var(--lt-stale); border-color: rgba(255, 212, 0, .45); }
.lanes-lt__badge[data-state="stale"] .lanes-lt__dot { background: var(--lt-stale); }
.lanes-lt__badge[data-state="off"] { color: var(--lt-off); border-color: rgba(239, 68, 68, .45); }
.lanes-lt__badge[data-state="off"] .lanes-lt__dot { background: var(--lt-off); }

@keyframes lanes-lt-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
	60% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

.lanes-lt__clock {
	margin-top: 8px;
	font-family: var(--lt-display);
	font-variant-numeric: tabular-nums;
	font-size: 18px;
	letter-spacing: .04em;
	color: var(--lt-muted);
}

.lanes-lt__race {
	margin: 20px 0 12px;
	padding: 10px 16px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .05);
	border-left: 4px solid var(--lt-flag);
	font-family: var(--lt-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.lanes-lt__race:empty { display: none; }

.lanes-lt__tablewrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lanes-lt__table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	font-size: 17px;
	margin: 0;
	border: 0;
}

.lanes-lt__table th,
.lanes-lt__table td {
	padding: 11px 12px;
	border: 0;
	border-bottom: 1px solid var(--lt-line);
	white-space: nowrap;
	text-align: left;
	color: var(--lt-text);
	background: transparent;
	font-family: var(--lt-body);
}

.lanes-lt__table th {
	font-family: var(--lt-display);
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lt-muted);
	font-weight: 700;
}

.lanes-lt__table .is-center { text-align: center; }
.lanes-lt__table .is-driver { font-family: var(--lt-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.lanes-lt__table .is-pos { font-family: var(--lt-display); font-weight: 800; font-size: 22px; color: var(--lt-muted); }
.lanes-lt__table .is-dim { color: rgba(255, 255, 255, .25); }
.lanes-lt__table tr.is-leader td { background: rgba(0, 25, 255, .22); }
.lanes-lt__table tr.is-leader .is-pos { color: var(--lt-flag); }
.lanes-lt__table tbody tr:last-child td { border-bottom: 0; }

.lanes-lt__lane {
	display: inline-block;
	min-width: 2.2em;
	padding: 3px 8px;
	border-radius: 2px;
	font-family: var(--lt-display);
	font-weight: 800;
	font-size: 18px;
	color: #000;
	background: var(--lane, #ddd);
}

.lanes-lt__empty {
	margin: 20px 0 8px;
	text-align: center;
	font-size: 17px;
	color: var(--lt-muted);
}

.lanes-lt__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--lt-line);
	font-size: 14px;
	color: var(--lt-muted);
}

.lanes-lt__foot a {
	font-family: var(--lt-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lt-flag);
	text-decoration: none;
}

.lanes-lt__foot a:hover { color: var(--lt-text); text-decoration: underline; }

@media (max-width: 640px) {
	.lanes-lt { padding: 18px 16px 12px; }
	.lanes-lt__status { text-align: left; }
	.lanes-lt__table { font-size: 15px; }
	.lanes-lt__table th, .lanes-lt__table td { padding: 9px 8px; }
	.lanes-lt__table .is-driver, .lanes-lt__table .is-pos { font-size: 19px; }
	.lanes-lt__race { font-size: 17px; }
}

/* Footer links (results + full-screen) */
.lanes-lt__links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* Stand-alone full-screen board (?board=full) — sizes scaled to 90%, then by the zoom slider (--lt-zoom).
   Extra bottom padding keeps the footer links clear of the fixed zoom control. */
.lanes-lt-fullscreen .lanes-lt {
	--lt-zoom: 1;
	flex: 1 1 auto;
	min-height: 100vh;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	padding: calc(2.7vh * var(--lt-zoom)) calc(3.6vw * var(--lt-zoom)) calc(1.8vh * var(--lt-zoom) + 52px);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
.lanes-lt-fullscreen .lanes-lt__tablewrap { flex: 1 1 auto; }
.lanes-lt-fullscreen .lanes-lt__title { font-size: calc(clamp(25px, 4.05vw, 58px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__series { font-size: calc(clamp(13px, 1.44vw, 22px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__race { font-size: calc(clamp(14px, 1.8vw, 27px) * var(--lt-zoom)); padding: calc(10px * var(--lt-zoom)) calc(16px * var(--lt-zoom)); margin: calc(20px * var(--lt-zoom)) 0 calc(12px * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__clock { font-size: calc(clamp(16px, 2.16vw, 32px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__badge { font-size: calc(clamp(12px, 1.17vw, 18px) * var(--lt-zoom)); padding: calc(6px * var(--lt-zoom)) calc(14px * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__dot { width: calc(9px * var(--lt-zoom)); height: calc(9px * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__table { font-size: calc(clamp(14px, 1.71vw, 27px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__table th { font-size: calc(clamp(11px, 1.1vw, 17px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__table th, .lanes-lt-fullscreen .lanes-lt__table td { padding: calc(clamp(7px, .9vw, 14px) * var(--lt-zoom)) calc(clamp(7px, .9vw, 16px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__table .is-driver, .lanes-lt-fullscreen .lanes-lt__table .is-pos { font-size: calc(clamp(17px, 2.16vw, 34px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__lane { font-size: calc(16px * var(--lt-zoom)); padding: calc(3px * var(--lt-zoom)) calc(8px * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__empty { font-size: calc(17px * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__foot { font-size: calc(clamp(11px, 1vw, 15px) * var(--lt-zoom)); }
.lanes-lt-fullscreen .lanes-lt__foot a { font-size: calc(clamp(12px, 1vw, 16px) * var(--lt-zoom)); }
.lanes-lt-fullscreen:fullscreen .lanes-lt__foot [data-lt="exit"] { display: none; }

/* Zoom slider on the full-screen board (bottom-right, fades in on hover). It sets --lt-zoom on the board. */
.lanes-lt__zoom {
	position: fixed;
	right: 18px;
	bottom: 14px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 2px;
	background: rgba(11, 13, 18, .85);
	border: 1px solid rgba(255, 255, 255, .14);
	font-family: var(--lanes-display, "Barlow Condensed", sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
	opacity: .35;
	transition: opacity .2s;
}
.lanes-lt__zoom:hover, .lanes-lt__zoom:focus-within { opacity: 1; }
.lanes-lt__zoom output { min-width: 3.2em; text-align: right; color: #FFD400; font-variant-numeric: tabular-nums; }
.lanes-lt__zoom button {
	appearance: none; -webkit-appearance: none;
	width: 26px; height: 26px; padding: 0;
	border: 1px solid rgba(255, 255, 255, .25); border-radius: 2px;
	background: rgba(255, 255, 255, .06); color: #fff;
	font: 700 16px/1 var(--lanes-display, "Barlow Condensed", sans-serif);
	cursor: pointer;
}
.lanes-lt__zoom button:hover { background: #0019FF; border-color: #0019FF; }
.lanes-lt__zoom input[type="range"] {
	-webkit-appearance: none; appearance: none;
	width: 160px; height: 4px; margin: 0;
	background: rgba(255, 255, 255, .25); border-radius: 2px; outline: none;
}
.lanes-lt__zoom input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #FFD400; border: 2px solid #0B0D12; cursor: pointer; }
.lanes-lt__zoom input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #FFD400; border: 2px solid #0B0D12; cursor: pointer; }
@media (max-width: 640px) { .lanes-lt__zoom { right: 10px; bottom: 10px; } .lanes-lt__zoom input[type="range"] { width: 110px; } }
