/* Трансляция гонки, вид 2 (RL1). Claude Live, 20.11.2026. Во всю ширину телефона, токены Live (--tl-*),
   тёмная тема TE основная, светлая TRS: белый, зелёный, чёрный; красный только у живого. */
:root[data-live-ui="v2"] { --rl-live: #ff4a4a; --rl-up: #b1eec2; --rl-down: #ff948e; --rl-soft: rgba(255, 255, 255, .06); }
:root[data-live-ui="v2"][data-theme="trs"] { --rl-live: #e5383b; --rl-up: #315f50; --rl-down: #c0392b; --rl-soft: #f3f5f4; }

.rl { position: relative; box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: 4px 16px 40px; font-family: var(--tl-font); color: var(--tl-text); }
.rl:not(.is-ready) { min-height: 100vh; min-height: 100dvh; }
.rl *, .rl *::before, .rl *::after { box-sizing: border-box; }
.rl a { color: inherit; }

/* Загрузка: бегун и полоса, место под шапку занято сразу. */
/* Заставка лежит слоем поверх: содержимое появляется на своём месте, без сдвига. */
.rl-load { position: absolute; left: 16px; right: 16px; top: 4px; z-index: 2; padding: 18px 0 8px; background: var(--tl-bg); transition: opacity .32s ease; }
.rl.is-ready .rl-load { opacity: 0; pointer-events: none; }
.rl-load-title { margin: 0 0 4px; font-weight: 300; font-size: clamp(26px, 7vw, 40px); letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-red); }
.rl-load-note { margin: 0 0 18px; color: var(--tl-muted); font-size: 13px; }
.rl-runner { position: relative; height: 64px; margin: 6px 0 10px; overflow: hidden; }
.rl-runner svg { position: absolute; bottom: 6px; left: 0; width: 46px; height: 56px; animation: rl-run-x 2.4s linear infinite; }
.rl-runner svg * { fill: none; stroke: var(--tl-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rl-runner .rl-leg-a { transform-origin: 23px 31px; animation: rl-leg .48s ease-in-out infinite alternate; }
.rl-runner .rl-leg-b { transform-origin: 23px 31px; animation: rl-leg .48s ease-in-out infinite alternate-reverse; }
.rl-runner .rl-arm-a { transform-origin: 23px 17px; animation: rl-leg .48s ease-in-out infinite alternate-reverse; }
.rl-runner .rl-arm-b { transform-origin: 23px 17px; animation: rl-leg .48s ease-in-out infinite alternate; }
.rl-runner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--tl-line-2); }
@keyframes rl-run-x { from { transform: translateX(-50px); } to { transform: translateX(calc(100vw + 10px)); } }
@keyframes rl-leg { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
.rl-load-bar { height: 3px; border-radius: 2px; background: var(--tl-line); overflow: hidden; }
.rl-load-bar i { display: block; height: 100%; background: var(--rl-live); transform: scaleX(.06); transform-origin: 0 50%; transition: transform .35s ease; }
.rl-load-sk { margin-top: 18px; display: grid; gap: 10px; }
.rl-load-sk span { display: block; height: 92px; border-radius: var(--tl-r3); background: var(--rl-soft); }
.rl-load-sk span:first-child { height: 200px; }
@media (prefers-reduced-motion: reduce) { .rl-runner svg, .rl-runner svg * { animation: none !important; } }

.rl-view { opacity: 0; transition: opacity .32s ease; }
.rl.is-ready .rl-view { opacity: 1; }
.rl.is-ready .rl-load[hidden] { display: none; }
.rl-part[hidden] { display: none; }
.rl-part-tabs { margin-top: 12px; }
.rl-cols { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.rl-col { display: contents; }
.rl-part-ours { order: 1; } .rl-part-board { order: 2; } .rl-part-video { order: 3; }
.rl-part-profile { order: 4; } .rl-part-feed { order: 5; } .rl-part-more { order: 6; }
/* Идёт видеоэфир: плеер первым. */
.rl[data-onair] .rl-part-video { order: 0; }

/* Шапка эфира. */
.rl-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 6px; }
.rl-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border: 1px solid var(--tl-line-2); border-radius: 999px; font-size: 11px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-ink); }
.rl-pill i, .rl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rl-live); box-shadow: 0 0 0 0 var(--rl-live); animation: rl-pulse 1.6s ease-out infinite; flex: 0 0 auto; display: inline-block; }
.rl-pill-live { border-color: var(--rl-live); }
@keyframes rl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rl-live) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.rl-clock { font-size: 13px; color: var(--tl-muted); font-variant-numeric: tabular-nums; }
.rl-title { margin: 2px 0 2px; font-weight: 300; font-size: clamp(30px, 9vw, 52px); line-height: 1.02; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-red); overflow-wrap: anywhere; }
.rl-sub { margin: 4px 0 2px; font-size: 15px; color: var(--tl-ink); }
.rl-meta { margin: 0; font-size: 12.5px; color: var(--tl-muted); line-height: 1.5; }
.rl-meta b { font-weight: 400; color: var(--tl-ink); font-variant-numeric: tabular-nums; }

