/* Cricket Live Score Shortcode Styles */
.cls-live-score-container {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Match Selector */
.cls-match-selector {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cls-match-selector label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.cls-match-selector select,
#cls-match-dropdown {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.cls-loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007cba;
    font-size: 14px;
}

.cls-loading-spinner span {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Live Matches Message */
.cls-no-live-matches {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 40px 20px;
    border: 2px dashed #cbd5e0;
}

.cls-message-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.cls-no-live-matches h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
}

.cls-no-live-matches p {
    margin: 10px 0;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.cls-message-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.cls-message-note small {
    font-size: 14px;
    color: #718096;
    font-style: italic;
}

/* Match Completed Message */
.cls-match-completed {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 40px 20px;
    border: 2px solid #fc8181;
}

.cls-match-completed h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
}

.cls-match-completed h4 {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 20px;
    font-weight: 600;
}

.cls-final-result {
    font-size: 18px;
    font-weight: 700;
    color: #c53030;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid #f56565;
}

/* Match Header */
.cls-match-header {
    padding: 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
}

.cls-match-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.cls-match-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cls-match-details span {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.cls-status-live {
    background: #dc3545 !important;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cls-toss-info {
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

/* Current Score */
.cls-current-score {
    padding: 25px 20px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.cls-score-main {
    font-size: 48px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 10px;
}

.cls-runs {
    color: #28a745;
}

.cls-separator {
    color: #6c757d;
    margin: 0 8px;
}

.cls-wickets {
    color: #dc3545;
}

.cls-score-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
    color: #495057;
}

/* Innings Tabs */
.cls-innings-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.cls-innings-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cls-innings-tab:hover {
    background: #e9ecef;
    color: #007cba;
}

.cls-innings-tab.active {
    background: #007cba;
    color: white;
    border-bottom: 3px solid #005a87;
}

/* Innings Content */
.cls-innings-content {
    display: none;
}

.cls-innings-content.active {
    display: block;
}

/* Enhanced Batting Section */
.cls-batting-section {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8fffe;
}

.cls-batting-section h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cls-batting-section h4:before {
    content: "🏏";
    font-size: 20px;
}

.cls-batsmen-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.cls-batsman-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cls-batsman-card.striker {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.cls-batsman-card.striker:before {
    content: "⚡ ON STRIKE";
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cls-batsman-name {
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cls-batsman-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cls-stat-item {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.cls-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 2px;
}

.cls-stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Enhanced Bowling Section */
.cls-bowling-section {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #fffaf0;
}

.cls-bowling-section h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cls-bowling-section h4:before {
    content: "⚾";
    font-size: 20px;
}

.cls-bowler-card {
    background: white;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
    max-width: 500px;
    margin: 0 auto;
}

.cls-bowler-card:before {
    content: "🎯 BOWLING";
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: center;
}

.cls-bowler-name {
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.cls-bowler-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Enhanced Extras Section */
.cls-extras-section {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #fff5f5;
}

.cls-extras-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cls-extras-section h4:before {
    content: "📊";
    font-size: 18px;
}

.cls-extras-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cls-extra-item {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cls-extra-total {
    padding: 10px 16px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

/* Error and No Data States */
.cls-error,
.cls-no-data,
.cls-no-match-selected {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

.cls-error {
    color: #dc3545;
    background: #f8d7da;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cls-match-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cls-match-selector select,
    #cls-match-dropdown {
        min-width: auto;
    }
    
    .cls-no-live-matches,
    .cls-match-completed {
        margin: 20px 10px;
        padding: 40px 20px;
    }
    
    .cls-message-icon {
        font-size: 48px;
    }
    
    .cls-no-live-matches h3,
    .cls-match-completed h3 {
        font-size: 24px;
    }
    
    .cls-match-title {
        font-size: 20px;
    }
    
    .cls-score-main {
        font-size: 36px;
    }
    
    .cls-score-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .cls-innings-tabs {
        flex-direction: column;
    }
    
    .cls-batsmen-cards {
        grid-template-columns: 1fr;
    }
    
    .cls-batsman-stats,
    .cls-bowler-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cls-extras-breakdown {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cls-live-score-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .cls-match-header {
        padding: 15px;
    }
    
    .cls-current-score {
        padding: 20px 15px;
    }
    
    .cls-batting-section,
    .cls-bowling-section,
    .cls-extras-section {
        padding: 15px;
    }
    
    .cls-batsman-card,
    .cls-bowler-card {
        padding: 15px;
    }
    
    .cls-batsman-stats,
    .cls-bowler-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Compact View */
.cls-live-score-container[data-view="compact"] .cls-batting-section,
.cls-live-score-container[data-view="compact"] .cls-bowling-section,
.cls-live-score-container[data-view="compact"] .cls-extras-section {
    display: none;
}

.cls-live-score-container[data-view="compact"] .cls-current-score {
    padding: 20px;
}

.cls-live-score-container[data-view="compact"] .cls-score-main {
    font-size: 36px;
}