/**
 * Resultados v6.3 — layout inspirado em RaceControl / LiveTiming + Championship (Tela resultados).
 * Fundo #0A0A0A, bordas #1C1C1C, texto secundário #A0A0A0.
 */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Titillium+Web:wght@400;600;700&display=swap");

html {
    min-height: 100%;
}

.rc-body {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    color: #fff;
    font-family: "Titillium Web", system-ui, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Teto vertical do campeonato (scroll interno só na classificação quando muitos pilotos) */
    --rc-results-chrome: clamp(132px, 18vh, 168px);
    /* Nº de linhas da corrida (ajustado via JS) para caber no viewport sem scroll da página */
    --race-rows: 16;
    --race-head-h: 26px;
    --race-row-h: 22px;
    --race-th-font: 0.66rem;
    --race-td-font: 0.72rem;
    --race-time-font: 0.68rem;
}

.rc-app {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    width: 100%;
}

/* Barra superior */
.rc-header {
    flex: 0 0 auto;
    height: 45px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #1c1c1c;
    background: #0a0a0a;
}

.rc-header-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rc-header-center {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #a0a0a0;
    min-width: 0;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rc-live-dot {
    font-size: 12px;
    font-weight: 700;
    color: #b91c1c;
    letter-spacing: 0.06em;
}

.rc-clock {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.pill {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    color: #ccc;
}

button.pill {
    background: #111827;
    cursor: pointer;
}

button.pill:hover {
    border-color: #64748b;
    color: #e2e8f0;
}

.pill--live {
    border-color: #22c55e;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
}

.pill--mock {
    border-color: #eab308;
    color: #fef08a;
    background: rgba(234, 179, 8, 0.12);
}

.rc-mock-banner {
    flex-shrink: 0;
    margin: 0 32px 0;
    padding: 8px 12px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 4px;
    font-size: 13px;
    color: #fde68a;
}

/* Área principal: corrida (esq.) + coluna direita (campeonato + docs) */
.rc-main {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 24px 16px;
    box-sizing: border-box;
}

/* Grelha da corrida: cresce com o viewport (maior parte da largura) */
.rc-live {
    flex: 3 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rc-live > .rc-section-title {
    flex-shrink: 0;
}

/* Painel da corrida: altura = conteúdo (não estica vazio); a grelha limita-se ao nº de linhas */
.rc-live .grid-main.rc-lt-panel {
    flex: 0 1 auto;
    min-height: 0;
    justify-content: flex-start;
}

/* Direita: fila [ campeonato | TABELA ATIVA + PDF + PONTUAÇÃO ] — reparte espaço horizontal */
.rc-sidebar {
    flex: 2 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Altura = conteúdo (campeonato + docs). flex:1+min-h:0 no pai sem altura fixa colapsava a coluna toda. */
.rc-sidebar-inner {
    display: flex;
    flex-direction: row;
    flex: 0 1 auto;
    min-width: 0;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.rc-champ {
    flex: 1 1 300px;
    width: auto;
    max-width: none;
    min-width: min(100%, 220px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rc-champ > .rc-section-title,
.rc-champ > .vicar-champ-toolbar {
    flex-shrink: 0;
}

.rc-champ .vicar-champ-brand {
    flex-shrink: 0;
}

/* Grelha: altura derivada de --champ-rows (JS); não estica o cartão em vazio */
.rc-champ #vicarChampWrap {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
}

@media (max-width: 1100px) {
    .rc-main {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-y: auto;
        align-items: stretch;
    }

    .rc-live {
        flex: 1 1 auto;
        max-width: 100%;
        min-height: 0;
    }

    .rc-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
        overflow: visible;
    }

    .rc-sidebar-inner {
        flex-direction: column;
    }

    .rc-champ {
        flex: 1 1 auto;
        width: 100%;
        min-height: 200px;
    }

    .rc-docs--sidebar {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        max-height: min(40vh, 320px);
    }
}

.vicar-champ-toolbar {
    margin-bottom: 8px;
}

.vicar-champ-toolbar-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.vicar-champ-toolbar .vicar-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    flex: 1;
    min-width: 0;
}

.vicar-champ-toolbar .vicar-field--cat {
    flex: 1;
}

.vicar-champ-toolbar .vicar-field--class {
    flex: 1;
}

.vicar-champ-toolbar #champClassLabel[hidden] {
    display: none !important;
}

.vicar-champ-toolbar select {
    font-family: inherit;
    font-size: 11px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #eee;
    padding: 5px 8px;
    min-height: 30px;
    width: 100%;
    min-width: 0;
    cursor: pointer;
}

.rc-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rc-section-title h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.rc-section-title span {
    font-size: 12px;
    color: #a0a0a0;
}

.rc-table-wrap {
    overflow: visible;
    max-height: none;
}

.rc-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rc-grid thead th {
    height: 40px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a0a0a0;
    text-align: left;
    border-bottom: 1px solid #1c1c1c;
    padding: 0 8px 0 0;
    white-space: nowrap;
}

.rc-grid thead th.rc-num {
    text-align: center;
}

.rc-grid thead th.rc-right {
    text-align: right;
    padding-right: 4px;
}

.rc-grid tbody td {
    height: 56px;
    border-bottom: 1px solid #1c1c1c;
    padding: 4px 8px 4px 0;
    vertical-align: middle;
}

.rc-grid tbody tr.rc-row-leader {
    background: #111111;
}

.rc-pos {
    width: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rc-pos.rc-pos--lead {
    font-size: 32px;
}

.rc-num-sm {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #a0a0a0;
    font-size: 14px;
}

.rc-pilot {
    min-width: 0;
    font-weight: 500;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    color: #b0b0b0;
    text-align: right;
}

.rc-right {
    text-align: right;
}

.rc-pts {
    font-weight: 600;
    text-align: right;
}

.rc-champ .rc-grid tbody td {
    height: 48px;
    font-size: 14px;
}

.rc-champ .rc-pos {
    font-size: 18px;
}

.rc-champ .rc-pilot {
    font-size: 14px;
    width: 180px;
    max-width: 180px;
}

.rc-empty td {
    text-align: center;
    padding: 32px 16px !important;
    color: #666;
    height: auto !important;
}

/* À direita do campeonato: referências (largura estável, não rouba a grelha) */
.rc-docs--sidebar {
    flex: 0 1 260px;
    width: 260px;
    max-width: min(280px, 32vw);
    min-width: 0;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scrollbar-width: thin;
    scrollbar-color: #444 #111;
}

.rc-docs--sidebar::-webkit-scrollbar {
    width: 5px;
}

.rc-docs--sidebar::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.rc-docs--sidebar .rc-doc-card {
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 9px;
    line-height: 1.25;
    color: #b0b0b0;
    background: #101010;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.rc-docs--sidebar .rc-doc-card h3 {
    margin: 0 0 3px;
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    line-height: 1.2;
}

.rc-docs--sidebar .rc-doc-card p {
    margin: 0;
    min-width: 0;
}

.rc-docs--sidebar .rc-doc-card code {
    font-size: 8px;
    background: #1a1a1a;
    padding: 0 2px;
    border-radius: 2px;
    word-break: break-all;
}

.rc-docs--sidebar .rc-doc-card a {
    color: #6ec8ff;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rc-doc-text,
.rc-docs--sidebar #regulationActiveText {
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: manual;
    font-size: 9px;
    line-height: 1.25;
    color: #c4c4c4;
}

.rc-doc-text strong {
    font-weight: 600;
    display: inline;
}

.rc-doc-muted {
    color: #7a7a8a;
    font-size: 8px;
    font-weight: 400;
}

.rc-doc-links-body {
    font-size: 8px;
    line-height: 1.3;
}

.rc-doc-links-body a.rc-doc-pdf-link {
    display: block;
    margin: 3px 0 0;
    color: #6ec8ff;
    text-decoration: none;
}

.rc-doc-links-body a.rc-doc-pdf-link:hover {
    text-decoration: underline;
}

.rc-doc-links-foot {
    margin: 6px 0 0;
    font-size: 7px;
    line-height: 1.3;
    color: #6b7280;
}

.rc-doc-links-foot a {
    color: #6b7280;
    word-break: break-all;
}

.rc-docs--sidebar .rc-doc-card .rc-doc-links-foot a {
    color: #8b93a3;
}

.rc-docs--sidebar .rc-doc-card .rc-doc-links-foot a:hover {
    color: #b8c0d0;
}

.rc-doc-placeholder {
    font-size: 10px;
    color: #777;
    margin: 0;
}

.rc-doc-short {
    font-size: 9px;
    line-height: 1.3;
    color: #aaa;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rc-doc-status-line {
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.3;
    color: #666;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.delta-up {
    color: #4ade80;
}
.delta-down {
    color: #f87171;
}
.delta-same {
    color: #666;
}

.pos-p1 {
    color: #facc15 !important;
}
.pos-dq {
    color: #f87171 !important;
}

/* —— Corrida: mesma linguagem visual do Live Timing (griiip / grid-table) —— */
.rc-lt-panel {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
}

/* Corrida: altura = conteúdo (todos os pilotos visíveis; scroll na página, não dentro da caixa). */
.rc-lt-shell.table-wrap--race {
    position: relative;
    flex: 0 1 auto;
    width: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
    background: #0b101a;
    border: 1px solid rgba(100, 116, 139, 0.5);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.95),
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    font-family: "Outfit", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rc-lt-shell.table-wrap--race > table.grid-table {
    position: static;
    table-layout: fixed;
    width: 100%;
    height: auto;
    border: none;
    border-collapse: collapse;
    border-spacing: 0;
}

.rc-lt-shell .grid-table > thead {
    position: static;
    background: #1a1e2a;
}

.rc-lt-shell .grid-table > thead > tr > th {
    height: auto;
    height: var(--race-head-h);
    padding: 2px 6px;
    font-size: var(--race-th-font);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    vertical-align: middle;
    color: #a1a1aa;
    background: #1a1e2a;
    border: none;
    border-bottom: 1px solid #202435;
    white-space: nowrap;
}

.rc-lt-shell .grid-table > tbody > tr:nth-child(odd):not(.lt-row-leader) {
    background: #0f121b;
}

.rc-lt-shell .grid-table > tbody > tr:nth-child(even):not(.lt-row-leader) {
    background: #121623;
}

.rc-lt-shell .grid-table > tbody > tr.lt-row-leader {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.12) 0%, #121623 35%) !important;
    box-shadow: inset 3px 0 0 #22c55e;
}

/* Subiu / desceu na grelha (face à atualização anterior) */
.rc-lt-shell .grid-table > tbody > tr.lt-row-moved-up:not(.lt-row-leader) {
    background: rgba(74, 222, 128, 0.07) !important;
    box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.85);
}

.rc-lt-shell .grid-table > tbody > tr.lt-row-moved-down:not(.lt-row-leader) {
    background: rgba(248, 113, 113, 0.07) !important;
    box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.75);
}

.rc-lt-shell .grid-table > tbody > tr.lt-row-leader.lt-row-moved-up {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.2) 0%, #121623 38%) !important;
    box-shadow: inset 3px 0 0 #22c55e, inset 6px 0 0 rgba(52, 211, 153, 0.65);
}

