/* Табло внутри .lt-liveboard-screen. Оболочка «онлайн-табло» остаётся из текста главной.
   Кегль меньше, чем на /departure-board/, чтобы шесть колонок влезали в ширину экрана.
   До 767px строки становятся карточками, как таблица этого блока на сервере. */

#lt-home-final-v21 #live-departure-board .lt-liveboard-subtitle {
    display: none;
}

#lt-home-final-v21 #live-departure-board .lt-liveboard-time,
#lt-home-final-v21 #live-departure-board .lt-liveboard-time strong,
#lt-home-final-v21 #live-departure-board .lt-liveboard-time span {
    color: #ffd54a;
}

#live-departure-board .lt-liveboard-screen {
    background: #000814;
}

#live-departure-board .lt-board {
    --board-bg: #000814;
    --board-row-bg: #04101f;
    --board-row-alt-bg: #061528;
    --board-row-border: #0c2236;
    --header-bg: #0b1c33;
    --header-strip-bg: #7b1d1d;
    --header-text: #ffffff;
    --col-header-text: #bdd2eb;
    --primary-text: #f3f7fb;
    --secondary-text: #aab9c9;
    --status-waiting: #28d17c;
    --status-departed: #ff7676;
    --board-accent: #ffd54a;
    --footer-bg: #0a1626;
    --col-template: minmax(0, 1fr) 8.2rem 8.6rem max-content max-content max-content;
    background: var(--board-bg);
    color: var(--primary-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    min-width: 0;
}

#live-departure-board .lt-board__bar {
    background: var(--header-strip-bg);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .2px;
}

#live-departure-board .lt-board__table {
    display: grid;
    grid-template-columns: var(--col-template);
    width: 100%;
}

#live-departure-board .lt-board__body {
    display: contents;
}

#live-departure-board .lt-board__head,
#live-departure-board .lt-board__row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
}

#live-departure-board .lt-board__head {
    background: var(--header-bg);
}

#live-departure-board .lt-board__head .lt-board__cell {
    color: var(--col-header-text);
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 8px 2px;
    text-align: left;
    white-space: nowrap;
}

#live-departure-board .lt-board__head .col-time,
#live-departure-board .lt-board__head .col-status {
    text-align: center;
}

#live-departure-board .lt-board__row {
    border-bottom: 1px solid var(--board-row-border);
}

#live-departure-board .lt-board__row[data-zebra="odd"] {
    background: var(--board-row-bg);
}

#live-departure-board .lt-board__row[data-zebra="even"] {
    background: var(--board-row-alt-bg);
}

#live-departure-board .lt-board__cell {
    padding: 9px 8px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    min-width: 0;
}

#live-departure-board .lt-board__cell.col-name {
    color: var(--primary-text);
    font-weight: 600;
}

#live-departure-board .lt-board__cell.col-time {
    font-variant-numeric: tabular-nums;
    color: var(--board-accent);
    font-weight: 700;
    justify-content: center;
    font-size: 15px;
}

#live-departure-board .lt-board__row .col-address,
#live-departure-board .lt-board__row .col-bus,
#live-departure-board .lt-board__row .col-status {
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
}

#live-departure-board .lt-board__cell.col-address,
#live-departure-board .lt-board__cell.col-bus {
    color: var(--secondary-text);
}

#live-departure-board .lt-board__head .col-address,
#live-departure-board .lt-board__head .col-bus,
#live-departure-board .lt-board__head .col-status {
    position: relative;
    min-width: 0;
    min-height: 48px;
    overflow: hidden;
}

#live-departure-board .lt-board__headlabel {
    position: absolute;
    left: 8px;
    right: 4px;
    top: 8px;
    white-space: normal;
    line-height: 1.15;
}

#live-departure-board .lt-board__head .col-status .lt-board__headlabel {
    text-align: center;
    left: 4px;
    right: 4px;
}

#live-departure-board .lt-board__status {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

#live-departure-board .lt-board__cell.col-status {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    justify-content: center;
}