/* Гонки недели (страница без гонки в адресе). */
.rl-pick { margin: 6px 0 4px; }
.rl-pick-h { margin: 0 0 6px; font-size: 11.5px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-muted); }
.rl-races { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; }
.rl-races::-webkit-scrollbar { display: none; }
.rl-races a { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; max-width: 220px; padding: 8px 14px; border: 1px solid var(--tl-line-2); border-radius: var(--tl-r3); text-decoration: none; scroll-snap-align: start; }
.rl-races a b { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; font-size: 14px; color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-races a small { font-size: 11.5px; color: var(--tl-muted); white-space: nowrap; }
.rl-races a.is-on { border-color: var(--tl-ink); background: var(--rl-soft); }

/* Дистанции. */
.rl-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.rl-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 58px; padding: 9px 12px; border: 1px solid var(--tl-line-2); border-radius: var(--tl-r3); background: transparent; color: var(--tl-muted); font: inherit; text-align: left; cursor: pointer; }
.rl-tab.is-on { border-color: var(--tl-ink); color: var(--tl-ink); background: var(--rl-soft); }
.rl-tab-name { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--tl-ink); overflow-wrap: anywhere; }
.rl-tab-sub { font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }

/* Карточки. */
.rl-card { position: relative; border: 1px solid var(--tl-line); border-radius: var(--tl-r3); background: var(--tl-panel); padding: 14px; }
.rl-card + .rl-card { margin-top: 12px; }
.rl-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rl-h { margin: 0; font-weight: 400; font-size: 12px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-muted); }
.rl-h small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.rl-h-sec { margin: 4px 2px 10px; }
.rl-note { margin: 8px 0 0; font-size: 11.5px; color: var(--tl-faint); line-height: 1.45; }
.rl-k { margin: 0; font-size: 12px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-muted); }
.rl-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; text-decoration: none; color: var(--tl-ink); border-bottom: 1px solid var(--tl-line-2); }
.rl-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Видео: обложка до нажатия, место 16:9 занято сразу. */
.rl-video { padding: 0; overflow: hidden; }
.rl-video-box { position: relative; aspect-ratio: 16 / 9; background: #000; }
.rl-video-box img, .rl-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rl-video-box img { opacity: .82; }
.rl-video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rl-video-play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.rl-video-live { position: absolute; left: 10px; top: 10px; background: rgba(0, 0, 0, .6); color: #fff; }
.rl-video-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 12px; }
.rl-video-cap div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rl-video-cap b { font-weight: 400; font-size: 13.5px; color: var(--tl-ink); overflow-wrap: anywhere; }
.rl-video-cap span { font-size: 12px; color: var(--tl-muted); }

/* Атлет. */
.rl-ath.is-focus { border-color: var(--tl-line-2); }
.rl-ath-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rl-ath-head h3 { margin: 0; font-weight: 400; font-size: 20px; line-height: 1.15; color: var(--tl-ink); overflow-wrap: anywhere; }
.rl-ath-head p { margin: 3px 0 0; font-size: 12px; color: var(--tl-muted); }
.rl-cheers { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border: 1px solid var(--tl-line-2); border-radius: 999px; text-decoration: none; font-size: 13px; flex: 0 0 auto; }
.rl-cheers svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 12px 0 12px; border: 1px solid var(--tl-line); border-radius: var(--tl-r2); overflow: hidden; background: var(--tl-line); }
.rl-tile { position: relative; padding: 10px 11px 11px; background: var(--tl-bg); min-width: 0; }
.rl-tile span { display: block; font-size: 11px; color: var(--tl-muted); letter-spacing: .02em; overflow-wrap: anywhere; }
.rl-tile b { display: block; margin-top: 3px; font-weight: 300; font-size: 30px; line-height: 1.05; color: var(--tl-ink); font-variant-numeric: tabular-nums; }
.rl-tile small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--tl-faint); }
.rl-tile em { position: absolute; right: 10px; top: 28px; }
/* 21.11: нечётная последняя плитка (до первой отсечки только «В пути») на всю ширину, без пустой серой клетки. */
.rl-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
em.is-up, em.is-down { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12px; }
em.is-up { color: var(--rl-up); } em.is-down { color: var(--rl-down); }
em.is-up svg, em.is-down svg { width: 9px; height: 9px; fill: currentColor; }
.rl-trackbar { position: relative; height: 6px; margin: 4px 0 6px; border-radius: 3px; background: var(--tl-line); }
.rl-trackbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--tl-ink); }
.rl-trackbar u { position: absolute; top: -3px; width: 1px; height: 12px; background: var(--tl-line-2); }
.rl-trackbar s { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--rl-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rl-live) 30%, transparent); }
.rl-trackcap { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--tl-muted); }
.rl-trackcap b { font-weight: 400; color: var(--tl-ink); }
.rl-where { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--tl-text); }
.rl-where b { font-weight: 400; color: var(--tl-ink); }
.rl-ago { color: var(--tl-muted); white-space: nowrap; }
.rl-next { margin: 2px 0 0; font-size: 12.5px; color: var(--tl-muted); line-height: 1.5; }
.rl-next b { font-weight: 400; color: var(--tl-ink); }
.rl-gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rl-gap { padding: 9px 10px; border: 1px solid var(--tl-line); border-radius: var(--tl-r2); min-width: 0; }
.rl-gap span { display: block; font-size: 11px; color: var(--tl-muted); }
.rl-gap b { display: block; margin-top: 2px; font-weight: 400; font-size: 18px; color: var(--tl-ink); font-variant-numeric: tabular-nums; }
.rl-gap em { margin-top: 2px; }
/* 21.11: время «12:28:07» и разрыв «+2:26:58» целиком помещаются в плитку и на 320 px (раньше цифры уходили за край
   и под соседнюю плитку). Размер от ширины самой плитки; где единиц контейнера нет, остаётся прежний. */
