/* ============================================
   F1 PIT WALL – style.css
   ============================================ */

/* --- Fonty --- */
@font-face {
    font-family: 'Formula1';
    src: url('fonts/Formula1-Regular-1.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Formula1';
    src: url('fonts/Formula1-Bold-4.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: 'Formula1';
    src: url('fonts/Formula1-Black.ttf') format('truetype');
    font-weight: 900;
}
@font-face {
    font-family: 'Formula1';
    src: url('fonts/Formula1-Wide.ttf') format('truetype');
    font-weight: 800;
}
@font-face {
    font-family: 'Northwell';
    src: url('fonts/Northwell.ttf') format('truetype');
    font-weight: 400;
}

/* --- Barevné proměnné --- */
:root {
    --bg:           #040311;
    --card:         #1c1c1c;
    --card-inner:   #252525;
    --red:          #E81A24;
    --white:        #ffffff;
    --gray:         #888888;
    --border:       #2e2e2e;
    --silhouette:   #3a3a3a;
    --radius:       20px;
    --gap:          25px;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skryje scrollbar na všech platformách (na mobilu je skrytý automaticky) */
html {
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE / Edge */
}
html::-webkit-scrollbar {
    display: none;               /* Chrome, Safari */
}

/* --- Základní layout --- */
body {
    background-color: var(--bg);
    color: var(--white);
    font-family: 'Formula1', sans-serif;
    font-weight: 400;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ============================================
   NAVIGACE
   ============================================ */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background-color: var(--bg);
    z-index: 100;
}

.nav__logo {
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--white);
}

/* Nav linky vpravo */
.nav__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav__link {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gray);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.nav__link:hover {
    color: var(--white);
}

.nav__link--active {
    color: var(--white);
}

/* Červená čárka pod aktivním odkazem */
.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--red);
    border-radius: 1px;
}

/* ============================================
   HLAVNÍ KONTEJNER
   ============================================ */
.main {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 10px;
    max-width: 480px;
    margin: 10px auto;
}

/* --- Sdílený styl karty --- */
.card {
    background: linear-gradient(to right, rgba(153, 153, 153, 0.05), rgba(255, 190, 190, 0.1));
    box-shadow: inset 0 0 0 1.8px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

/* První karta (příští závod) – dvojnásobné průhlednosti */
.card.next-race {
    background: linear-gradient(to right, rgba(153, 153, 153, 0.05), rgba(255, 190, 190, 0.1));
    box-shadow: inset 0 0 0 1.8px rgba(255, 255, 255, 0.1);
    transition: opacity 0.15s;
}

.next-race--clickable {
    cursor: pointer;
}

.next-race--clickable:hover {
    opacity: 0.75;
}

/* ============================================
   SEKCE 1: Příští závod
   ============================================ */
.next-race {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.next-race__circuit-img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    filter: brightness(0) invert(1);
}

.next-race__info {
    flex: 1;
    min-width: 0;
}

.next-race__name {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 5px;
}

.next-race__dates {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.next-race__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.next-race__time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.next-race__time-label {
    font-size: 0.58rem;
    color: var(--white);
    letter-spacing: 0.03em;
}

.next-race__time-value {
    font-size: 0.72rem;
    font-weight: 700;
}

.next-race__countdown {
    font-size: 1rem;
    font-weight: 700;
}

/* ============================================
   SEKCE 2: My Prediction
   ============================================ */
.prediction {
    position: relative;
    padding: 26px 20px 0;
}

.prediction__lock {
    position: absolute;
    top: 14px;
    right: 16px;
    color: var(--gray);
    opacity: 0.6;
    display: flex;
    align-items: center;
}

.prediction--locked .prediction__slot {
    cursor: default;
}

.prediction__header {
    text-align: center;
    margin-bottom: 16px;
}

.prediction__title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.prediction__race-name {
    font-family: 'Northwell', cursive;
    font-size: 2.8rem;
    color: var(--red);
    margin-top: -4px;
    line-height: 1.1;
}

/* --- Pódium --- */
.prediction__podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    border-radius: 8px 8px 0 0;
    padding: 0px 20px 0;
    /* Natáhne kartu přes padding */
    margin: -25px -20px 0px -20px
}

.prediction__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 1;
    transition: opacity 0.2s ease;
}

