.train-widget {
    box-sizing: content-box !important;
    text-align: left;
    position: fixed;
    top: 90px;
    right: -340px; /* -340px: и виджет и INFO-язычок полностью за экраном */
    width: 260px;
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #070e2e;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 10000;
    transition: right 0.4s ease-in-out;
}

/* Появляется при клике на иконку игрока */
.train-widget.player-active {
    right: 20px;
}

/* ОДНА ВАТЕРМАРКА ПО ЦЕНТРУ */
.train-widget::before {
    content: "PC|MP";
    position: absolute;
    top: 53%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 60px;
    font-weight: 900;
    color: #070e2e;
    opacity: 0.07; /* Прозрачность */
    pointer-events: none;
    z-index: 0;
}

/* Красим "on time" в зеленый БЕЗ правок в HTML */
/* Мы ищем блок .value, внутри которого есть текст про статус */
.widget-section:nth-child(4) .value {
    color: #1a7e32 !important;
    font-weight: 800;
}

/* Гарантируем, что текст выше ватермарки */
.widget-section, .widget-row, .widget-footer, .widget-divider {
    position: relative;
    z-index: 2;
}

.label {
    font-size: 10px;
    color: #666; 
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    font-weight: 700;
}

.white-text { 
    color: #000; 
    font-weight: 700; 
}

.orange-text { 
    color: #3458e1; 
    font-weight: 700; 
} 

.large-text { 
    font-size: 22px; 
    font-weight: 800; 
    color: #3458e1; 
    line-height: 1.1;
}

.value {
    font-size: 15px;
    font-weight: 700;
}

#wp-loco {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    white-space: normal;
}

.route-line {
    padding-left: 10px;
    border-left: 4px solid #3458e1;
    margin-top: 4px;
    line-height: 1.2;
}

.widget-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.widget-section {
    margin-bottom: 10px;
}

.widget-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 12px 0;
}

.signal-dot {
    width: 12px;
    height: 12px;
    background-color: #ff3b3b;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(255, 59, 59, 0.3);
    margin-left: 8px;
}

.widget-footer {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
/* Создаем белый язычок слева от виджета */
/* Создаем белый язычок слева от виджета */
.train-widget::after {
    content: "INFO"; 
    position: absolute;
    left: -31px; /* Чуть прижали к основному блоку для плотности */
    top: 30px;
    width: 30px;
    height: 80px;
    background-color: #ffffff;
    border: 1px solid #070e2e;
    border-right: none;
    border-radius: 8px 0 0 8px;
    
    /* ЦЕНТРИРУЕМ ТЕКСТ И СТАВИМ ЕГО ПРЯМО */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Магия расположения текста вертикально (буква под буквой) */
    writing-mode: vertical-rl;
    text-orientation: upright; 
    
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 900;
    color: #070e2e;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}