.vfr-lt {
	--lt-bg: #111317;
	--lt-panel: #1a1d23;
	--lt-line: #2a2e36;
	--lt-text: #e9ebef;
	--lt-muted: #8b919c;
	--lt-red: #e10600;
	--lt-purple: #b26bff;
	--lt-green: #2ecc71;
	background: var(--lt-bg);
	color: var(--lt-text);
	border-radius: 10px;
	padding: 18px;
	font-family: "Titillium Web", "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.35;
	border-top: 4px solid var(--lt-red);
	margin: 1.5em 0;
}
.vfr-lt * { box-sizing: border-box; }

.vfr-lt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vfr-lt__title h2 { margin: 4px 0 0; color: #fff; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.vfr-lt__live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--lt-red); }
.vfr-lt__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lt-red); animation: vfr-lt-pulse 1.4s infinite; }
.vfr-lt.is-idle .vfr-lt__live { color: var(--lt-muted); }
.vfr-lt.is-idle .vfr-lt__dot { background: var(--lt-muted); animation: none; }
.vfr-lt.is-offline .vfr-lt__live { color: #f39c12; }
.vfr-lt.is-offline .vfr-lt__dot { background: #f39c12; animation: none; }
@keyframes vfr-lt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.vfr-lt__clock { font-family: "SFMono-Regular", Consolas, monospace; font-size: 28px; font-weight: 700; background: var(--lt-panel); padding: 6px 14px; border-radius: 6px; color: #fff; }

.vfr-lt__session { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.vfr-lt__session > div { background: var(--lt-panel); border-radius: 6px; padding: 8px 12px; }
.vfr-lt__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--lt-muted); }
.vfr-lt__session strong { font-size: 15px; color: #fff; }

.vfr-lt__tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vfr-lt__table { width: 100%; border-collapse: collapse; min-width: 820px; margin: 0; background: transparent; border: 0; }
.vfr-lt__table--small { min-width: 480px; }
.vfr-lt__table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--lt-muted); padding: 8px 10px; border: 0; border-bottom: 1px solid var(--lt-line); background: transparent; white-space: nowrap; }
.vfr-lt__table td { padding: 9px 10px; border: 0; border-bottom: 1px solid var(--lt-line); background: transparent; color: var(--lt-text); white-space: nowrap; vertical-align: middle; }
.vfr-lt__table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .025); }
.vfr-lt__table tbody tr:hover td { background: rgba(225, 6, 0, .08); }
.vfr-lt__table tr.is-inpit td { opacity: .65; }