#live-departure-board .lt-board__cell.col-status.is-waiting {
    color: var(--status-waiting);
}

#live-departure-board .lt-board__cell.col-status.is-departed {
    color: var(--status-departed);
}

#live-departure-board .lt-board__head .lt-board__cell.col-time,
#live-departure-board .lt-board__head .lt-board__cell.col-status {
    font-size: 15px;
}

#live-departure-board .lt-board__pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    animation: lt-board-pulse 1.4s ease-in-out infinite;
    flex: 0 0 auto;
}

@keyframes lt-board-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.85); }
}

#live-departure-board .lt-board__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    padding: 36px 16px;
    font-size: 14px;
}

#live-departure-board .lt-board__ticker {
    position: relative;
    width: 100%;
    background: var(--footer-bg);
    color: #fff;
    overflow: hidden;
    border-top: 1px solid var(--board-row-border);
    padding: 8px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
}

#live-departure-board .lt-board__ticker.is-off {
    display: none;
}

#live-departure-board .lt-board__ticker-track {
    display: flex;
    width: max-content;
    font-size: 14px !important;
    animation-name: lt-board-ticker;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

#live-departure-board .lt-board__ticker-item {
    white-space: nowrap;
    padding: 0 3em;
}

@keyframes lt-board-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1200px) {
    #live-departure-board .lt-board {
        --col-template: minmax(0, 1fr) 6.2rem 7rem max-content max-content max-content;
    }
    #live-departure-board .lt-board__cell,
    #live-departure-board .lt-board__cell.col-time {
        font-size: 12px;
        padding: 8px 6px;
    }
    #live-departure-board .lt-board__cell.col-status {
        font-size: 10px;
    }
    #live-departure-board .lt-board__head .lt-board__cell,
    #live-departure-board .lt-board__head .lt-board__cell.col-time,
    #live-departure-board .lt-board__head .lt-board__cell.col-status {
        font-size: 9.5px;
        padding: 7px 6px;
    }
    #live-departure-board .lt-board__head .col-name,
    #live-departure-board .lt-board__head .col-address,
    #live-departure-board .lt-board__head .col-bus,
    #live-departure-board .lt-board__cell.col-name,
    #live-departure-board .lt-board__cell.col-address,
    #live-departure-board .lt-board__cell.col-bus {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    #live-departure-board .lt-board__bar {
        padding: 6px 12px;
        font-size: 12px;
    }
    #live-departure-board .lt-board__head {
        display: none;
    }
    #live-departure-board .lt-board__body {
        display: block;
        padding: 10px;
    }
    #live-departure-board .lt-board__row {
        display: block;
        margin-bottom: 10px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 15px;
        background: rgba(255, 255, 255, .02);
        overflow: hidden;
    }
    #live-departure-board .lt-board__row:last-child {
        margin-bottom: 0;
    }
    #live-departure-board .lt-board__cell {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        width: auto;
        padding: 8px 13px;
        border-bottom: 1px solid rgba(255, 255, 255, .045);
        font-size: 12.5px;
        white-space: normal;
        justify-content: stretch;
        text-align: left;
    }
    #live-departure-board .lt-board__cell:last-child {
        border-bottom: 0;
    }
    #live-departure-board .lt-board__cell::before {
        content: attr(data-label);
        color: rgba(255, 255, 255, .40);
        font-size: 9.5px;
        line-height: 1.35;
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
    #live-departure-board .lt-board__cell.col-name {
        display: block;
        padding: 13px 13px 11px;
        font-size: 14px;
        background: #142535;
    }
    #live-departure-board .lt-board__cell.col-name::before {
        display: none;
    }
    #live-departure-board .lt-board__cell.col-time,
    #live-departure-board .lt-board__cell.col-status {
        justify-content: flex-start;
        font-size: 14px;
    }
    #live-departure-board .lt-board__ticker {
        min-height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #live-departure-board .lt-board__pulse,
    #live-departure-board .lt-board__ticker-track {
        animation: none;
    }
}