.rl-tile, .rl-gap { container-type: inline-size; }
.rl-tile b.is-time { font-size: min(30px, 20.5cqi); }
.rl-gap.rl-gap-main b { font-size: min(22px, 18cqi); }
.rl-splits { margin-top: 12px; border-top: 1px solid var(--tl-line); }
.rl-splits summary { display: flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-muted); cursor: pointer; list-style: none; }
.rl-splits summary::-webkit-details-marker { display: none; }
.rl-splits summary::after { content: ""; width: 7px; height: 7px; margin-left: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.rl-splits[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.rl-splits table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rl-splits th { text-align: left; font-weight: 400; font-size: 10.5px; color: var(--tl-faint); padding: 0 6px 6px 0; }
.rl-splits td { padding: 7px 6px 7px 0; border-top: 1px solid var(--tl-line); vertical-align: top; color: var(--tl-ink); }
.rl-splits td small { display: block; font-size: 10.5px; color: var(--tl-muted); }
.rl-acts, .rl-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rl-act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--tl-line-2); border-radius: var(--tl-r3); text-decoration: none; font-size: 12.5px; letter-spacing: .03em; color: var(--tl-ink); }
.rl-act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Будущая дистанция. */
.rl-soon-in { margin: 4px 0 2px; font-weight: 300; font-size: clamp(30px, 9vw, 46px); line-height: 1.05; color: var(--tl-ink); font-variant-numeric: tabular-nums; }
.rl-soon-at, .rl-soon-wx { margin: 4px 0 0; font-size: 13px; color: var(--tl-muted); }
.rl-soon .rl-h { margin-top: 16px; }
.rl-names { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 1px; }
.rl-names li { padding: 10px 0; border-top: 1px solid var(--tl-line); font-size: 15px; color: var(--tl-ink); overflow-wrap: anywhere; }