.rc-lt-shell .grid-table > tbody > tr.lt-row-leader.lt-row-moved-down {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.14) 0%, #121623 38%) !important;
    box-shadow: inset 3px 0 0 #22c55e, inset 6px 0 0 rgba(248, 113, 113, 0.65);
}

.race-pos-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.race-move-ind {
    font-size: 0.55em;
    line-height: 1;
    opacity: 0.95;
    flex-shrink: 0;
}

.race-move-ind--up {
    color: #4ade80;
}

.race-move-ind--down {
    color: #f87171;
}

.rc-lt-shell .grid-table > tbody > tr > td {
    padding: 1px 6px;
    font-size: var(--race-td-font);
    line-height: 1.1;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #202435;
    color: #e4e4e7;
    height: var(--race-row-h);
}

.rc-lt-shell .ctr,
.rc-lt-shell .num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rc-lt-shell .col-name,
.rc-lt-shell .col-team {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: none;
}

.rc-lt-shell .td-time {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--race-time-font);
    text-align: center;
    white-space: nowrap;
}

/* Melhor volta: fundo discreto + tempo em roxo (sem bolinha) */
.rc-lt-shell .td-time.cell-race-best {
    background: rgba(168, 85, 247, 0.09);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.22);
    border-radius: 4px;
}

