/* ============================================================
   LIVESCORE 2.0 — Современный спортивный дизайн (Sofascore style)
   ============================================================ */

.ls-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
}

/* 1. Верхние навигационные вкладки */
.ls-nav-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 2px 0 6px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ls-nav-pills::-webkit-scrollbar {
    display: none;
}
.ls-nav-pills .nav-link {
    background: #ffffff;
    color: #334155 !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ls-nav-pills .nav-link:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
}
.ls-nav-pills .nav-link.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* 2. Темная плашка Hero-бар с датами */
.ls-hero-bar {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Слайдер дат */
.ls-date-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ls-date-strip::-webkit-scrollbar {
    display: none;
}
.ls-date-tab {
    flex: 1;
    min-width: 75px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 4px;
    color: #cbd5e1;
    text-decoration: none !important;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
}
.ls-date-tab .day-name {
    font-size: 0.70rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
}
.ls-date-tab .day-num {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
}
.ls-date-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.ls-date-tab.active {
    background: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}
.ls-date-tab.active .day-name,
.ls-date-tab.active .day-num {
    color: #0f172a !important;
}

/* 3. Горизонтальные чипы лиг (БЕЗ уродливого скроллбара) */
.ls-league-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.ls-league-chips::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.ls-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ls-chip:hover {
    background: #f8fafc;
    border-color: #0284c7;
    color: #0284c7;
}
.ls-chip.active {
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* 4. Сегментный фильтр по статусам (Все матчи, LIVE, Завершенные, Предстоящие) */
.ls-status-filter {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
    margin-bottom: 16px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ls-status-filter::-webkit-scrollbar {
    display: none;
}
.ls-status-filter a {
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ls-status-filter a:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}
.ls-status-filter a.active {
    background: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.ls-status-filter a.filter-live.active {
    color: #dc2626 !important;
}

/* Пульсирующий LIVE индикатор */
.ls-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    animation: ls-pulse-kf 1.4s infinite;
}
.ls-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    animation: ls-pulse-kf 1.4s infinite;
}
@keyframes ls-pulse-kf {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 5. Карточки турниров и матчей */
.ls-league-group {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.ls-league-head {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ls-league-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ls-league-table-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
}
.ls-league-table-link:hover {
    text-decoration: underline;
}

/* Карточка отдельного матча */
.ls-match-card {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s;
}
.ls-match-card:last-child {
    border-bottom: none;
}
.ls-match-card:hover {
    background: #f8fafc;
}

.ls-team-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ls-team-col.home {
    justify-content: flex-end;
    text-align: right;
}
.ls-team-col.away {
    justify-content: flex-start;
    text-align: left;
}

.ls-team-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.ls-team-logo-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Центральный блок счета и статуса */
.ls-center-col {
    min-width: 90px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.ls-score-display {
    font-weight: 900;
    font-size: 1.25rem;
    color: #0f172a;
    letter-spacing: 2px;
    line-height: 1.1;
}
.ls-time-display {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0284c7;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

/* Бейджи статусов */
.ls-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 12px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}
.ls-pill-live {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.ls-pill-ft {
    background: #f1f5f9;
    color: #475569;
}

/* Авторы голов (Хроника) */
.ls-scorers-strip {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    justify-content: space-between;
}

/* 6. Турнирные таблицы */
.ls-table-responsive {
    overflow-x: auto;
}
.ls-standings-table, .ls-table {
    width: 100%;
}
.ls-standings-table th, .ls-table th {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.78rem;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 8px;
    letter-spacing: 0.5px;
    border: none;
}
.ls-standings-table td, .ls-table td {
    padding: 9px 8px;
    text-align: center;
    font-size: 0.86rem;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}
.ls-cl-zone, .ls-zone-ucl { border-left: 4px solid #0284c7 !important; }
.ls-el-zone, .ls-zone-uel { border-left: 4px solid #f97316 !important; }
.ls-rel-zone, .ls-zone-rel { border-left: 4px solid #ef4444 !important; }

/* Мобильная адаптация */
@media (max-width: 576px) {
    .ls-team-name {
        font-size: 0.82rem;
    }
    .ls-team-logo {
        width: 20px;
        height: 20px;
    }
    .ls-score-display {
        font-size: 1.1rem;
    }
    .ls-center-col {
        min-width: 75px;
        padding: 0 6px;
    }
    .ls-date-tab {
        min-width: 65px;
        padding: 6px 4px;
    }
}
