/* team-squad.php */
.ahly-squad-365{
	background:#fff; 
	padding:12px; 
	border:1px solid #e9e9e9; 
	border-radius:14px
	}

.ahly-squad-section-365{
	background:#fff;
	border:1px solid #e9e9e9;
	border-radius:14px;
	margin-bottom:12px;
	overflow:hidden;
	box-shadow:0 2px 8px rgba(0,0,0,.03)
	}

.ahly-squad-head-365{
	height:64px;
	display:flex;
	align-items:center;
	padding:0 22px;
	border-bottom:1px solid #eee;
	background:#fff;
	position:relative
	}

.ahly-squad-head-365:before{content:"";width:5px;height:30px;background:#e51b2b;border-radius:8px;position:absolute;right:0;top:17px}

.ahly-squad-head-365 h3{margin:0;font-size:18px;font-weight:800;color:#111}

.ahly-country-flag{
    width:20px!important;
    height:14px!important;
    object-fit:cover!important;
    border-radius:2px;
    margin-left:5px;
    vertical-align:middle;
    box-shadow:0 0 0 1px rgba(0,0,0,.08);
}

.ahly-player-country-365{
    display:flex;
    align-items:center;
	justify-content: center;
    gap:4px;
    font-size:12px;
    color:#777;
    line-height:1.4;
    padding-top:5px;
    padding-bottom:20px;
	padding-right: 2px;
}

.ahly-staff-country-365{
    display:flex;
    align-items:center;
	justify-content: flex-start;
    gap:4px;
    font-size:15px;
    color:#777;
    line-height:1.4;
    padding-top:5px;
    padding-bottom:0px;
	padding-right: 2px;
}

.ahly-squad-grid-365{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    padding:18px
}

                        
.ahly-player-card-365{
    position:relative;
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:12px;
    min-height:320px;
    text-align:center;
    overflow:hidden;
    padding:0;
    box-shadow:0 1px 4px rgba(0,0,0,.025);
    display:flex;
    flex-direction:column;
}
                        
.ahly-player-num-365{position:absolute;top:12px;left:12px;width:38px;height:38px;border-radius:8px;background:#fff;border:2px solid #e7e7e7;box-shadow:0 2px 6px rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:red;z-index:2}

.ahly-player-captain-365{
    position:absolute;
    top:12px;
    left:12px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#f59e0b;
    color:#111827;
    border:2px solid #fff;
    box-shadow:0 2px 8px rgba(0,0,0,.14);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
    z-index:2;
}


.ahly-player-img-365{
    width:100%;
    overflow:hidden;
    margin:0;
    padding:0;
    line-height:0;
    flex-shrink:0;
    background:#fff;
}

.ahly-player-img-365 img{
    width:100%;
    height:auto;
    display:block;
}

                        
.ahly-no-player-img-365{
    width:100%;
    overflow:hidden;
    margin:0;
    padding:0;
    line-height:0;
    flex-shrink:0;
    background:#fff;
}

.ahly-no-player-img-365 img{
    width:100%;
    height:auto;
    display:block;
}
                        

.ahly-player-name-365{
    font-size:18px;
    font-weight:800;
    color:#111;
    line-height:1.35;
    padding-top:20px;
    padding-bottom:4px;
}
                        

.ahly-head-coach-wrap-365{
    padding:20px 42px
}

.ahly-staff-grid-365{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    padding:18px
}

.ahly-staff-card-365{display:flex;align-items:center;gap:14px;border:1px solid #e8e8e8;border-radius:12px;padding:14px;background:#fff}

.ahly-staff-img-365{
    width:100px;
    height:auto;
    min-width:80px;
    min-height:auto;
    overflow:hidden;
    background:#f1f1f1;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.ahly-staff-img-365 img{
    width:100%;
    height:auto;
    object-fit:cover;
    display:block;
}


.ahly-staff-placeholder-365{
    width:100%;
    height:100%;
    overflow:hidden;
    background:#fff;
}

.ahly-staff-placeholder-365 img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
                            
                            
.ahly-staff-name-365{
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
	}

.ahly-staff-role-365{font-size:12px;color:#777;margin-top:3px}

.ahly-debug-box{background:#fff3cd;border:1px solid #ffe08a;border-radius:10px;padding:12px;margin-bottom:12px;font-size:13px;color:#111;direction:ltr;text-align:left}

.ahly-count-365 {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #888 !important;
    margin-right: 8px;
}








@media(max-width:1200px){
    .ahly-squad-grid-365{grid-template-columns:repeat(3,1fr)}
    .ahly-staff-grid-365{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:992px){
    .ahly-squad-grid-365{grid-template-columns:repeat(3,1fr)}
    .ahly-staff-grid-365{grid-template-columns:repeat(2,1fr)}
}


@media(max-width:768px){
    .ahly-squad-grid-365, 
    .ahly-staff-grid-365,
	.ahly-head-coach-wrap-365{
		grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px !important;     
        padding: 12px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .ahly-squad-grid-365{grid-template-columns:repeat(1,1fr);gap:10px;padding:10px}
    
    /* Ã˜Â¬Ã˜Â¹Ã™â€ž Ã˜Â§Ã™â€žÃ˜Â¬Ã™â€¡Ã˜Â§Ã˜Â² Ã˜Â§Ã™â€žÃ™ÂÃ™â€ Ã™Å  Ã™Å Ã˜Â¸Ã™â€¡Ã˜Â± Ã™Æ’Ã˜Â§Ã˜Â±Ã˜ÂªÃ™Å Ã™â€  Ã˜Â¨Ã˜Â¬Ã˜Â§Ã™â€ Ã˜Â¨ Ã˜Â¨Ã˜Â¹Ã˜Â¶ Ã™â€žÃ˜ÂªÃ™â€šÃ™â€žÃ™Å Ã™â€ž Ã˜Â§Ã™â€žÃ™â€¦Ã˜Â³Ã˜Â§Ã˜Â­Ã˜Â© Ã˜Â§Ã™â€žÃ™â€¦Ã™â€¡Ã˜Â¯Ã˜Â±Ã˜Â©Ã˜Å’ Ã™â€¦Ã˜Â¹ Ã™â€¦Ã™â€ Ã˜Â¹ Ã˜Â§Ã™â€žÃ˜Â®Ã˜Â±Ã™Ë†Ã˜Â¬ Ã˜Â¹Ã™â€  Ã˜Â§Ã™â€žÃ˜Â¨Ã™Ë†Ã˜Â±Ã˜Â¯Ã˜Â± */
    .ahly-staff-grid-365{
		grid-template-columns: repeat(1, 1fr) !important;
        gap: 8px !important;      /* Ã˜ÂªÃ™â€šÃ™â€žÃ™Å Ã™â€ž Ã˜Â§Ã™â€žÃ™ÂÃ˜Â¬Ã™Ë†Ã˜Â© Ã˜Â¨Ã™Å Ã™â€  Ã˜Â§Ã™â€žÃ™Æ’Ã˜Â±Ã™Ë†Ã˜Âª */
        padding: 8px !important;  /* Ã˜Â¬Ã˜Â¹Ã™â€ž Ã˜Â§Ã™â€žÃ˜Â¨Ã˜Â§Ã˜Â¯Ã™Å Ã™â€ Ã˜Â¬ Ã™â€¦Ã˜ÂªÃ˜Â³Ã˜Â§Ã™Ë†Ã™Å  Ã™ÂÃ™Å  Ã™Æ’Ã™â€ž Ã˜Â§Ã™â€žÃ˜Â¬Ã™â€¡Ã˜Â§Ã˜Âª (8 Ã˜Â¨Ã™Æ’Ã˜Â³Ã™â€ž) */
        width: 100% !important;
        box-sizing: border-box !important;    }

    /* Ã˜ÂªÃ˜Â¹Ã˜Â¯Ã™Å Ã™â€ž Ã™Æ’Ã˜Â§Ã˜Â±Ã˜Âª Ã˜Â§Ã™â€žÃ˜Â¬Ã™â€¡Ã˜Â§Ã˜Â² Ã˜Â§Ã™â€žÃ™ÂÃ™â€ Ã™Å  Ã™â€žÃ™â€¦Ã™â€ Ã˜Â¹ Ã˜Â®Ã˜Â±Ã™Ë†Ã˜Â¬ Ã˜Â§Ã™â€žÃ˜Â§Ã˜Â³Ã™â€¦ */
    .ahly-staff-card-365 {
        box-sizing: border-box !important;
        width: 100% !important;
        padding: 10px 5px !important;
        margin: 0 !important;
    }

    .ahly-player-card-365{min-height:188px;padding:12px 8px 10px}
    .ahly-player-img-365{height:104px}
    .ahly-player-img-365 img{max-height:104px}
    
    /* Ã˜Â§Ã™â€žÃ˜Â³Ã™â€¦Ã˜Â§Ã˜Â­ Ã™â€žÃ™â€žÃ˜Â§Ã˜Â³Ã™â€¦ Ã˜Â¨Ã˜Â§Ã™â€žÃ™â€ Ã˜Â²Ã™Ë†Ã™â€ž Ã™â€žÃ˜Â³Ã˜Â·Ã˜Â± Ã˜Â¬Ã˜Â¯Ã™Å Ã˜Â¯ Ã˜Â¨Ã˜Â¯Ã™â€ž Ã˜Â§Ã™â€žÃ˜Â®Ã˜Â±Ã™Ë†Ã˜Â¬ Ã™â€¦Ã™â€  Ã˜Â§Ã™â€žÃ™Æ’Ã˜Â§Ã˜Â±Ã˜Âª */
    .ahly-player-name-365{
        font-size: 14px !important;
        min-height: 36px;
        white-space: normal !important; 
        word-wrap: break-word !important;
        line-height: 1.2;
    }
	.ahly-staff-name-365 {
		font-size: 14px !important;
		min-height: 0 !important;
		margin: 0 0 2px 0 !important;
		white-space: normal !important;
		word-wrap: break-word !important;
		line-height: 1.15 !important;
	}



    .ahly-player-country-365{font-size:12px; padding: 0px 0px 0px 0px;}
    .ahly-squad-head-365{height:54px;padding:0 18px}
    .ahly-squad-head-365 h3{font-size:18px}
    .ahly-player-num-365{width:32px;height:32px;font-size:15px}
    

}

/* Final match details overrides v3.7.1 */
.ahly-md-timeline-row.goal .ahly-md-event-icon{background:#fff7ed!important;border-color:#fb923c!important;box-shadow:0 0 0 4px rgba(251,146,60,.12)!important}
.ahly-md-timeline-row.own-goal .ahly-md-event-icon{background:#fef2f2!important;border-color:#ef4444!important;box-shadow:0 0 0 4px rgba(239,68,68,.12)!important}
.ahly-md-timeline-row.yellow .ahly-md-event-icon{background:#fffbeb!important;border-color:#f59e0b!important;box-shadow:0 0 0 4px rgba(245,158,11,.14)!important}
.ahly-md-timeline-row.red .ahly-md-event-icon{background:#fef2f2!important;border-color:#dc2626!important;box-shadow:0 0 0 4px rgba(220,38,38,.14)!important}
.ahly-md-timeline-row.var .ahly-md-event-icon{background:#eff6ff!important;border-color:#3b82f6!important;box-shadow:0 0 0 4px rgba(59,130,246,.12)!important}
.ahly-md-timeline-row.injury .ahly-md-event-icon,.ahly-md-timeline-row.missed .ahly-md-event-icon{background:#f8fafc!important;border-color:#64748b!important;box-shadow:0 0 0 4px rgba(100,116,139,.12)!important}


/* White performance cards final end override */
.ahly-md-stat-motifs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;padding:24px 18px 14px!important;background:#fff!important}
.ahly-md-stat-donut{--p:50;min-height:360px!important;border:1px solid #e6e9f0!important;border-radius:18px!important;background:radial-gradient(circle at 24px 22px,rgba(229,27,43,.16) 0 2px,transparent 3px),linear-gradient(145deg,#fff 0%,#fbfcff 54%,#fff5f6 100%)!important;background-size:22px 22px,auto!important;box-shadow:0 18px 42px rgba(15,23,42,.10)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;padding:28px 20px 18px!important;position:relative!important;overflow:hidden!important}
.ahly-md-stat-donut:after{content:"";position:absolute;top:-70px;left:-80px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(229,27,43,.16),transparent 68%);pointer-events:none}
.ahly-md-stat-donut i{position:relative!important;top:auto!important;width:72px!important;height:72px!important;margin:0 auto 26px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(145deg,#fff,#f3f6fb)!important;border:1px solid #d9dee9!important;box-shadow:inset 0 0 0 10px #eef2f8,0 14px 26px rgba(229,27,43,.16)!important;color:#e51b2b!important;font-size:34px!important;font-style:normal!important;line-height:1!important}
.ahly-md-stat-donut:before{content:""!important;width:176px!important;height:176px!important;flex:0 0 176px!important;border-radius:50%!important;background:conic-gradient(#ff3347 calc(var(--p) * 1%), #e9edf5 0)!important;box-shadow:inset 0 0 0 28px #fff,0 12px 30px rgba(229,27,43,.14)!important;margin:0 auto!important;order:2!important}
.ahly-md-stat-donut b{position:absolute!important;top:166px!important;left:50%!important;transform:translateX(-50%)!important;color:#111827!important;font-size:46px!important;font-weight:900!important;line-height:1!important;letter-spacing:0!important;text-shadow:0 2px 0 #fff!important;z-index:2!important}
.ahly-md-stat-donut span{order:3!important;margin-top:30px!important;color:#111827!important;font-size:22px!important;font-weight:900!important;line-height:1.25!important;text-align:center!important}
.ahly-md-stat-donut em{order:4;margin-top:9px;color:#697586;font-size:13px;font-style:normal;font-weight:700;line-height:1.5;text-align:center}
.ahly-md-stat-split{order:5;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:18px}
.ahly-md-stat-split strong{min-width:0;border:1px solid #edf0f5;border-radius:12px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.05);color:#e51b2b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 6px;font-size:18px;font-weight:900;line-height:1}
.ahly-md-stat-split small{max-width:100%;color:#667085;font-size:10px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.ahly-md-stat-motifs{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.ahly-md-stat-motifs{grid-template-columns:1fr!important;padding:14px 12px!important}.ahly-md-stat-donut{min-height:320px!important;padding:22px 16px 16px!important}.ahly-md-stat-donut:before{width:156px!important;height:156px!important;flex-basis:156px!important;box-shadow:inset 0 0 0 25px #fff,0 12px 26px rgba(229,27,43,.12)!important}.ahly-md-stat-donut b{top:151px!important;font-size:40px!important}}


/* Dual percentage labels inside stat charts */
.ahly-md-stat-donut b.ahly-md-stat-chart-values{top:166px!important;width:132px!important;height:70px!important;display:block!important;font-size:0!important;text-shadow:none!important}
.ahly-md-stat-chart-values small{position:absolute;top:18px;display:flex;align-items:center;justify-content:center;width:58px;height:34px;border-radius:999px;font-size:22px!important;font-weight:900!important;line-height:1!important;background:rgba(255,255,255,.86);box-shadow:0 8px 18px rgba(15,23,42,.08);white-space:nowrap}
.ahly-md-stat-chart-values small.home{right:4px;color:#111827}
.ahly-md-stat-chart-values small.away{left:4px;color:#e51b2b}
@media(max-width:560px){.ahly-md-stat-donut b.ahly-md-stat-chart-values{top:151px!important;width:118px!important}.ahly-md-stat-chart-values small{width:52px;height:30px;font-size:19px!important}}


/* Ahly-first stats colors and in-slice labels */
.ahly-md-stat-chart-values small{background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;width:48px!important;height:28px!important;font-size:20px!important}
.ahly-md-stat-chart-values small.red{right:18px!important;color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.35)!important}
.ahly-md-stat-chart-values small.gray{left:18px!important;color:#111827!important;text-shadow:0 1px 0 rgba(255,255,255,.65)!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-value.home{background:#344054!important;color:#fff!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-value.away{background:#e51b2b!important;color:#fff!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .home{background:#344054!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .away{background:#e51b2b!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-value.home{background:#e51b2b!important;color:#fff!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-value.away{background:#344054!important;color:#fff!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .home{background:#e51b2b!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .away{background:#344054!important}
.ahly-md-stat-donut .ahly-md-stat-split strong:first-child{color:#e51b2b}
.ahly-md-stat-donut .ahly-md-stat-split strong:last-child{color:#344054}
@media(max-width:560px){.ahly-md-stat-chart-values small{width:42px!important;height:26px!important;font-size:18px!important}.ahly-md-stat-chart-values small.red{right:16px!important}.ahly-md-stat-chart-values small.gray{left:16px!important}}

.ahly-md-stat-donut.ahly-md-away-is-ahly .ahly-md-stat-split strong:first-child{color:#344054!important}
.ahly-md-stat-donut.ahly-md-away-is-ahly .ahly-md-stat-split strong:last-child{color:#e51b2b!important}
.ahly-md-stat-donut.ahly-md-home-is-ahly .ahly-md-stat-split strong:first-child{color:#e51b2b!important}
.ahly-md-stat-donut.ahly-md-home-is-ahly .ahly-md-stat-split strong:last-child{color:#344054!important}


/* Darker red bars across all stats */
.ahly-md-stat-bars .home,
.ahly-md-stat-bars .away,
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .home,
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .away{background:#b81622!important}


/* Fix: only the red stat bars get 20% black mix */
.ahly-md-stat-bars .home{background:#b81622!important}
.ahly-md-stat-bars .away{background:#344054!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .home{background:#b81622!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .away{background:#344054!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .home{background:#344054!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .away{background:#b81622!important}


/* Final: bars that used to be red are 20% black gray */
.ahly-md-stat-bars .home{background:#cccccc!important}
.ahly-md-stat-bars .away{background:#344054!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .home{background:#cccccc!important}
.ahly-md-stat-row.ahly-md-home-is-ahly .ahly-md-stat-bars .away{background:#344054!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .home{background:#344054!important}
.ahly-md-stat-row.ahly-md-away-is-ahly .ahly-md-stat-bars .away{background:#cccccc!important}


/* Period separators with the same title guide-line style */
@media(max-width:560px){
    .ahly-md-period-separator:before,
    .ahly-md-period-separator:after{
        content:none!important;
        display:none!important;
    }
}


/* Expanded player detail page */
.ahly-player-modal-dialog{max-width:760px!important;width:min(94vw,760px)!important;max-height:88vh!important;overflow:auto!important}
.ahly-player-page{padding:0 16px 18px}
.ahly-player-page-hero{display:grid;grid-template-columns:82px minmax(0,1fr) 58px;align-items:center;gap:14px;margin:14px 0;padding:14px;border:1px solid #edf0f5;border-radius:14px;background:linear-gradient(135deg,#fff,#f8fafc)}
.ahly-player-page-photo{width:82px;height:82px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px solid #e51b2b;background:#fff;box-shadow:0 10px 22px rgba(229,27,43,.15);overflow:hidden}
.ahly-player-page-photo img{width:100%;height:100%;object-fit:cover}
.ahly-player-page-photo b{font-size:30px;color:#e51b2b}
.ahly-player-page-title{min-width:0;display:flex;flex-direction:column;gap:5px}
.ahly-player-page-title strong{color:#111827;font-size:20px;font-weight:900;line-height:1.25}
.ahly-player-page-title span{color:#475467;font-size:13px;font-weight:800}
.ahly-player-page-title small{color:#98a2b3;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahly-player-page-rating{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f59e0b;color:#fff;font-size:17px;font-weight:900;box-shadow:0 10px 20px rgba(245,158,11,.22)}
.ahly-player-page-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.ahly-player-page-metric{min-height:72px;border:1px solid #edf0f5;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.ahly-player-page-metric strong{color:#e51b2b;font-size:22px;font-weight:900;line-height:1}
.ahly-player-page-metric span{color:#667085;font-size:12px;font-weight:800}
.ahly-player-page-metric.rating strong{color:#f59e0b}
.ahly-player-page-metric.yellow strong{color:#d97706}
.ahly-player-page-metric.sub strong{color:#16a34a}
.ahly-player-page-visual{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:12px;margin-bottom:14px}
.ahly-player-page-heatmap{position:relative;min-height:220px;border:4px solid #2f8b49;border-radius:8px;overflow:hidden;background:repeating-linear-gradient(90deg,#2f8b49 0 44px,#2a7f43 44px 88px)}
.ahly-player-page-heatmap:before{content:"";position:absolute;inset:14px;border:2px solid rgba(255,255,255,.72);border-radius:2px}
.ahly-player-page-heatmap:after{content:"";position:absolute;top:50%;left:50%;width:58px;height:58px;border:2px solid rgba(255,255,255,.72);border-radius:50%;transform:translate(-50%,-50%)}
.ahly-player-page-heatmap i{position:absolute;border-radius:50%;filter:blur(12px);opacity:.82}
.ahly-player-page-heatmap i:nth-child(1){width:120px;height:92px;background:#facc15;top:28px;right:70px}
.ahly-player-page-heatmap i:nth-child(2){width:94px;height:86px;background:#ef4444;top:62px;right:118px}
.ahly-player-page-heatmap i:nth-child(3){width:92px;height:78px;background:#bef264;bottom:28px;left:70px}
.ahly-player-page-heatmap span{position:absolute;right:12px;bottom:10px;padding:5px 9px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;font-size:11px;font-weight:800}
.ahly-player-page-summary{border:1px solid #edf0f5;border-radius:12px;background:#fff;overflow:hidden}
.ahly-player-page-summary h4{margin:0;padding:12px 14px;border-bottom:1px solid #edf0f5;color:#111827;font-size:14px;font-weight:900}
.ahly-player-page-summary .ahly-player-modal-empty{padding:18px 12px}
.ahly-player-page-summary .ahly-player-modal-stats,
.ahly-player-page-summary div div{border-bottom:1px solid #f1f3f6}
.ahly-player-page-stats{border:1px solid #edf0f5;border-radius:12px;overflow:hidden;background:#fff}
@media(max-width:680px){.ahly-player-page{padding:0 10px 14px}.ahly-player-page-hero{grid-template-columns:64px minmax(0,1fr) 48px}.ahly-player-page-photo{width:64px;height:64px}.ahly-player-page-title strong{font-size:16px}.ahly-player-page-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ahly-player-page-visual{grid-template-columns:1fr}.ahly-player-page-heatmap{min-height:190px}}


/* Enlarged player popup with compact heatmap */
.ahly-player-modal-dialog{width:min(620px,96vw)!important;max-height:88vh!important;border-radius:14px!important}
.ahly-player-modal-head{padding:22px 22px 18px!important}
.ahly-player-modal-photo{width:76px!important;height:76px!important}
.ahly-player-modal-name{font-size:18px!important}
.ahly-player-modal-meta{font-size:13px!important}
.ahly-player-modal-rating{min-width:66px!important;width:auto!important;height:28px!important;padding:0 10px!important;border-radius:999px!important;font-size:13px!important}
.ahly-player-modal-actions{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-right:auto!important;margin-left:0!important}
.ahly-player-modal-more{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:999px;background:#cccccc;color:#111827!important;text-decoration:none;font-size:12px;font-weight:900;white-space:nowrap}
.ahly-player-modal-more:hover{background:#bfbfbf}
.ahly-player-popup-heatmap{position:relative;min-height:180px;margin:14px 16px;border:3px solid #2f8b49;border-radius:8px;overflow:hidden;background:repeating-linear-gradient(90deg,#2f8b49 0 38px,#2a7f43 38px 76px)}
.ahly-player-popup-heatmap:before{content:"";position:absolute;inset:12px;border:2px solid rgba(255,255,255,.72)}
.ahly-player-popup-heatmap:after{content:"";position:absolute;top:50%;left:50%;width:54px;height:54px;border:2px solid rgba(255,255,255,.72);border-radius:50%;transform:translate(-50%,-50%)}
.ahly-player-popup-heatmap i{position:absolute;border-radius:50%;filter:blur(12px);opacity:.85}
.ahly-player-popup-heatmap i:nth-child(1){width:112px;height:76px;background:#facc15;top:26px;right:90px}
.ahly-player-popup-heatmap i:nth-child(2){width:82px;height:72px;background:#ef4444;top:54px;right:140px}
.ahly-player-popup-heatmap i:nth-child(3){width:88px;height:64px;background:#bef264;bottom:22px;left:80px}
.ahly-player-popup-heatmap span{position:absolute;right:12px;bottom:10px;padding:5px 9px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;font-size:11px;font-weight:800}
.ahly-player-popup-charts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 16px 14px}
.ahly-player-popup-charts .ahly-player-page-metric{min-height:66px}
.ahly-player-modal-section-title.inside{border-top:1px solid #eee}
.ahly-player-popup-stats{border-top:0}
.ahly-player-more-link{display:flex;align-items:center;justify-content:center;margin:14px 16px 18px;min-height:42px;border-radius:10px;background:#e51b2b;color:#fff!important;text-decoration:none;font-size:14px;font-weight:900}
.ahly-player-more-link:hover{background:#c91422}
.ahly-player-full-teams small{display:block}
@media(max-width:560px){.ahly-player-popup-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.ahly-player-popup-heatmap{min-height:150px;margin:12px}}


/* Player popup full stats table */
.ahly-player-popup-charts{display:none!important}
.ahly-player-popup-stats{padding:0 16px 4px}
.ahly-player-stats-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #edf0f5;border-radius:12px;overflow:hidden;background:#fff;font-size:13px}
.ahly-player-stats-table tr:nth-child(even){background:#f8fafc}
.ahly-player-stats-table th,
.ahly-player-stats-table td{padding:11px 13px;border-bottom:1px solid #edf0f5;vertical-align:middle}
.ahly-player-stats-table tr:last-child th,
.ahly-player-stats-table tr:last-child td{border-bottom:0}
.ahly-player-stats-table th{width:65%;color:#111827;text-align:right;font-weight:800;white-space:nowrap}
.ahly-player-stats-table td{color:#e51b2b;text-align:left;font-weight:900}
.ahly-player-stats-table td span{display:inline-block}
.ahly-player-stats-table .ahly-stat-value-ltr{direction:ltr;unicode-bidi:isolate}
.ahly-player-stats-table .ahly-stat-value-rtl{direction:rtl;unicode-bidi:isolate}
.ahly-player-modal-events span:only-child{grid-column:1/-1;min-height:44px;color:#667085;font-size:12px;font-weight:800}


/* Never show fake player heatmaps without real API data */
.ahly-player-popup-heatmap{display:none!important}


/* Lineup title font overrides */
.ahly-match-details-365 .ahly-md-panel[data-ahly-panel="lineups"] .ahly-md-card > h3{
    font-size:21px!important;
}
.ahly-match-details-365 .ahly-md-pitch-head strong{
    font-size:18px!important;
}
.ahly-match-details-365 .ahly-md-lineup-team-pro > h3{
    font-size:19px!important;
    font-weight:900!important;
}
.ahly-match-details-365 .ahly-md-lineup-block-pro h4{
    font-size:17px!important;
    font-weight:900!important;
}


