/* ── En-têtes colonnes ──────────────────────────────── */
#table-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 48px 6px 42px;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 2px;
    color: #4c5055;
}

/* ── Lignes ─────────────────────────────────────────── */
#table-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.row {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 24px;
    padding: 0 48px 0 42px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.row--first {
    background: rgba(255, 215, 0, 0.04);
    box-shadow: inset 4px 0 0 var(--color-gold);
}

.row--second {
    box-shadow: inset 4px 0 0 var(--color-silver);
}

.row--third {
    box-shadow: inset 4px 0 0 var(--color-bronze);
}

/* ── Colonnes ───────────────────────────────────────── */
.col-position,
.row-position {
    width: 160px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

.col-driver,
.row-driver {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.col-level,
.row-level {
    width: 82px;
    flex: none;
    display: flex;
    justify-content: center;
}

.col-time,
.row-time {
    width: 200px;
    flex: none;
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 28px;
    color: #fff;
}

.col-total,
.row-total {
    width: 104px;
    flex: none;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 17px;
    color: #8b8f94;
}

/* ── Position ───────────────────────────────────────── */
.diff-dot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex: none;
}

.diff-dot--debutant {
    background: var(--color-debutant);
    box-shadow: 0 0 11px var(--color-debutant);
}

.diff-dot--inter {
    background: var(--color-inter);
    box-shadow: 0 0 11px var(--color-inter);
}

.diff-dot--expert {
    background: var(--color-expert);
    box-shadow: 0 0 11px var(--color-expert);
}

.row-pos-number {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -1px;
}

.row--first .row-pos-number  { color: var(--color-gold);   }
.row--second .row-pos-number { color: var(--color-silver); }
.row--third .row-pos-number  { color: var(--color-bronze); }

/* ── Pilote ─────────────────────────────────────────── */
.row-name {
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-team {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    color: #8b8f94;
    flex: none;
}

.row-titles {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

.title-badge {
    width: 27px;
    height: 27px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.title-badge-img {
    width: 27px;
    height: 27px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Niveau ─────────────────────────────────────────── */
.level-badge {
    min-width: 56px;
    text-align: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 19px;
    line-height: 1;
}