.rc-lt-shell .race-best-lap-val {
    color: #d8b4fe;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.race-pts-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.race-bonus-ind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.race-bonus-ind--qualy {
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.55);
}

.rc-lt-shell .pos-p1 {
    color: #facc15;
    font-weight: 800;
}

.rc-lt-shell .pos-dq {
    color: #f87171;
    font-weight: 800;
}

.rc-lt-shell .rc-empty td {
    text-align: center;
    padding: 24px 12px !important;
    color: #94a3b8;
    text-transform: none;
    font-size: 0.85rem;
}

/* —— Campeonato: estética tipo portal / Stock (faixa escura + vermelho Vicar) —— */
.rc-champ .rc-section-title--vicar {
    margin-bottom: 8px;
}

.rc-section-title--vicar h2 {
    letter-spacing: 0.06em;
    font-size: 12px;
}

.rc-champ .rc-section-title--vicar span {
    font-size: 10px;
}

.vicar-champ-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid #252525;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

/* Altura do cartão = grelha (nº de pilotos), não preenche a coluna inteira */
.rc-champ .vicar-champ-card {
    flex: 0 1 auto;
}

.vicar-champ-brand {
    height: 3px;
    background: linear-gradient(90deg, #8b0000 0%, #c62828 18%, #1a0505 45%, #c62828 78%, #8b0000 100%);
}

/**
 * Altura = cabeçalho + (nº de pilotos × altura de linha), com teto no viewport.
 * --champ-rows é definido em JS (renderChampTable).
 */
.vicar-champ-wrap {
    --champ-thead-h: 28px;
    --champ-row-h: 26px;
    --champ-rows: 8;
    max-height: min(
        calc(var(--champ-thead-h) + var(--champ-rows) * var(--champ-row-h)),
        calc(100vh - var(--rc-results-chrome))
    );
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c62828 #141414;
}

.vicar-champ-wrap::-webkit-scrollbar {
    width: 7px;
}

.vicar-champ-wrap::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    border-radius: 8px;
    margin: 4px 0;
}