.prediction__slot:hover {
    opacity: 0.75;
}

/* Silhoueta jezdce – SVG jako maska, barva přes background-color */
.prediction__silhouette-img {
    width: 100px;
    height: 100px;
    -webkit-mask: url('images/driver_silhouette.svg') no-repeat bottom / contain;
    mask: url('images/driver_silhouette.svg') no-repeat bottom / contain;
    background-color: #d9dcff33;  /* ← změň sem jakoukoli barvu */
}

/* Stupeň pódia – bílý průhledný obdélník se zaoblenými horními rohy */
.prediction__step {
    width: 100%;
    background-color: rgba(238, 234, 255, 0.589);
    border-radius: 8px 8px 0 0;
}

.prediction__slot--1st .prediction__step { height: 60px; }
.prediction__slot--2nd .prediction__step { height: 42px; }
.prediction__slot--3rd .prediction__step { height: 30px; }

/* --- Prediction History – samostatná karta-tlačítko --- */
.history-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-top: -15px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
}

.history-btn:hover {
    opacity: 0.75;
}

.history-btn__arrow {
    font-size: 1.3rem;
    color: var(--gray);
    line-height: 1;
}

/* ============================================
   SEKCE 3: Last Race Results
   ============================================ */
.last-race {
    padding: 25px 25px 10px;
}

.last-race__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.last-race__location {
    color: var(--red);
    font-weight: 400;
}

.last-race__results {
    list-style: none;
}

.last-race__row {
    display: grid;
    /* pozice | jméno | čas | body */
    grid-template-columns: 26px 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
}

/* Varianta bez bodů – kvalifikace, tréninky (3 sloupce místo 4) */
.last-race__row--no-pts {
    grid-template-columns: 26px 1fr auto;
}

/* Vítěz má tučné písmo */
.last-race__row--winner {
    font-weight: 700;
}

.last-race__position {
    color: var(--gray);
    font-weight: 700;
    font-size: 0.73rem;
}

.last-race__row--winner .last-race__position {
    color: var(--white);
}

.last-race__driver {
    font-weight: 700;
}

.last-race__time {
    color: var(--gray);
    font-size: 0.7rem;
}

.last-race__row--winner .last-race__time {
    color: var(--white);
}

.last-race__points {
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* ============================================
   RESPONZIVITA – širší obrazovky
   ============================================ */
@media (min-width: 520px) {
    .main {
        padding: 16px;
        gap: 14px;
    }

    .next-race__name {
        font-size: 1.7rem;
    }

    .prediction__title {
        font-size: 2rem;
    }
    .history-btn {
        margin-top: 0px;

    }
}

@media (min-width: 860px) {
    .main {
        /* Dva sloupce: vlevo Next Race + My Prediction, vpravo Last Race */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        max-width: 900px;
    }

    /* Next Race – vlevo nahoře */
    .next-race {
        grid-column: 1;
        grid-row: 1;
    }

    /* My Prediction – vlevo, 2. řádek */
    .prediction {
        grid-column: 1;
        grid-row: 2;
    }

    /* History btn – vlevo, 3. řádek */
    .history-btn {
        grid-column: 1;
        grid-row: 3;
        margin-top: 0px;

    }

    /* Last Race Results – vpravo, roztáhne se přes všechny řádky */
    .last-race {
        grid-column: 2;
        grid-row: 1 / 4;
    }
}

/* ============================================
   ZKRATKA JEZDCE NA PÓDIU
   ============================================ */

/* Wrapper drží silhuetu a zkratku pohromadě */
.prediction__silhouette-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-bottom: 7px;
}

/* Zkratka absolutně přes tělo silhuety */
.prediction__driver-code {
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--white);
}

/* ============================================
   MODAL – VÝBĚR JEZDCE
   ============================================ */
.driver-picker {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-picker--hidden {
    display: none;
}

.driver-picker__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.driver-picker__panel {
    position: relative;
    background: #1a1a1a;
    box-shadow: inset 0 0 0 1.8px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    width: 90%;
    max-width: 340px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 20px;
}

.driver-picker__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    margin-bottom: 14px;
    color: var(--gray);
}

.driver-picker__list {
    list-style: none;
}

.driver-picker__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.driver-picker__item:hover {
    opacity: 0.65;
}

