/* Telemetria da F1 (página do Master e amostra da página inicial) */
.tl-a i, .tl-b i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; background: #e3343c; }
.tl-b i { background: #4fa3ff; }
.tl-legenda { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 14px; font-size: 16px; }
.tl-legenda b { font-variant-numeric: tabular-nums; }
.tl-dif { margin-left: auto; color: var(--aco); }
.tl-dif b { color: var(--cromo); }
.tl-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tl-corpo.sem-mapa { grid-template-columns: minmax(0, 1fr); }
.tl-graficos { position: relative; cursor: crosshair; touch-action: pan-y; }
.tl-painel { margin-bottom: 10px; }
.tl-painel svg { display: block; width: 100%; background: var(--carbono); }
.tl-rot { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aco); }
.tl-rot small { font-weight: 500; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.tl-zero { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 4 4; }
.tl-cursor { stroke: rgba(255, 255, 255, .6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-painel path { vector-effect: non-scaling-stroke; }
.tl-eixo { display: flex; justify-content: space-between; font-size: 12px; color: var(--aco); }
.tl-mapa svg { display: block; width: 100%; height: auto; background: var(--carbono); }
.tl-ponto { fill: #fff; stroke: #060707; stroke-width: 2; }
.tl-mapa-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 13px; color: var(--aco); }
.tl-leitura { position: sticky; bottom: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; padding: 10px 14px; background: rgba(20, 22, 25, .96); border: 1px solid var(--linha); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .tl-corpo { grid-template-columns: minmax(0, 1fr); }
  .tl-mapa { max-width: 360px; }
  .tl-dif { margin-left: 0; width: 100%; }
}

/* Amostra na página inicial */
.tl-home .tl-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.tl-home .tl-sessao { margin: 0; color: var(--aco); }
.tl-home .tl-sessao b { color: var(--cromo); }
.tl-chamada { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 16px 18px; background: var(--carbono); box-shadow: inset 3px 0 0 var(--sangue-vivo); }
.tl-chamada p { margin: 0; color: #c3c8cd; }
.tl-chamada p b { color: var(--cromo); }

/* Página do Master: escolhas */
.tl-escolha { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 22px; }
.tl-escolha select { min-width: 0; width: 100%; }
.tl-escolha .pl-botao { grid-column: 1 / -1; justify-self: start; width: auto; padding: 0 28px; }
.tl-escolha label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aco); }
.tl-escolha label.tl-a-rot { color: #ff6b72; }
.tl-escolha label.tl-b-rot { color: #7dbcff; }
.tl-escolha select { height: 42px; padding: 0 10px; background: var(--carbono); border: 1px solid var(--linha); color: var(--cromo); font: 500 15px var(--texto); text-transform: none; letter-spacing: 0; }
.tl-escolha button { height: 42px; }
@media (max-width: 900px) {
  .tl-escolha { grid-template-columns: 1fr 1fr; }
  .tl-escolha label:first-child, .tl-escolha button { grid-column: 1 / -1; }
}
.tl-status { color: var(--aco); }
.tl-chamada .pl-botao { display: inline-block; width: auto; padding: 13px 20px; border: 0; text-decoration: none; background: var(--sangue); color: #fff; font-weight: 700; font-size: 16px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%); }
.tl-chamada .pl-botao:hover { background: var(--sangue-vivo); }

/* Vídeo oficial da F1 acima da telemetria */
.tl-video { margin-bottom: 22px; }
.tl-video-capa { position: relative; display: block; width: 100%; max-width: 560px; text-decoration: none; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.tl-video-capa img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.tl-video-capa:hover img { opacity: .9; }
.tl-video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: var(--sangue); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.tl-video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.tl-video-tit { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left; color: #fff; font: 700 17px var(--texto); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .85)); }
.tl-video-tit small { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: #c3c8cd; }
.tl-video-roda { position: relative; max-width: 560px; }
.tl-video-seta { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 11, 13, .8); color: #fff; font: 900 30px/1 var(--texto); cursor: pointer; z-index: 2; }
.tl-video-seta:hover { background: var(--sangue); }
.tl-video-ant { left: 10px; }
.tl-video-prox { right: 10px; }
.tl-video-quadro { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; background: #000; }
.tl-video-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tl-video-fonte { margin: 6px 0 0; font-size: 13px; color: var(--aco); }

/* Raio-x MotoGP: comparar voltas por setor */
.mc-setores { display: grid; gap: 10px; padding: 12px; background: var(--carbono); }
.mc-setor { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
.mc-s { font-family: var(--display); font-size: 18px; color: var(--cromo); }
.mc-barras { display: grid; gap: 4px; }
.mc-linha { display: flex; align-items: center; gap: 8px; opacity: .55; }
.mc-linha.mc-vence { opacity: 1; }
.mc-linha i { display: block; height: 10px; border-radius: 2px; }
.mc-linha b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-ganho { font-size: 14px; color: var(--aco); text-align: right; }
.mc-caixa-delta { background: var(--carbono); padding: 8px 4px 2px; }
.mc-delta { display: block; width: 100%; height: auto; }
.mc-vel { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 12px; background: var(--carbono); font-size: 15px; }
.mc-pista { display: block; width: 100%; height: auto; background: var(--carbono); }
@media (max-width: 620px) { .mc-setor { grid-template-columns: 30px minmax(0, 1fr); } .mc-ganho { grid-column: 2; text-align: left; } }

/* Volta fantasma (assets/js/volta-fantasma.js) */
.vf { margin: 0 0 28px; padding: 18px; background: var(--carbono); border: 1px solid var(--linha); border-top: 3px solid var(--sangue-vivo); }
.vf-cab h3 { margin: 0 0 4px; font: 800 24px var(--display); }
.vf-cab p { margin: 0 0 14px; color: #aab0b6; font-size: 15px; }
.vf-palco { position: relative; }
.vf-tela { display: block; border-radius: 10px; }
.vf-gravando, .vf-pronto video { display: block; height: min(620px, 150vw); width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; background: #0b0c0e; }
.vf-ctl, .vf-video, .vf-pronto-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.vf-barra { flex: 1; min-width: 140px; accent-color: var(--sangue-vivo); }
.vf-bt { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--sangue-vivo); border: 0; color: #fff; font: 800 15px var(--texto); cursor: pointer; text-decoration: none; }
.vf-bt:disabled { opacity: .5; cursor: default; }
.vf-bt.vf-linha { background: transparent; border: 1px solid var(--linha); }
.vf-play { min-width: 104px; }
.vf-vel { display: inline-flex; border: 1px solid var(--linha); }
.vf-vel button { min-height: 44px; padding: 0 12px; background: none; border: 0; color: #aab0b6; font: 700 14px var(--texto); cursor: pointer; }
.vf-vel button[aria-pressed="true"] { background: #2b3037; color: #fff; }
.vf-msg { font-size: 14px; color: #7ee2a8; }
.vf-pronto { margin-top: 14px; }
.vf-nota { margin: 8px 0 0; font-size: 13px; color: #8e979f; }
@media (max-width: 520px) { .vf { padding: 12px; } .vf-gerar { width: 100%; } }