/* Профиль дистанции. */
.rl-profile svg { display: block; width: 100%; height: 176px; overflow: visible; }
.rl-area { fill: color-mix(in srgb, var(--tl-ink) 9%, transparent); }
.rl-line { fill: none; stroke: var(--tl-ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .85; }
.rl-cp { stroke: var(--tl-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rl-km { fill: var(--tl-faint); font-size: 22px; font-family: var(--tl-font); }
.rl-mk line { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .6; }
.rl-mk circle { fill: currentColor; stroke: var(--tl-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rl-mk text { fill: currentColor; font-size: 24px; font-family: var(--tl-font); }
.rl-mk.is-ours { color: var(--rl-live); }
.rl-mk.is-lead { color: var(--tl-muted); }
.rl-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tl-muted); }
.rl-legend i { width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.rl-legend i.is-ours { background: var(--rl-live); }
.rl-legend i.is-lead { background: var(--tl-muted); }

/* Топ-10. */
.rl-seg { display: inline-grid; grid-auto-flow: column; gap: 0; border: 1px solid var(--tl-line-2); border-radius: var(--tl-r3); overflow: hidden; margin-bottom: 8px; }
.rl-seg button { min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--tl-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.rl-seg button.is-on { background: var(--rl-soft); color: var(--tl-ink); }
.rl-seg button + button { border-left: 1px solid var(--tl-line-2); }
.rl-top { list-style: none; margin: 0; padding: 0; }
.rl-top li { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--tl-line); }
.rl-top li.is-ours { box-shadow: inset 2px 0 0 var(--rl-live); padding-left: 8px; margin-left: -8px; background: color-mix(in srgb, var(--rl-live) 7%, transparent); }
.rl-pl { font-size: 15px; color: var(--tl-ink); font-variant-numeric: tabular-nums; text-align: right; padding-right: 2px; }
.rl-mv { font-size: 11px; }
.rl-nm { min-width: 0; }
.rl-nm b { display: block; font-weight: 400; font-size: 14px; color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-nm small, .rl-tm small { display: block; font-size: 11px; color: var(--tl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-tm { text-align: right; font-variant-numeric: tabular-nums; }
.rl-tm b { display: block; font-weight: 400; font-size: 13.5px; color: var(--tl-ink); }
.rl-top-extra { margin-top: 6px; border-top: 1px dashed var(--tl-line-2); }
.rl-board-wait { display: grid; gap: 8px; }
.rl-board-wait { gap: 1px; }
.rl-sk-row { height: 52px; border-top: 1px solid var(--tl-line); background: linear-gradient(90deg, transparent, var(--rl-soft), transparent); background-size: 200% 100%; animation: rl-sheen 1.4s linear infinite; }
@keyframes rl-sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Лента. */
.rl-feed ol { list-style: none; margin: 8px 0 0; padding: 0; }
.rl-feed li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--tl-line); font-size: 13px; line-height: 1.45; color: var(--tl-text); }
.rl-feed time { color: var(--tl-muted); font-variant-numeric: tabular-nums; }
.rl-feed b { font-weight: 400; color: var(--tl-ink); }
.rl-empty p { color: var(--tl-muted); }

/* Компьютер: видео и топ-10 слева, наши и профиль справа. */
@media (min-width: 1000px) {
  .rl { padding: 8px 24px 48px; }
  .rl-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; }
  .rl-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .rl-tabs { grid-auto-columns: minmax(0, 320px); }
  .rl-card + .rl-card { margin-top: 14px; }
}

/* Соперники рядом: лестница мест с именами, наш выделен. */
.rl-gap-main b { font-size: 22px; }
.rl-ladder { margin-top: 12px; border: 1px solid var(--tl-line); border-radius: var(--tl-r2); overflow: hidden; }
.rl-ladder-h { margin: 0; padding: 9px 11px; font-size: 11px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--tl-muted); border-bottom: 1px solid var(--tl-line); }
.rl-ladder ol { list-style: none; margin: 0; padding: 0; }
.rl-ladder li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 50px; padding: 6px 11px; border-top: 1px solid var(--tl-line); }
.rl-ladder li:first-child { border-top: 0; }
.rl-ladder li.is-me { background: color-mix(in srgb, var(--rl-live) 9%, transparent); box-shadow: inset 3px 0 0 var(--rl-live); }
.rl-lp { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--tl-ink); text-align: center; }
.rl-ln { min-width: 0; }
.rl-ln b { display: block; font-weight: 400; font-size: 14px; color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-ln small { display: block; font-size: 11px; color: var(--tl-muted); }
.rl-lg { text-align: right; font-size: 12px; color: var(--tl-muted); line-height: 1.3; }
.rl-lg b { font-weight: 400; font-size: 14px; color: var(--tl-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-lg b.rl-lg-me { font-size: 12px; letter-spacing: var(--tl-caps); text-transform: uppercase; color: var(--rl-live); }
/* 21.11: время разрыва строкой под «впереди на», колонка узкая: имя соперника на телефоне видно целиком, не «Da…». */
.rl-lg { max-width: 118px; }
.rl-lg b { display: block; }
.rl-act-wide { display: flex; justify-content: center; width: 100%; margin-top: 12px; }
.rl-act-wide svg { width: 15px; height: 15px; }
.rl-video-cap .rl-dot { margin-right: 4px; vertical-align: 1px; }

/* Профиль: фигурки бегунов поверх графика. */
.rl-prof { position: relative; }
.rl-prof svg { display: block; width: 100%; height: 190px; }
/* 21.11: подписи рядами над графиком (раскладка в race-live.js), от подписи к фигурке тонкая линия. */
.rl-prof svg.rl-leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rl-leads path { fill: none; stroke-width: 1; }
.rl-leads .is-ours { stroke: var(--rl-live); opacity: .6; }
.rl-leads .is-lead { stroke: var(--tl-muted); opacity: .55; }
.rl-prof.is-laid .rl-fig b { position: absolute; margin: 0; background: var(--tl-panel); box-shadow: 0 0 0 1px currentColor; }
.rl-fig { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); color: var(--tl-muted); pointer-events: none; }
.rl-fig.is-ours { z-index: 2; color: var(--rl-live); }
.rl-fig svg { width: 20px; height: 24px; display: block; }
.rl-fig svg * { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rl-fig b { margin-bottom: calc(var(--row, 0) * 15px + 1px); padding: 0 4px; border-radius: 3px; background: color-mix(in srgb, var(--tl-bg) 72%, transparent); font-weight: 400; font-size: 11px; line-height: 14px; white-space: nowrap; }
.rl-fig.is-ours .rl-leg-a, .rl-anim-wait .rl-leg-a { transform-origin: 23px 31px; animation: rl-leg .5s ease-in-out infinite alternate; }
.rl-fig.is-ours .rl-leg-b, .rl-anim-wait .rl-leg-b { transform-origin: 23px 31px; animation: rl-leg .5s ease-in-out infinite alternate-reverse; }
.rl-fig.is-ours .rl-arm-a, .rl-anim-wait .rl-arm-a { transform-origin: 23px 17px; animation: rl-leg .5s ease-in-out infinite alternate-reverse; }
.rl-fig.is-ours .rl-arm-b, .rl-anim-wait .rl-arm-b { transform-origin: 23px 17px; animation: rl-leg .5s ease-in-out infinite alternate; }
.rl-prof-km { position: relative; height: 16px; margin-top: 2px; }
.rl-prof-km span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; color: var(--tl-faint); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .rl-fig *, .rl-anim-wait * { animation: none !important; } }

/* Анимация гонки на странице: место занято сразу, 9:16 на телефоне, 16:9 на компьютере. */
.rl-anim-box { position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--tl-r2); overflow: hidden; background: #050000; }
.rl-anim-box.is-wide { max-width: none; aspect-ratio: 16 / 9; }
.rl-anim-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #050000; opacity: 0; transition: opacity .35s ease; }
.rl-anim-box[data-state="ready"] iframe { opacity: 1; }
.rl-anim-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); }
.rl-anim-wait small { font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.rl-anim-box[data-state="ready"] .rl-anim-wait, .rl-anim-box[data-state="failed"] .rl-anim-wait { display: none; }
.rl-anim-fail { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; color: rgba(255, 255, 255, .85); }
.rl-anim-fail small { font-size: 13px; }
.rl-anim-fail .rl-act { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; font: inherit; font-size: 12.5px; cursor: pointer; }
.rl-anim-box[data-state="failed"] .rl-anim-fail { display: flex; }
.rl-anim-box[data-state="failed"] iframe { display: none; }
.rl-anim-wait svg { width: 40px; height: 48px; }
.rl-anim-wait svg * { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* «Поделиться» значком в шапке эфира. */
.rl-hero-top { position: relative; padding-right: 52px; }
.rl-share { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--tl-line-2); border-radius: var(--tl-r3); background: transparent; color: var(--tl-ink); cursor: pointer; }
.rl-share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rl-share.is-done { border-color: var(--rl-up); color: var(--rl-up); }

/* Наши сейчас: короткая таблица с переходом к карточке. */
.rl-sum ol { list-style: none; margin: 6px 0 0; padding: 0; }
.rl-sum li + li { border-top: 1px solid var(--tl-line); }
.rl-sum a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; text-decoration: none; }
.rl-sum-pl { font-size: 17px; color: var(--tl-ink); text-align: center; font-variant-numeric: tabular-nums; }
.rl-sum-nm { min-width: 0; }
.rl-sum-nm b { display: block; font-weight: 400; font-size: 14px; color: var(--tl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-sum-nm small { display: block; font-size: 11px; color: var(--tl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-sum-gp { font-size: 13px; color: var(--tl-ink); font-variant-numeric: tabular-nums; }

/* Место по отсечкам. */
.rl-trend { margin-top: 12px; border: 1px solid var(--tl-line); border-radius: var(--tl-r2); padding: 0 11px 10px; }
.rl-trend .rl-ladder-h { margin: 0 -11px 8px; }
.rl-tr-box { position: relative; height: 84px; margin: 6px 6px 2px; }
.rl-tr-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rl-tr-box path { fill: none; stroke: var(--rl-live); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rl-tr-pt { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--tl-bg); border: 1.5px solid var(--rl-live); display: grid; place-items: center; }
.rl-tr-pt b { font-weight: 400; font-size: 11px; color: var(--tl-ink); font-variant-numeric: tabular-nums; }
/* 21.11: больше 10 отсечек: числа только при смене места и в маленьком круге, остальные точки без чисел. */
.rl-tr-pt.is-c { width: auto; min-width: 15px; height: 15px; margin: 0; padding: 0 1px; border-radius: 8px; transform: translate(-50%, -50%); }
.rl-tr-pt.is-c b { font-size: 9px; }
.rl-tr-pt.is-q { width: 7px; height: 7px; margin: 0; border: 0; background: var(--rl-live); transform: translate(-50%, -50%); }
.rl-tr-km { position: relative; height: 16px; margin: 0 6px 4px; }
.rl-tr-km span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 10.5px; color: var(--tl-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* T5 22.11: место чтения держит сама страница (Safari удерживать прокрутку не умеет), браузерное удержание выключено,
   чтобы не было двойной поправки. Нет связи: плашка поверх страницы внизу, разметку не сдвигает. */
.rl-anchor, .rl-anchor body { overflow-anchor: none; }
.rl-net { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid var(--tl-line-2); border-radius: var(--tl-r3); background: linear-gradient(var(--tl-panel), var(--tl-panel)), var(--tl-bg); color: var(--tl-ink); font-size: 12.5px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); pointer-events: none; }
.rl-net[hidden] { display: none; }
.rl-net::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--rl-live); vertical-align: 1px; }

/* T6 22.11: название гонки не рвётся посреди слова. Самое длинное слово (--rl-w знаков, моноширинный шрифт с разрядкой
   заглавных около 0,7 em на знак) помещается в ширину шапки; короткие названия остаются прежнего размера. */
.rl-part-hero { container-type: inline-size; }
.rl-title[style*="--rl-w"] { font-size: min(clamp(30px, 9vw, 52px), calc(100cqi / (var(--rl-w) * .7))); }

/* EH1 24.11: поля страницы и общая обвязка как на остальных страницах Live. На трансляции нет общего styles.css:
   у body оставался отступ браузера 8 px, а шапка и меню считали размер без рамки (content-box). При переходе
   с «Гонок» шапка и меню сдвигались на 8 px, шапка была выше на 2 px (кабинет 46 вместо 44). */
body { margin: 0; }
:is([data-live-common-header], [data-live-common-menu]),
:is([data-live-common-header], [data-live-common-menu]) *,
:is([data-live-common-header], [data-live-common-menu]) *::before,
:is([data-live-common-header], [data-live-common-menu]) *::after { box-sizing: border-box; }

/* Public broadcast: compact title and a pre-start card in the existing feed lane. */
#rl .rl-title,
#rl .rl-title[style*="--rl-w"] {
  margin: 8px 0 5px;
  font-size: clamp(23px, 5.9vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-transform: none;
  color: var(--tl-ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#rl .rl-part-feed:has(.rl-prestart) { order: 0; }
#rl .rl-prestart h2,
#rl .rl-prestart h3,
#rl .rl-start-participants h2 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tl-ink);
  margin: 0;
}
#rl .rl-prestart > p { margin: 10px 0 0; font-size: 13px; line-height: 1.65; }
#rl .rl-prestart-facts { display: grid; gap: 12px; margin: 16px 0; }
#rl .rl-prestart-facts > div { min-width: 0; }
#rl .rl-prestart-facts dt { font-size: 11px; color: var(--tl-muted); line-height: 1.4; margin-bottom: 3px; }
#rl .rl-prestart-facts dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tl-ink); overflow-wrap: anywhere; }
#rl .rl-prestart-note { padding-top: 12px; border-top: 1px solid var(--tl-line); color: var(--tl-muted); }
#rl .rl-prestart-sources { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; }
#rl .rl-prestart-sources a { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; line-height: 1.4; text-underline-offset: 3px; }
#rl .rl-prestart-favourites { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tl-line); }
#rl .rl-prestart-favourites ul { padding-left: 18px; font-size: 13px; line-height: 1.6; }
#rl .rl-prestart-favourites li + li { margin-top: 8px; }
#rl .rl-start-participants .rl-names { margin: 10px 0 0; }
#rl .rl-start-participants .rl-note { margin: 12px 0 0; line-height: 1.55; }
@media (min-width: 540px) {
  #rl .rl-prestart-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
@media (min-width: 1000px) {
  #rl .rl-title,
  #rl .rl-title[style*="--rl-w"] { max-width: 920px; text-wrap: pretty; }
  #rl .rl-prestart { padding: 20px; }
}
