/* Сброс всех отступов для AI-экспресса */
.ai-express-compact,
.ai-express-compact * {
    box-sizing: border-box;
}

/* Компактный AI-экспресс */
.ai-express-compact {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.98));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 10px 18px !important;
    margin: 10px auto 6px auto !important;
    width: 100%;
    max-width: 736px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(102, 126, 234, 0.08) inset,
        0 10px 26px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(0, 210, 255, 0.10);
}

/* Светящиеся границы слева/справа */
.ai-express-compact::before,
.ai-express-compact::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(0, 210, 255, 0.0),
        rgba(0, 210, 255, 0.75),
        rgba(0, 210, 255, 0.0)
    );
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.24), 0 0 18px rgba(58, 123, 213, 0.16);
    pointer-events: none;
}

.ai-express-compact::before {
    left: 0;
}

.ai-express-compact::after {
    right: 0;
}

/* ЗАГОЛОВОК — минимальная высота */
.express-header-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    line-height: 1 !important;
    min-height: 20px !important;
}

.express-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 3px 10px !important;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: 600;
    color: white;
    line-height: 1.2 !important;
}

.express-header-right {
    display: flex !important;
    gap: 16px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1 !important;
}

.express-header-right span {
    color: white;
    font-weight: 600;
    margin-left: 3px;
}

/* СОБЫТИЯ — нормальная высота для команд, минимальная для остального */
.express-legs-compact {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 4px 0 6px !important;
    padding: 0 !important;
}

.express-leg-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    line-height: 1.3 !important;
    min-height: 28px !important;
}

.express-leg-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.leg-left {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex: 1;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
}

/* Названия команд — НЕ ТРОГАЕМ ВЫСОТУ */
.leg-teams {
    font-size: 13px !important;
    font-weight: 500;
    color: white;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leg-market {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leg-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* Вероятность и уверенность — МИНИМАЛЬНАЯ ВЫСОТА */
.leg-prob {
    font-size: 16px !important;
    font-weight: 700;
    color: #00d2ff;
    min-width: 45px;
    text-align: right;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.leg-confidence {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 6px !important;
    border-radius: 16px;
    min-width: 60px;
    text-align: center;
    line-height: 1.2 !important;
    white-space: nowrap;
}

/* ФУТЕР — минимальная высота */
.express-footer-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1 !important;
    min-height: 24px !important;
    gap: 10px;
}

.express-footer-left {
    display: flex !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap;
}

.footer-stat {
    display: flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.footer-label {
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1 !important;
}

.footer-value {
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.1 !important;
}

.footer-value.highlight {
    color: #00d2ff;
}

.express-footer-right {
    display: flex !important;
    gap: 5px !important;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 4px 10px !important;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.2 !important;
}

.btn-icon.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

/* ДИСКЛЕЙМЕР — минимальная высота */
.express-disclaimer-compact {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    margin-top: 5px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