/* Barevný proužek týmu vlevo */
.driver-picker__color {
    width: 4px;
    height: 30px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   PREDICTOR – HISTORY PAGE
   ============================================ */

/* Hlavní kontejner na predictor stránce – na mobilu jednosloupec */
.main--predictor {
    max-width: 540px;
    display: flex;
    flex-direction: column;
}

/* Na desktopu: vlevo sticky score, vpravo seznam závodů */
@media (min-width: 860px) {
    .main--predictor {
        display: grid;
        grid-template-columns: 220px 1fr;
        align-items: start;
        max-width: 860px;
    }

    .main--predictor .season-score {
        align-self: start;
        position: sticky;
        top: 69px;
        z-index: 50;
    }

    #race-history-list {
        min-width: 0;
    }
}

/* --- Karta celkového skóre --- */
.season-score {
    padding: 24px 20px;
    text-align: center;
}

.season-score__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gray);
    margin-bottom: 6px;
}

.season-score__points {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
}

.season-score__sub {
    font-size: 0.65rem;
    color: var(--gray);
    margin-top: 6px;
}

/* Kontejner karet závodů – stejná mezera jako na dashboardu */
#race-history-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* --- Karta závodu --- */
.ph-card {
    padding: 18px 20px;
}

/* Karta bez predikce je trochu utlumená */
.ph-card--no-pick {
    opacity: 0.6;
}

.ph-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.ph-card__round {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.ph-card__name {
    font-size: 1rem;
    font-weight: 900;
}

/* Odznak s body nebo "No Prediction" */
.ph-card__badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    background-color: var(--red);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ph-card__badge--none {
    background-color: transparent;
    color: var(--gray);
    border: 1px solid var(--border);
}

/* Pódium bez predikce – jednosloupec */
.ph-card__official-only {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Srovnávací mřížka se dvěma sloupci */
.ph-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ph-col__label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 8px;
}

/* Řádek s pozicí a jménem jezdce */
.ph-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid var(--border);
}

.ph-row__pos {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray);
    width: 20px;
    flex-shrink: 0;
}

.ph-row__driver {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

.ph-row__code {
    font-size: 0.65rem;
    color: var(--gray);
    margin-left: auto;
}

/* Barevné třídy pro hodnocení tipu */
.ph-row__driver--exact {
    color: #4ade80;   /* zelená = přesný tip */
}

.ph-row__driver--podium {
    color: #facc15;   /* žlutá = na pódiu, špatná pozice */
}

.ph-row__driver--miss {
    color: var(--red);  /* červená = mimo pódium */
}

.driver-picker__name {
    font-size: 0.78rem;
    font-weight: 700;
    flex: 1;
}

.driver-picker__code {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray);
}

/* ============================================
   STANDING PAGE
   ============================================ */

.main--standing {
    max-width: 480px;
    margin-top: 0;
}

/* Přepínač Jezdci / Týmy – card styl, vedle sebe, bez šipky */
.tabs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 12px 10px 0;
    max-width: 480px;
    margin: 0 auto;
}

.tabs__btn {
    flex: 1;
    background: linear-gradient(to right, rgba(153, 153, 153, 0.05), rgba(255, 190, 190, 0.1));
    box-shadow: inset 0 0 0 1.8px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    color: var(--gray);
    font-family: 'Formula1', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.tabs__btn:hover {
    opacity: 1;
}

.tabs__btn--active {
    color: var(--white);
    opacity: 1;
}

.tabs__btn--active:hover {
    opacity: 1;
}

/* Championship karta – stejný padding jako last-race */
.championship {
    padding: 25px 25px 10px;
}

.championship__title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.championship__year {
    font-family: 'Northwell', cursive;
    font-size: 2.8rem;
    color: var(--red);
    line-height: 1.1;
    margin-top: -4px;
    margin-bottom: 4px;
    text-align: center;
}

.championship__list {
    list-style: none;
}

/* Řádek pořadí jezdců – stejný styl jako last-race__row */
.standing-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
}

/* Konstruktéři – bez sloupce pro tým */
.standing-row--constructor {
    grid-template-columns: 36px 1fr auto auto;
}

.standing-row--leader {
    font-weight: 700;
}