.vicar-champ-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef5350 0%, #b71c1c 45%, #7f0000 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vicar-champ-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff7961 0%, #c62828 50%, #b71c1c 100%);
}

.vicar-champ-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #e4e4e4;
}

.vicar-champ-grid thead tr {
    background: linear-gradient(180deg, #1a0a0a 0%, #141414 55%, #101010 100%);
}

.vicar-champ-grid thead th {
    padding: 6px 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ddd;
    border: none;
    border-bottom: 2px solid #c62828;
    text-align: left;
    line-height: 1.2;
}

.vicar-champ-grid thead th.vc-num {
    text-align: right;
}

.vicar-champ-grid thead th.vc-pos {
    width: 30px;
    text-align: center;
}

.vicar-champ-grid tbody tr.vicar-row {
    border-bottom: 1px solid #1e1e1e;
    transition: background 0.15s ease;
}

.vicar-champ-grid tbody tr.vicar-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.vicar-champ-grid tbody tr.vicar-row--leader {
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.22) 0%, #141414 42%);
    box-shadow: inset 3px 0 0 #e53935;
}

.vicar-champ-grid tbody tr.vicar-row--p2 {
    box-shadow: inset 3px 0 0 #b0bec5;
}

.vicar-champ-grid tbody tr.vicar-row--p3 {
    box-shadow: inset 3px 0 0 #b87333;
}

