/* Live race extras */
/* ---------- Live race extras ---------- */
.track-box { position: relative; }
.cam { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; align-items: center; border-top: 1px solid var(--line); padding: 6px 8px; margin: 8px -10px -10px; background: rgba(6, 10, 23, 0.6); }
.cam button { padding: 4px 9px; font-size: 13px; border-radius: 0; min-width: 30px; }
.cam button[aria-pressed="true"] { background: var(--hi); color: var(--asphalt); border-color: var(--hi); }
.cam .cam-sep { width: 1px; min-width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.cam span { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 40px; text-align: center; }
.live-tabs { display: flex; border-bottom: 1px solid var(--line); }
.live-tabs button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 9px 6px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.live-tabs button[aria-selected="true"] { color: var(--hi); border-bottom-color: var(--flag); }
.dot-n { display: inline-block; min-width: 18px; padding: 0 5px; background: var(--flag); color: #fff; font-size: 11px; line-height: 18px; border-radius: 9px; }
.row .gap .int, .row .gap small.int { display: block; font-size: 10px; color: var(--muted); }
.fl { color: #b98cff; font-weight: 700; }
.my-live { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.ml-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ml-pos { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 40px; line-height: 1; }
.ml-int, .ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.my-live small { display: block; font-family: var(--display); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.my-live b { font-family: var(--display); font-weight: 700; font-size: 17px; }
.my-live .ml-good { color: #3fc79a; } .my-live .ml-bad { color: #e5484d; }
.ml-chart { border: 1px solid var(--line); padding: 8px; background: var(--glass); }
.ml-chart svg { width: 100%; height: 90px; display: block; }
.ml-chart.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 22px 8px; }
.ml-chart small { margin-top: 6px; text-transform: none; letter-spacing: 0; font-family: var(--body); }
.ml-chart small i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin: 0 4px 0 2px; }
.ml-chart small i.dash { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.6) 0 4px, transparent 4px 7px); }
.ml-tire { display: flex; align-items: center; gap: 10px; }
.ml-tire .life { flex: 1; }
.ml-tire small { flex-basis: 100%; }
.ml-tire { flex-wrap: wrap; }
.race-feed { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.fd { display: grid; grid-template-columns: 34px 22px 1fr; gap: 6px; align-items: start; padding: 7px 10px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.fd-lap { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.fd.mine { background: rgba(255, 255, 255, 0.05); }
.fd-radio .fd-txt { color: #9fd6ff; }
.fd-radio .fd-txt b { color: #5ec8ff; }
.fd-dnf .fd-txt { color: #ff8c8c; }
.fd-fast .fd-txt { color: #c9a8ff; }
.fd-sc .fd-txt, .fd-yellow .fd-txt { color: #ffd60a; font-weight: 600; }
.rival-card { position: fixed; z-index: 50; width: 290px; background: #0b1226; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 12px 30px rgba(0,0,0,0.5); padding: 12px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; font-size: 13px; }
.rc-head { display: flex; gap: 10px; align-items: center; border-left: 4px solid; padding-left: 10px; }
.rc-head small { display: block; color: var(--muted); }
.rc-ovr { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 34px; line-height: 1; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rc-stats div, .rc-row div { background: var(--glass); padding: 5px 7px; }
.rc-stats small, .rc-row small { display: block; font-family: var(--display); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.rc-stats b { font-family: var(--display); font-size: 18px; margin-right: 4px; }
.rc-stats i { font-style: normal; font-size: 12px; font-weight: 700; }
.rc-stats i.good { color: #3fc79a; } .rc-stats i.bad { color: #e5484d; }
.rc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.rc-row b { font-family: var(--display); font-size: 15px; }
.rc-crew { grid-column: 1 / -1; }
.rc-sum { margin: 0; color: var(--fg); font-size: 12px; }
@media (max-width: 560px) { .cam { justify-content: center; } }