.vfr-lt .c-pos { width: 48px; text-align: center; font-weight: 700; font-size: 16px; color: #fff; }
.vfr-lt tbody tr:nth-child(1) .c-pos { color: #ffd700; }
.vfr-lt tbody tr:nth-child(2) .c-pos { color: #c0c0c0; }
.vfr-lt tbody tr:nth-child(3) .c-pos { color: #cd7f32; }
.vfr-lt .c-time, .vfr-lt .c-gap, .vfr-lt .c-num { font-family: "SFMono-Regular", Consolas, monospace; }
.vfr-lt .c-num { text-align: right; }
.vfr-lt th.c-num { text-align: right; }
.vfr-lt .c-car { color: var(--lt-muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.vfr-lt__num { display: inline-block; min-width: 34px; font-weight: 700; color: var(--lt-red); margin-right: 6px; }
.vfr-lt__name { font-weight: 700; color: #fff; text-transform: uppercase; }
.vfr-lt__team { display: block; font-size: 12px; color: var(--lt-muted); }
.vfr-lt__badge { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.vfr-lt__badge.is-pit { background: #2d6cdf; color: #fff; }
.vfr-lt__badge.is-flag { background: transparent; }

.vfr-lt__tyre { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 10px; border: 2px solid var(--lt-muted); font-size: 12px; font-weight: 700; text-align: center; }
.vfr-lt__tyre.is-soft { border-color: #e10600; }
.vfr-lt__tyre.is-medium { border-color: #ffd12e; }
.vfr-lt__tyre.is-hard { border-color: #f0f0f0; }
.vfr-lt__tyre.is-inter { border-color: #43b047; }
.vfr-lt__tyre.is-wet { border-color: #0067ad; }

.vfr-lt__purple { color: var(--lt-purple) !important; font-weight: 700; }
.vfr-lt__empty { text-align: center; color: var(--lt-muted); padding: 28px 10px !important; white-space: normal !important; }

.vfr-lt__left { margin-top: 18px; }
.vfr-lt__left h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--lt-muted); margin: 0 0 6px; }
.vfr-lt__foot { margin-top: 12px; font-size: 11px; color: var(--lt-muted); text-align: right; }

@media (max-width: 600px) {
	.vfr-lt { padding: 12px; }
	.vfr-lt__title h2 { font-size: 20px; }
	.vfr-lt__clock { font-size: 20px; }
}

/* ---- Layout con mappa ---- */
.vfr-lt__body { display: block; }
.vfr-lt__main { min-width: 0; }
.vfr-lt__mapcard { background: var(--lt-panel); border-radius: 8px; padding: 12px; margin-top: 16px; }
.vfr-lt__mapcard[hidden] { display: none; }
.vfr-lt__map { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.vfr-lt__map img { display: block; width: 100%; height: auto; max-width: none; border: 0; box-shadow: none; margin: 0; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }
@media (min-width: 1100px) {
	.vfr-lt__body.has-map.map-on { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
	.vfr-lt__body.has-map .vfr-lt__mapcard { margin-top: 0; position: sticky; top: 20px; }
}

/* ---- Auto sulla mappa ---- */
.vfr-lt__dots { position: absolute; inset: 0; pointer-events: none; }
.vfr-lt__cardot {
	position: absolute;
	width: 22px; height: 22px;
	margin: -11px 0 0 -11px;
	border-radius: 50%;
	background: var(--lt-red);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
	color: #fff;
	font: 700 11px/18px "Titillium Web", Arial, sans-serif;
	text-align: center;
	pointer-events: auto;
	cursor: default;
	transition: left var(--lt-move, 3000ms) linear, top var(--lt-move, 3000ms) linear;
}
.vfr-lt__cardot.no-anim { transition: none; }
.vfr-lt__cardot.is-leader { background: #ffd700; color: #111; }
.vfr-lt__cardot.is-pit { background: #2d6cdf; }
.vfr-lt__cardot-name {
	position: absolute; left: 24px; top: 1px;
	padding: 0 4px; border-radius: 3px;
	background: rgba(0, 0, 0, .75); color: #fff;
	font-size: 10px; line-height: 16px; white-space: nowrap;
}

/* ---- Schede multiserver ---- */
.vfr-lt__tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.vfr-lt__tab {
	flex: 0 0 auto;
	display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center;
	min-width: 120px; padding: 7px 12px; margin: 0;
	background: var(--lt-panel); color: var(--lt-text);
	border: 1px solid var(--lt-line); border-bottom: 3px solid transparent; border-radius: 6px;
	font: inherit; text-align: left; cursor: pointer; line-height: 1.2; box-shadow: none; text-transform: none;
}
.vfr-lt__tab:hover { border-color: #3a3f49; background: #20242b; color: var(--lt-text); }
.vfr-lt__tab.is-active { border-bottom-color: var(--lt-red); background: #22262e; }
.vfr-lt__tab:focus-visible { outline: 2px solid var(--lt-red); outline-offset: 1px; }
.vfr-lt__tabdot { grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: #555b66; }
.vfr-lt__tabname { font-weight: 700; font-size: 13px; text-transform: uppercase; color: #fff; white-space: nowrap; }
.vfr-lt__tabinfo { font-size: 11px; color: var(--lt-muted); white-space: nowrap; min-height: 13px; }
.vfr-lt__tab.st-live .vfr-lt__tabdot { background: var(--lt-red); animation: vfr-lt-pulse 1.4s infinite; }
.vfr-lt__tab.st-live .vfr-lt__tabinfo { color: #ff6b66; }
.vfr-lt__tab.st-on .vfr-lt__tabdot { background: var(--lt-green); }
.vfr-lt__tab.st-off { opacity: .6; }
.vfr-lt.is-stopped .vfr-lt__live { color: var(--lt-muted); }
.vfr-lt.is-stopped .vfr-lt__dot { background: var(--lt-muted); animation: none; }
.vfr-lt__tab.is-active { opacity: 1; }

.vfr-lt__badge.is-sc { background: #ffb400; color: #111; }
.vfr-lt__badge.is-spec { background: #555b66; color: #fff; }
.vfr-lt__cardot.is-sc { background: #ffb400; color: #111; }

.vfr-lt__session strong { overflow-wrap: anywhere; }
