/* Match Results Enhanced Styles */
.cls-match-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header with gradient background */
.cls-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
}

.cls-results-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cls-results-filters {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cls-results-filters select {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cls-results-filters select:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cls-results-filters select option {
    background: #667eea;
    color: white;
}

.cls-loading-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

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

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

/* Enhanced Matches List */
.cls-matches-list {
    display: grid;
    gap: 25px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cls-match-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cls-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cls-match-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cls-match-header {
    margin-bottom: 25px;
}

.cls-match-header h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

.cls-match-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cls-format {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cls-date {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cls-date::before {
    content: '📅';
    font-size: 16px;
}

/* Enhanced Match Scores */
.cls-match-scores {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.cls-innings-score {
    text-align: center;
    flex: 1;
    padding: 10px;
}

.cls-team-name {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cls-score {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.cls-overs {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.cls-vs {
    font-weight: 700;
    color: #a0aec0;
    margin: 0 20px;
    font-size: 16px;
    position: relative;
}

.cls-vs::before,
.cls-vs::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a0aec0, transparent);
    top: 50%;
}

.cls-vs::before {
    left: -30px;
}

.cls-vs::after {
    right: -30px;
}

/* Enhanced Match Result */
.cls-match-result {
    margin-bottom: 25px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e6fffa, #f0fff4);
    border-radius: 12px;
    border-left: 4px solid #38b2ac;
}

.cls-result-text {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 500;
}

.cls-winner {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #38b2ac, #319795);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Buttons */
.cls-view-details-btn, .cls-back-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cls-view-details-btn::before, .cls-back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cls-view-details-btn:hover::before, .cls-back-btn:hover::before {
    left: 100%;
}

.cls-view-details-btn:hover, .cls-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced Match Details */
.cls-match-details {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease-out;
}

.cls-match-details .cls-match-header h2 {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cls-toss-info {
    background: linear-gradient(135deg, #e6f3ff, #f0f8ff);
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 20px;
    color: #2b6cb0;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #3182ce;
}

.cls-final-result {
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    border: 2px solid #68d391;
    position: relative;
    overflow: hidden;
}

.cls-final-result::before {
    content: '🏆';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 60px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.cls-final-result h3 {
    margin: 0 0 15px 0;
    color: #2f855a;
    font-size: 28px;
    font-weight: 800;
}

.cls-final-result p {
    margin: 0;
    color: #38a169;
    font-size: 18px;
    font-weight: 600;
}

/* Enhanced Innings Details */
.cls-innings-details {
    margin: 40px 0;
}

.cls-innings-section {
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    background: white;
}

.cls-innings-section h4 {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    margin: 0;
    padding: 20px 30px;
    font-size: 20px;
    color: white;
    font-weight: 700;
    position: relative;
}

.cls-innings-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.cls-innings-summary {
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.cls-total-score {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.cls-runs-wickets {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cls-overs, .cls-run-rate {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Enhanced Stats Tables */
.cls-batting-stats, .cls-bowling-stats {
    padding: 30px;
    border-top: 1px solid #e2e8f0;
}

.cls-batting-stats h5, .cls-bowling-stats h5 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cls-stats-table {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cls-stats-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.cls-stats-table th {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cls-stats-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cls-stats-table tr:hover {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.cls-stats-table tr:last-child td {
    border-bottom: none;
}

/* Enhanced Player Points */
.cls-player-points {
    padding: 30px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #fffbf0, #fef5e7);
}

.cls-player-points h5 {
    margin: 0 0 25px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cls-points-list {
    display: grid;
    gap: 16px;
}

.cls-player-point-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    border: 2px solid #fed7aa;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.1);
    transition: all 0.3s ease;
}

.cls-player-point-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.2);
}

.cls-player-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
}

.cls-total-points {
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
}

.cls-points-breakdown {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: flex-end;
}

.cls-point-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Status Messages */
.cls-no-matches, .cls-error, .cls-loading-message {
    text-align: center;
    padding: 80px 20px;
    color: #4a5568;
    font-size: 18px;
    font-weight: 500;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.cls-error {
    color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border: 2px solid #fc8181;
}

.cls-loading-message {
    background: linear-gradient(135deg, #e6f3ff, #bee3f8);
    color: #2b6cb0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cls-match-results-container {
        padding: 15px;
    }
    
    .cls-results-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 25px;
    }
    
    .cls-results-header h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .cls-results-filters {
        justify-content: center;
    }
    
    .cls-match-scores {
        flex-direction: column;
        gap: 20px;
    }
    
    .cls-vs {
        margin: 0;
        transform: rotate(90deg);
    }
    
    .cls-vs::before,
    .cls-vs::after {
        display: none;
    }
    
    .cls-total-score {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cls-runs-wickets {
        font-size: 28px;
    }
    
    .cls-stats-table {
        font-size: 12px;
    }
    
    .cls-stats-table th,
    .cls-stats-table td {
        padding: 10px 6px;
    }
    
    .cls-player-point-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    
    .cls-points-breakdown {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cls-match-details {
        padding: 25px;
    }
    
    .cls-match-details .cls-match-header h2 {
        font-size: 28px;
    }
    
    .cls-final-result h3 {
        font-size: 24px;
    }
    
    .cls-final-result p {
        font-size: 16px;
    }
    
    .cls-runs-wickets {
        font-size: 24px;
    }
    
    .cls-innings-section h4 {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .cls-innings-summary,
    .cls-batting-stats,
    .cls-bowling-stats,
    .cls-player-points {
        padding: 20px;
    }
}

/* Custom scrollbar */
.cls-stats-table::-webkit-scrollbar {
    height: 8px;
}

.cls-stats-table::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.cls-stats-table::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

.cls-stats-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Pulse animation for loading */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cls-loading-message {
    animation: pulse 2s ease-in-out infinite;
}