/* Advanced Match Analytics Styles - Compact */
/* Kill Tabler purple: --tblr-color10 must be green here */
.advanced-match-analytics-container {
    --tblr-color10: #acdd00 !important;
    --tblr-primary: #acdd00 !important;
    padding: 0;
    background: transparent;
}

.analytics-section {
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.advanced-match-analytics-container .section-header {
    background: #acdd00 !important;
    background: linear-gradient(135deg, #acdd00 0%, #8ab800 100%) !important;
    background-color: #acdd00 !important;
    padding: 8px 12px;
    border-bottom: none;
}

.section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.section-title i {
    font-size: 14px;
}

/* xG Visualization */
.xg-content,
.time-periods-content {
    padding: 12px;
}

.xg-loading,
.periods-loading {
    text-align: center;
    padding: 24px 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.xg-error,
.periods-error {
    padding: 12px;
    font-size: 13px;
}

/* xG Comparison */
.xg-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xg-team {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.xg-bar-container {
    position: relative;
    width: 100%;
    height: 36px;
    background: #1a365d !important;
    border-radius: 6px;
    overflow: hidden;
}

.xg-bar {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xg-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #acdd00 0%, #8ab800 100%) !important;
    background-color: #acdd00 !important;
    transition: width 0.6s ease;
    border-radius: 6px;
}

.xg-value {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.xg-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #334155;
}

.xg-stat strong {
    color: #1e293b;
    margin-right: 3px;
}

/* xG by Periods */
.xg-periods {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.xg-periods h6 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.periods-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.period-home,
.period-away {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.period-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
}

.period-bar {
    position: relative;
    height: 24px;
    background: #1a365d !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
}

.period-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #acdd00 0%, #8ab800 100%) !important;
    background-color: #acdd00 !important;
    transition: width 0.6s ease;
    border-radius: 4px;
}

.period-value {
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 11px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Time Periods Analysis — наш зелёный */
.periods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.team-periods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advanced-match-analytics-container .team-periods-header {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #acdd00 0%, #8ab800 100%);
    padding: 8px 10px;
    border-radius: 6px;
    border-bottom: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.advanced-match-analytics-container .period-item {
    padding: 8px 10px;
    background: rgba(172, 221, 0, 0.08);
    border-radius: 6px;
    border-left: 3px solid #acdd00;
}

.advanced-match-analytics-container .period-name {
    font-weight: 600;
    font-size: 12px;
    color: #2d5a27;
    margin-bottom: 6px;
}

.period-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.advanced-match-analytics-container .time-periods-section .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1e4620;
}

.advanced-match-analytics-container .time-periods-section .stat-item i {
    color: #acdd00;
    font-size: 11px;
}

.advanced-match-analytics-container .time-periods-section .stat-item .goals-stat,
.advanced-match-analytics-container .time-periods-section .stat-item .conceded-stat,
.advanced-match-analytics-container .time-periods-section .stat-item .attacks-stat {
    font-weight: 700;
    color: #1a5f1a;
}

/* Responsive */
@media (max-width: 768px) {
    .periods-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .xg-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .period-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .xg-content,
    .time-periods-content {
        padding: 10px;
    }
    
    .section-header {
        padding: 6px 10px;
    }
    
    .section-title {
        font-size: 13px;
    }
}