.standing-row__pos {
    color: var(--gray);
    font-weight: 700;
    font-size: 0.73rem;
}

.standing-row--leader .standing-row__pos {
    color: var(--white);
}

.standing-row__name {
    font-weight: 700;
}

.standing-row__nat,
.standing-row__team {
    color: var(--gray);
    font-size: 0.7rem;
}

.standing-row--leader .standing-row__nat,
.standing-row--leader .standing-row__team {
    color: var(--white);
}

.standing-row__pts {
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* ============================================
   CALENDAR PAGE
   ============================================ */

.main--calendar {
    max-width: 480px;
    gap: 12px;
}

/* Nadpis "Calendar - 2026" */
.calendar-heading {
    padding: 12px 10px 0;
    max-width: 480px;
    margin: 10px auto 0;
}

.calendar-heading__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.calendar-heading__year {
    color: var(--red);
    font-weight: 400;
}

/* Karta závodu */
.race-card {
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.race-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.race-card__circuit-img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.race-card__info {
    flex: 1;
    min-width: 0;
}

.race-card__name {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 5px;
}

.race-card__dates {
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.race-card__location {
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 400;
}

.race-card__chevron {
    font-size: 1.3rem;
    color: var(--gray);
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
}

.race-card--open .race-card__chevron {
    transform: rotate(270deg);
}

/* Rozbalená sekce – první sloupec = šířka obrázku (82px) + mezera (14px) */
.race-card__detail {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    grid-template-columns: 96px 1fr;
    gap: 0 0;
}

.race-card--open .race-card__detail {
    display: grid;
}

/* Zvýraznění příštího závodu */
.race-card--next {
    border: 1.5px solid var(--red);
    position: relative;
}

.race-card--next::before {
    content: "NEXT RACE";
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--red);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
}

.race-card__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.race-card__stat {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

/* Malý červený popisek "distance" pod hodnotou celkové vzdálenosti */
.race-card__stat-label {
    font-size: 0.52rem;
    font-weight: 400;
    color: var(--red);
    letter-spacing: 0.04em;
    margin-top: -1px;
}

.race-card__sessions {
    display: flex;
    flex-direction: column;
}

/* Řádek session */
.session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid var(--border);
    font-size: 0.67rem;
}

.session-row:first-child {
    border-top: none;
}

.session-row__name {
    font-weight: 700;
    color: var(--white);
}

.session-row__time {
    color: var(--gray);
    text-align: right;
}

/* ===== RACE DETAIL – odkaz na výsledky v kalendáři ===== */

.race-card__results-link {
    display: block;
    padding-top: 10px;
    margin-bottom: -4px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--white);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.15s;
}

.race-card__results-link:hover {
    opacity: 0.75;
}

.last-race .race-card__results-link {
    margin-bottom: 4px;
}

/* ===== RACE DETAIL – stránka s výsledky ===== */

.detail-heading {
    padding: 14px 20px 0px;
    margin-bottom: -5px;
}

.detail-heading__back {
    display: inline-block;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.detail-heading__back:hover {
    color: var(--white);
}

.detail-heading__round {
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.detail-heading__title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

.main--detail {
    gap: 12px;
    padding-bottom: 40px;
}

/* Session karta (výsledky jedné session) */
.session-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.session-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.session-card__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-card__name {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
}

.session-card__time {
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.03em;
}

.session-card__chevron {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--gray);
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.session-card--expanded .session-card__chevron {
    transform: rotate(270deg);
}

.session-card__content {
    display: none;
    padding: 0 20px 16px;
    cursor: default;
}

.session-card--expanded .session-card__content {
    display: block;
}

.session-loading,
.session-no-data {
    color: var(--gray);
    font-size: 0.75rem;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

/* Tabulka výsledků */
.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-row {
    display: grid;
    grid-template-columns: 28px 4px 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
}

.result-row--no-pts {
    grid-template-columns: 28px 4px 1fr auto auto;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row__pos {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray);
}

.result-row__color {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
}

.result-row__driver {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-row__code {
    color: var(--gray);
    font-size: 0.68rem;
}

.result-row__time {
    color: var(--gray);
    font-size: 0.68rem;
    text-align: right;
    white-space: nowrap;
}

.result-row__pts {
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: right;
    min-width: 28px;
}