.vicar-champ-grid tbody tr.vicar-row--leader.vicar-row--moved-up {
    box-shadow: inset 3px 0 0 #e53935, inset 6px 0 0 rgba(52, 211, 153, 0.75);
}

.vicar-champ-grid tbody tr.vicar-row--leader.vicar-row--moved-down {
    box-shadow: inset 3px 0 0 #e53935, inset 6px 0 0 rgba(239, 83, 80, 0.75);
}

.vicar-champ-grid tbody tr.vicar-row--p2.vicar-row--moved-up {
    box-shadow: inset 3px 0 0 #b0bec5, inset 6px 0 0 rgba(52, 211, 153, 0.75);
}

.vicar-champ-grid tbody tr.vicar-row--p2.vicar-row--moved-down {
    box-shadow: inset 3px 0 0 #b0bec5, inset 6px 0 0 rgba(239, 83, 80, 0.75);
}

.vicar-champ-grid tbody tr.vicar-row--p3.vicar-row--moved-up {
    box-shadow: inset 3px 0 0 #b87333, inset 6px 0 0 rgba(52, 211, 153, 0.75);
}

.vicar-champ-grid tbody tr.vicar-row--p3.vicar-row--moved-down {
    box-shadow: inset 3px 0 0 #b87333, inset 6px 0 0 rgba(239, 83, 80, 0.75);
}

.vc-move-ind {
    display: inline-block;
    margin-left: 5px;
    font-size: 9px;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.92;
}

.vc-move-ind--up {
    color: #4ade80;
}

.vc-move-ind--down {
    color: #f87171;
}

@keyframes vc-move-up {
    0% {
        transform: translateY(5px);
        outline: 2px solid rgba(34, 197, 94, 0.85);
        outline-offset: -2px;
    }
    100% {
        transform: translateY(0);
        outline: 2px solid transparent;
        outline-offset: -2px;
    }
}

@keyframes vc-move-down {
    0% {
        transform: translateY(-5px);
        outline: 2px solid rgba(239, 83, 80, 0.75);
        outline-offset: -2px;
    }
    100% {
        transform: translateY(0);
        outline: 2px solid transparent;
        outline-offset: -2px;
    }
}

.vicar-champ-grid tbody tr.vicar-row--moved-up {
    animation: vc-move-up 0.48s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    box-shadow: inset 2px 0 0 rgba(52, 211, 153, 0.55);
}

.vicar-champ-grid tbody tr.vicar-row--moved-down {
    animation: vc-move-down 0.48s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    box-shadow: inset 2px 0 0 rgba(239, 83, 80, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .vicar-champ-grid tbody tr.vicar-row--moved-up,
    .vicar-champ-grid tbody tr.vicar-row--moved-down {
        animation: none;
    }
}

.vicar-champ-grid tbody td {
    padding: 4px 6px;
    vertical-align: middle;
    line-height: 1.25;
}

.vc-cell-pos {
    text-align: center;
    width: 32px;
}

.vc-pos-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    font-weight: 800;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #f0f0f0;
}

.vc-cell-pos--lead .vc-pos-num {
    color: #ffeb3b;
    font-size: 13px;
}

.vc-cell-name {
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 12px;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vicar-champ-grid .vc-cell-pts,
.vicar-champ-grid .vc-cell-gain {
    text-align: right;
    font-weight: 700;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.vicar-champ-grid .vc-cell-diff {
    text-align: right;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    color: #9e9e9e;
}

.vicar-champ-grid .vc-cell-gain {
    color: #81c784;
}

.vc-empty td {
    text-align: center;
    padding: 16px 10px !important;
    color: #666;
    font-size: 11px;
}
