:root {
    --primary-gradient: linear-gradient(135deg, #61ad67 0%, #073c21);
    --secondary-gradient: linear-gradient(135deg, #0f766e 0%, #065f46 100%);
    --success-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
    --warning-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --primary-color: #1d4ed8;
    --primary-dark: #073c21;
    --secondary-color: #0891b2;
    --accent-color: #61ad67;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --background: #0f172a;
    --background-alt: #1e293b;
    --background-dark: #334155;
    --border-color: #475569;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fn-footer-bottom a {
    background-color: transparent;
    color: #61ad67 !important;
    text-decoration: none;
}

p {
    
    color: #161a19;
}

a::hover {
    
   color: #073c21 !important; 
}
       p { 
        color: #cde1cb;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Cairo', sans-serif !important;

            line-height: 1.6;
            color: var(--text-primary);
            background: linear-gradient(135deg, #161a19 0%, #161a19 100%);
            background-attachment: fixed;
            direction: rtl;
            overflow-x: hidden;
        }

        /* Enhanced Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--background-alt);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-gradient);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #cc336600 !important;

}

.date-item.hover-active {
    background: #e0f7fa !important;
    color: #00796b !important;
}

.date-item:hover {
    background: #f0f8ff;
    color: #0056b3;
}

        /* Enhanced Loading Animation */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 1;
            transition: var(--transition);
        }

        .loader-content {
            text-align: center;
            color: white;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


        

        .container {
            padding: 0 4rem;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Enhanced Loading Animation */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 1;
            transition: var(--transition);
        }

        .loader-content {
            text-align: center;
            color: white;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

.match-header {
    width: 100%;
    color: white;
    padding: 2rem 0 !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    justify-content: center !important;
    background-image: url(/wp-content/uploads/2025/09/hero.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
}

/* البلور */
.match-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: inherit;
    background-repeat: inherit;
    background-position: inherit;
    filter: blur(10px);
    transform: scale(1.1);
    z-index: 0;
}

/* الجـراديـنت */
.match-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #161a19 0%, #161a19 0%, #161a1900 90%) !important;;
    z-index: 1;
}

.match-header > * {
    position: relative;
    z-index: 2; /* فوق كل حاجة */
}

.team-mini{
    
        color: #61ad67;
}

.weather-info {
    
    color: #ffffff !important;
    text-align: center !important;
}




        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 2rem;
            font-size: 0.9rem;
            animation: slideInUp 0.8s ease-out;
        }

        .breadcrumb a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: var(--transition);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }

        .breadcrumb a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }

        .match-info {
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .competition-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 3rem;
            animation: slideInDown 0.8s ease-out;
        }

        .competition-badge span {
           background: linear-gradient(135deg, #61ad67 0%, #073c21);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    border-radius: var(--radius-lg);
    border: 0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 21%), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        }

        .competition-badge span:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .live-indicator {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: var(--success-gradient);
            border-radius: 2rem;
            font-weight: 700;
            animation: pulse 2s infinite;
        }

        .live-dot {
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            animation: livePulse 1.5s infinite;
        }

        @keyframes livePulse {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.2); }
            100% { opacity: 1; transform: scale(1); }
        }

        .teams-section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4rem;
            margin-bottom: 3rem;
            animation: zoomIn 1s ease-out;
        }

        .team {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: var(--transition);
            flex-direction: column;
        }
        

            .animate-in {
                animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            }

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

            .lineup-tables, .substitutes-tables, .substitutions-tables {
                display: flex;
                gap: 2rem;
                margin-top: 2rem;
            }
            .team-table {
               flex: 1;
    display: flex
;
    flex-direction: column;
    width: 250px;
            }
            .team-table h4 {
                text-align: center;
                margin-bottom: 1rem;
                color: #61ad67 ;
            }
            
            
            .player {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin: 0.25rem;
            }
            .player-number {
                width: 30px;
                height: 30px;
                background: #61ad67;
                color: white;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
                font-size: 0.8rem;
                margin-bottom: 0.25rem;
            }
            .player-name {
                font-size: 0.75rem;
                text-align: center;
                max-width: 60px;
                word-wrap: break-word;
            }



        .team.away-team {
            flex-direction: column-reverse;
        }

        .team-logo1 {
            position: relative;
            width:auto !important;
            height: auto !important;
        }

        .team-crest {
       width: 100px;
    height: 100px;
    /* border-radius: 50%; */
    background-size: cover;
    /* background-position: center; */
    /* background-color: #fff; */
    /* box-shadow: var(--shadow-xl); */
    /* border: 4px solid rgba(255, 255, 255, 0.3); */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
        }

        .team-crest::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            transform: rotate(45deg);
            transition: var(--transition);
        }

        .team:hover .team-crest::before {
            animation: shine 0.8s ease-in-out;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .team-info h2 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
                text-align: center;
        }

        .team-info p {
            font-size: 1rem;
            opacity: 0.9;
            font-weight: 500;
            text-align: center;

        }

        .score-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            animation: bounceIn 1s ease-out;
        }

        .score-display {
            font-size: 4rem;
            font-weight: 900;
            text-shadow: 4px 4px 8px rgba(0,0,0,0.3);
            animation: scoreAnimation 2s ease-out;
        }

        @keyframes scoreAnimation {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); opacity: 1; }
        }

        .separator {
            margin: 0 1rem;
            opacity: 0.7;
        }

        .match-time {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            border-radius: var(--border-radius-lg);
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .time {
           font-size: 1rem;
    font-weight: 300;
    display: block;
    margin-bottom: 0.25rem;
    color: #61ad67;
    gap: 0;
    display: flex
;
    align-items: center;
    justify-content: center;
        }

        .status {
            font-size: 1rem;
            opacity: 0.9;
            font-weight: 600;
        }

        .match-details {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            animation: fadeInUp 1s ease-out 0.5s both;
        }

        .detail-item {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 1rem 1.5rem;
            border-radius: var(--border-radius);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: var(--transition);
            text-align: center;
            color:#e1e1e1;
        }

        .detail-item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }

        .label {
            font-size: 0.9rem;
            opacity: 0.8;
            font-weight: 500;
        }

        .value {
            font-weight: 700;
            font-size: 1.1rem;
        }

        .goal-scorers {
            display: flex;
            justify-content: space-between;
            gap: 3rem;
            animation: fadeInUp 1s ease-out 0.7s both;
        }

        .home-scorers,
        .away-scorers {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .away-scorers {
            align-items: flex-end;
        }

        .scorer {
 display: flex
;
    align-items: center;
    /* background: rgba(255, 255, 255, 0.15); */
    backdrop-filter: blur(10px);
    /* padding: 0.75rem 1.5rem; */
    /* border-radius: var(--border-radius); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    transition: var(--transition);
    animation: slideInLeft 0.8s 
ease-out;
        }

        .away-scorers .scorer {
            animation: slideInRight 0.8s ease-out;
        }

        .scorer:hover {

        }

        .away-scorers .scorer:hover {
            transform: translateX(-5px);
        }

        /* Enhanced Tabs with Sliding Indicator */
        .match-tabs-section {
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            box-shadow: var(--shadow);
            position: sticky;
            top: 80px;
            z-index: 9;
            margin-bottom: 2rem;
            
        }

        .match-tabs {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            position: relative;
        }

        .tab-indicator {
    position: absolute;
    bottom: 0;
    height: 4px;
    background: #61ad67;
    border-radius: 2px 2px 0 0;
    transition: var(--transition);
    z-index: 1;
        }

        .match-tabs .tab-btn {
  flex: 1;
    min-width: 140px;
    background: none;
    font-size: 1rem;
    white-space: nowrap;
    position: relative;
    border: none;
    color: #cde1cb;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    padding: 0.8rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
        }

        .match-tabs .tab-btn:hover {
background: rgb(102 234 145 / 10%);
    color: white;
        }

        .match-tabs .tab-btn.active {
          color: #ffffff;
    background: linear-gradient(135deg, #61ad67 0%, #073c21);
        }

        .match-tabs .tab-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            width: 0;
            height: 100%;
            transition: var(--transition);
            transform: translateX(-50%);
        }

        .match-tabs .tab-btn:hover::before,
        .match-tabs .tab-btn.active::before {
            width: 100%;
        }

        /* Enhanced Content with Staggered Animations */
        .match-content {
            padding: 2rem 0;
            min-height: 80vh;
        }

        .tab-content {
            display: none;
            animation: fadeInUp 0.6s ease-out;
        }

        .tab-content.active {
            display: block;
        }

        /* Enhanced Summary Grid */
        .summary-grid {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 2rem;
        }

        .summary-main,
        .summary-sidebar {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .standings-widget {
            padding: 1rem !important;
        }

        .standings-widget .card-header {
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
        }

        .standings-widget .card-title {
            font-size: 1.2rem;
        }

        .standings-widget .table-header,
        .standings-widget .table-row {
            grid-template-columns: 40px 2fr 60px;
            font-size: 0.9rem;
            padding: 0.5rem 0.25rem;
        }

        .standings-widget .team-name {
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Enhanced Cards with Glassmorphism */
        .card {
 background: linear-gradient(135deg, #101c11 0%, #010a06ba);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #61ad6785;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(-90deg, #61ad67, #81f7c8);
            transform: translateX(-100%);
            transition: var(--transition);
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
        }

        .card:hover::before {
            transform: translateX(0);
        }

        .card-header {
        display: flex
;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #61ad6785;
        }

        .card-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #61ad67 0%, #073c21);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            box-shadow: var(--shadow);
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 800;
            background: white;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Enhanced Predictions */
        .prediction-options {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .prediction-option {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1rem;
            background: #7cda831a;
            border-radius: var(--border-radius);
            transition: var(--transition);
                border: 1px solid #61ad6785;
        }

 

        .prediction-team {
            min-width: 140px;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text-primary);
        }

        .prediction-bar {
            flex: 1;
            height: 12px;
            background: #073c21;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
        }

        .prediction-fill {
            height: 100%;
            background: #61ad67;
            border-radius: 6px;
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .prediction-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .prediction-percentage {
            min-width: 50px;
            font-weight: 800;
            color: #61ad67;
            font-size: 1.2rem;
            text-align: center;
        }

        .voting-section {
            text-align: center;
            padding-top: 2rem;
            border-top: 2px solid var(--background-dark);
        }

        .vote-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .vote-btn {
    font-size: 1rem;
    color: #61ad67;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid #61ad6785;
        }

        .vote-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #61ad67 0%, #073c21);
            transition: var(--transition);
            z-index: -1;
        }

        .vote-btn:hover::before {
            left: 0;
        }

        .vote-btn:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Enhanced Timeline */
        .timeline {
            position: relative;
            padding-right: 30px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            right: 15px;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--primary-gradient);
            border-radius: 2px;
        }

        .timeline-event {
    margin-bottom: 2rem;
    position: relative;
    padding: 1.5rem;
    transition: var(--transition);
    animation: slideInRight 0.8s 
ease-out;
    display: flex
;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-lg);
    background: #7cda831a;
    border-radius: var(--border-radius);
    border: 1px solid #61ad6785;
        }

        .timeline-event:hover {
            transform: translateX(-10px);
            box-shadow: var(--shadow-xl);
        }

        .timeline-event::after {
            content: '';
            position: absolute;
            right: -38px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            background: var(--primary-gradient);
            border-radius: 50%;
            border: 4px solid white;
            box-shadow: var(--shadow);
        }

        .event-time {
    font-weight: 800;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
        }

        .event-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.8rem;
            transition: var(--transition);
        }

        .event-icon:hover {
            transform: scale(1.1) rotate(10deg);
        }

        .event-icon.goal {
            background: var(--success-gradient);
            color: white;
        }

        .event-icon.card {
            background: var(--warning-gradient);
            color: white;
        }

        .event-icon.substitution {
            background: var(--secondary-gradient);
            color: white;
        }

        .event-detail {
            flex: 1;
        }

        .event-detail strong {
            color: var(--text-primary);
            font-size: 1.3rem;
            font-weight: 800;
            display: block;
            margin-bottom: 0.5rem;
        }

        .event-detail .player-name {
           color: #7cda83;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    max-width: 100%;
    text-align: right;
        }

        .event-detail p {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Enhanced Statistics */
        .stats-grid {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .stat-row {
            display: flex
;
    align-items: center;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: #7cda831a;
    border-radius: var(--border-radius);
    border: 1px solid #61ad6785;
        }

        .stat-row::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgb(102 234 108 / 5%), transparent);
            transition: var(--transition);
        }

        .stat-row:hover::before {
            left: 100%;
            transition-duration: 0.6s;
        }

        .stat-row:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-xl);
        }

        .stat-value {
            flex: 0 0 80px;
            font-weight: 900;
            text-align: center;
            font-size: 1.4rem;
        }

        .stat-value.home {
            color: #61ad67;
        }

        .stat-value.away {
            color: #61ad67;
        }

        .stat-bar {
            flex: 1;
            height: 16px;
            background: var(--background-dark);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            margin: 0 1.5rem;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }

        .stat-fill {
            height: 100%;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .stat-fill.home {
            background: #073c21;
        }

        .stat-fill.away {
            background: #7cda83;
        }

        .stat-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: statShimmer 2s infinite 1s;
        }

        @keyframes statShimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .stat-label {
            flex: 1;
            text-align: center;
            font-weight: 700;
            color: var(--text-primary);
            font-size: 1.1rem;
        }

        /* Enhanced Standings */
        .standings-table {
            background: #7cda831a;
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            border: 1px solid #61ad6785;
        }

        .table-header {
            color: white;
            padding: 1.5rem 1rem;
            font-weight: 800;
            font-size: 1rem;
            display: grid;
            grid-template-columns: 50px 2fr 60px 60px 60px 60px 100px 60px;
            gap: 1rem;
            align-items: center;
        }

        .table-row {
            display: grid;
            grid-template-columns: 50px 2fr 60px 60px 60px 60px 100px 60px;
            gap: 1rem;
            padding: 1.25rem 1rem;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
            transition: var(--transition);
            position: relative;
            color: #cde1cb;
        }

        .table-row:hover {
            background: #8aff9014;
            transform: translateX(5px);
        }

        .table-row.highlighted {
            background: #66ea9b1a;
            border-left: 4px solid #61ad67;
            font-weight: 700;
        }

        .pos {
            text-align: center;
            font-weight: 800;
            font-size: 1.1rem;
            color: #61ad67;
        }

        .team-name {
            font-weight: 700;
            color: var(--text-primary);
        }

        .points {
            text-align: center;
            font-weight: 900;
            color: #61ad67;
            font-size: 1.2rem;
        }

        /* Enhanced Events List */
        .events-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .event-item {
          display: flex
;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideInUp 0.6s 
ease-out;
    background: #7cda831a;
    border-radius: var(--border-radius);
    border: 1px solid #61ad6785;
        }

        .event-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-xl);
        }

        .event-details strong {
            color: var(--text-primary);
            font-size: 1.3rem;
            font-weight: 800;
            display: block;
            margin-bottom: 0.5rem;
        }

        .event-details p {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Enhanced Formations */
        .formations-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .team-formation {
           box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    background: #7cda831a;
    border-radius: var(--border-radius);
    border: 1px solid #61ad6785;
        }

        .team-formation:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
        }

        .team-formation h4 {
            text-align: center;
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 2rem;
            color: var(--text-primary);
            background: #61ad67;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .formation-field {
            background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #2d5a27 100%);
            border-radius: var(--border-radius);
            padding: 2rem;
            min-height: 500px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 4px 8px rgba(0,0,0,0.2);
        }

        .formation-field::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: rgba(255,255,255,0.3);
            transform: translateY(-50%);
        }

        .formation-field::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 120px;
            height: 120px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

        .field-layer {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            z-index: 2;
        }

        .player {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
    min-width: 100px;
    transition: var(--transition);
    cursor: pointer;
        }

        .player:hover {
            transform: scale(1.1) translateY(-5px);

        }

        /* Enhanced Commentary */
        .commentary-feed {
            max-height: 600px;
            overflow-y: auto;
            padding: 1rem 0;
        }

        .commentary-item {
         display: flex
;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: slideInLeft 0.6s 
ease-out;
    background: #7cda831a;
    border-radius: var(--border-radius);
    border: 1px solid #61ad6785;
        }

        .commentary-item:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-lg);
        }

        .commentary-item.goal {
            background: #61ad674a;
                border-left: 3px solid #61ad67;
        }

        .commentary-time {
            min-width: 60px;
            font-weight: 800;
            color: white;
            background: var(--primary-gradient);
            padding: 0.5rem 1rem;
            border-radius: var(--border-radius);
            text-align: center;
            font-size: 1rem;
            box-shadow: var(--shadow);
            height: fit-content;
        }

        .comment-text {
            flex: 1;
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 1rem;
        }
        
        textarea {
    overflow: auto;
    resize: vertical;
    background: #7cda831a;
    border-radius: var(--border-radius)!important;
    transition: var(--transition)!important;
    border: 1px solid #61ad6785 !important;
            
            
        }

        .comment-text strong {
            color: var(--text-primary);
            font-weight: 700;
        }

     

        /* Enhanced Responsive Design */
        @media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .summary-sidebar {
        /* احذف السطر ده: order: -1; */
        /* أو غيره إلى order: 1; عشان يبقى بعد الـ main */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .teams-section {
        gap: 2rem;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }

    .match-details {
        gap: 1.5rem;
    }

        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }

            .nav-wrapper {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-menu {
                justify-content: center;
                flex-wrap: wrap;
                gap: 1rem;
            }

            .teams-section {
                flex-direction: row;
                gap: 2rem;
            }

            .team.away-team {
                flex-direction: column-reverse
            }

            .score-display {
                font-size: 2.5rem;
            }

            .team-crest {
                width: 80px;
                height: 80px;
            }

            .team-info h2 {
                font-size: 1.5rem;
            }

            .match-details {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }

            .goal-scorers {
                flex-direction: column;
                gap: 1rem;
            }

            .away-scorers {
                align-items: flex-start;
            }

            .match-tabs .tab-btn {
                padding: 0.75rem 0.5rem;
                min-width: 100px;
                font-size: 0.9rem;
            }

            .card {
                padding: 1.5rem;
            }

            .card-title {
                font-size: 1.3rem;
            }

            .table-header,
            .table-row {
                grid-template-columns: 40px 1fr 50px 50px 50px 50px 80px 50px;
                font-size: 0.85rem;
                padding: 0.75rem 0.5rem;
                gap: 0.5rem;
            }

            .formation-field {
                min-height: 400px;
                padding: 1rem;
            }

            .player {
                font-size: 0.75rem;
                min-width: 80px;
                padding: 0.5rem;
            }

            .prediction-option {
                flex-direction: column;
                align-items: stretch;
                gap: 0.5rem;
            }

            .prediction-team {
                min-width: auto;
                text-align: center;
            }

            .prediction-bar {
                order: 3;
            }

            .prediction-percentage {
                order: 2;
                text-align: center;
            }

            .stat-row {
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
                padding: 1rem;
            }

            .stat-bar {
                margin: 0;
                order: 3;
            }

            .stat-value {
                flex: none;
                text-align: center;
                font-size: 1.2rem;
            }

            .stat-label {
                order: 2;
                text-align: center;
            }

            .timeline-event {
                flex-direction: column;
                align-items: flex-start;
                gap: 0px;
                padding: 1rem;
            }

            .event-time {
                align-self: flex-end;
                min-width: auto;
                order: 1;
            }

            .event-icon {
                order: 2;
                align-self: center;
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
                align-self: inherit;
            }

            .event-detail {
                order: 3;
                text-align: center;
            }

            .event-detail strong {
                font-size: 1.1rem;
            }

            .event-item {
                flex-direction: column;
                align-items: flex-start;
                padding: 1rem;
            }

            .commentary-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
                padding: 1rem;
            }

            .commentary-time {
                align-self: flex-end;
                min-width: auto;
                order: 1;
            }

            .lineup-tables, .substitutes-tables, .substitutions-tables {
                flex-direction: column;
                gap: 1rem;
            }

            .vote-buttons {
                flex-direction: column;
            }

            .vote-btn {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 0.5rem;
            }

            .score-display {
                font-size: 2rem;
            }

            .team-crest {
                width: 60px;
                height: 60px;
            }

            .team-info h2 {
                font-size: 1.2rem;
            }

            .match-tabs .tab-btn {
                font-size: 0.8rem;
                padding: 0.5rem 0.25rem;
                min-width: 80px;
            }

            .card {
                padding: 1rem;
            }

            .card-title {
                font-size: 1.1rem;
            }

            .card-icon {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .table-header,
            .table-row {
                font-size: 0.75rem;
                padding: 0.5rem 0.25rem;
                gap: 0.25rem;
            }

            .player {
                font-size: 0.7rem;
                min-width: 70px;
               padding: 2px;
            }

            .formation-field {
                min-height: 350px;
                padding: 0.75rem;
            }

            .field-layer {
                gap: 0.5rem;
            }

            .prediction-percentage {
                font-size: 1rem;
            }

            .stat-value {
                font-size: 1rem;
            }

            .stat-label {
                font-size: 0.9rem;
            }

            .event-icon {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
                align-self: inherit;
                
            }

            .event-detail strong {
                font-size: 1rem;
            }

            .event-detail p {
                font-size: 0.9rem;
            }

            .comment-text {
                font-size: 0.9rem;
            }
        }

        /* Enhanced Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 40px, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 100%, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translate3d(-100%, 0, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translate3d(100%, 0, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translate3d(0, -100%, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes zoomIn {
            from {
                opacity: 0;
                transform: scale3d(0.3, 0.3, 0.3);
            }
            50% {
                opacity: 1;
            }
            to {
                opacity: 1;
                transform: scale3d(1, 1, 1);
            }
        }

        @keyframes bounceIn {
            from, 20%, 40%, 60%, 80%, to {
                animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            }
            0% {
                opacity: 0;
                transform: scale3d(.3, .3, .3);
            }
            20% {
                transform: scale3d(1.1, 1.1, 1.1);
            }
            40% {
                transform: scale3d(.9, .9, .9);
            }
            60% {
                opacity: 1;
                transform: scale3d(1.03, 1.03, 1.03);
            }
            80% {
                transform: scale3d(.97, .97, .97);
            }
            to {
                opacity: 1;
                transform: scale3d(1, 1, 1);
            }
        }

        /* Loading and Skeleton States */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: var(--border-radius);
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .fade-in {
            animation: fadeInUp 0.6s ease-out;
        }

        .stagger-animation > * {
            animation: fadeInUp 0.6s ease-out;
        }

@media (max-width: 768px) {
  .post-grid-container {
    justify-content: center;
  }
}

        .stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
        .stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
        .stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
        .stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
        .stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
        .stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }