/* Al-Ahly system frontend styles. Extracted from shortcode templates in version 3.5. */

/* matches.php */
.ahly-matches-box{background:#fff!important;color:#111!important;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden;font-family:Noto Kufi Arabic,Tahoma;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.ahly-section-title{display:flex;align-items:center;justify-content:flex-start;gap:10px;background:#f7f7f7;color:#111;padding:13px 16px;font-weight:bold;font-size:17px;border-bottom:1px solid #e9e9e9}
.ahly-section-title::before{content:"";width:14px;height:14px;border-radius:50%;display:inline-block}.ahly-section-title.red-dot::before{background:#e51b2b}.ahly-section-title.green-dot::before{background:#3ccf7a}
.ahly-match-row{display:grid;grid-template-columns:130px 1fr 145px;align-items:center;gap:12px;min-height:64px;padding:10px 16px;border-bottom:1px solid #eee;background:#fff}.ahly-match-row:nth-child(even){background:#fbfbfb}
.ahly-league{font-size:12px;color:#777;text-align:right}.ahly-match-main{display:grid;grid-template-columns:1fr 78px 1fr;align-items:center;gap:10px}.ahly-team{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:600}
.ahly-team.team-left{justify-content:flex-end;flex-direction:row;text-align:right}.ahly-team.team-right{justify-content:flex-start;text-align:right}.ahly-team.team-right img{order:2}.ahly-team.team-right span{order:1}
.ahly-team img{width:30px;height:30px;object-fit:contain;flex:0 0 auto}.ahly-team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ahly-score-pill{background:#e51b2b;color:#fff;border-radius:18px;padding:7px 10px;font-weight:bold;font-size:14px;text-align:center;min-width:58px}.ahly-score-pill.vs{background:#f1f1f1;color:#333}
.ahly-date{font-size:12px;color:#666;text-align:left;direction:ltr}.ahly-empty{padding:18px 16px;color:#777;background:#fff;border-bottom:1px solid #eee}.ahly-more-link{padding:12px 16px;background:#fff;text-align:center;border-bottom:1px solid #eee}.ahly-more-link a{color:#e51b2b;font-weight:bold;text-decoration:none}.ahly-more-link a:hover{text-decoration:underline}
.ahly-fixture-id{display:block;margin-top:4px;color:#e51b2b;font-weight:bold}
.ahly-fixture-ids-box{background:#fff;color:#111;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden;font-family:Noto Kufi Arabic,Tahoma;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.ahly-fixture-ids-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f7f7f7;border-bottom:1px solid #e9e9e9}
.ahly-fixture-ids-head span{color:#666;font-size:12px}.ahly-fixture-ids-scroll{overflow-x:auto}.ahly-fixture-ids-table{width:100%;border-collapse:collapse;font-size:13px}
.ahly-fixture-ids-table th,.ahly-fixture-ids-table td{padding:10px;border-bottom:1px solid #eee;text-align:right;white-space:nowrap}.ahly-fixture-ids-table th{background:#fbfbfb;color:#555;font-weight:800}
.ahly-fixture-id-num{color:#e51b2b;font-weight:800;direction:ltr}.ahly-fixture-ids-table code{direction:ltr;display:inline-block}
.ahly-copy-btn{margin-right:8px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#333;cursor:pointer;font-size:12px;font-weight:700;line-height:1;padding:6px 9px;vertical-align:middle}
.ahly-copy-btn:hover{border-color:#e51b2b;color:#e51b2b}.ahly-copy-btn.is-copied{background:#e8f5ee;border-color:#2eaf4a;color:#157a3d}
@media(max-width:768px){.ahly-match-row{grid-template-columns:1fr;gap:7px;text-align:center;padding:10px 6px}.ahly-league,.ahly-date{text-align:center}.ahly-match-main{grid-template-columns:minmax(0,1fr) minmax(58px,auto) minmax(0,1fr);gap:4px}.ahly-team{flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:4px;font-size:12px;text-align:center}.ahly-team.team-left,.ahly-team.team-right{flex-direction:column!important;text-align:center}.ahly-team.team-right img,.ahly-team.team-right span{order:initial}.ahly-team img{width:28px;height:28px}.ahly-team span{display:-webkit-box!important;width:100%;max-width:100%!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ahly-score-pill{min-width:58px;padding:7px 8px;white-space:nowrap}}

/* standings.php */
.ahly-standings-365 {
    background: #fff;
    color: #111;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    font-family: Noto Kufi Arabic,Tahoma;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* top-scorers.php */
.ahly-top-scorers-365{
    --ahly-inner-gap:16px;
    background:#fff;
    color:#111;
    border:1px solid #e8e8e8;
    border-radius:8px;
    overflow:hidden;
    font-family:Noto Kufi Arabic,Tahoma;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.ahly-ts-header{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    background:#f7f7f7;
    border-bottom:1px solid #e9e9e9;
    padding:13px 16px;
    font-size:17px;
    font-weight:bold;
    color:#111;
}

.ahly-ts-header:before{
    content:"";
    width:14px;
    height:14px;
    border-radius:50%;
    background:#e51b2b;
    flex:0 0 14px;
}

.ahly-ts-podium{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin:var(--ahly-inner-gap) var(--ahly-inner-gap) 0;
    background:#fff;
}

.ahly-ts-podium-card{
    min-height:186px;
    display:grid;
    grid-template-rows:auto auto 1fr auto auto auto;
    align-items:center;
    justify-items:center;
    gap:8px;
    padding:18px 12px 16px;
    border:1px solid #eee;
    border-radius:8px;
    text-align:center;
    background:#fff;
}

.ahly-ts-podium-card:last-child{
    border-left:1px solid #eee;
}

.ahly-ts-podium-card.rank-1{
    background:#fff;
}

.ahly-ts-podium-card.is-ahly{
    background:#f7dbdb;
}

.ahly-ts-podium-card > strong{
    width:52px;
    height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(0,0,0,.70);
    color:#fff;
    font-size:26px;
    line-height:1;
}

.ahly-ts-podium-card > .ahly-ts-avatar.large{
    grid-row:auto;
}

.ahly-ts-podium-card.is-ahly > strong,
.ahly-ts-podium-card.is-ahly b{
    background:#e51b2b;
}

.ahly-ts-avatar{
    width:46px;
    height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f2f4f7;
    color:#667085;
    overflow:hidden;
    flex:0 0 46px;
    font-size:16px;
    font-weight:800;
}

.ahly-ts-avatar.large{
    width:86px;
    height:86px;
    flex-basis:86px;
}

.ahly-ts-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ahly-ts-podium-card h3{
    margin:0;
    font-size:14px;
    font-weight:800;
    line-height:1.45;
}

.ahly-ts-player-meta{
    margin-top:4px!important;
    color:#344054!important;
    flex-wrap:wrap;
}

.ahly-ts-podium-card h3 a,
.ahly-ts-table a{
    color:#111;
    text-decoration:none;
}

.ahly-ts-podium-card h3 a:hover,
.ahly-ts-table a:hover{
    color:#e51b2b;
}

.ahly-ts-podium-card p{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin:6px 0 0;
    color:#667085;
    font-size:12px;
    font-weight:700;
}

.ahly-ts-podium-card p img{
    width:30px;
    height:30px;
    object-fit:contain;
}

.ahly-ts-match-count,
.ahly-ts-average{
    color:#344054;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
}

.ahly-ts-match-count{
    margin-top:2px;
}

.ahly-ts-average{
    color:#667085;
}

.ahly-ts-average,
.ahly-ts-table .avg-col{
    word-spacing:4px;
}

.ahly-ts-podium-card b{
    min-width:70px;
    display:inline-flex;
    align-items:baseline;
    justify-content:center;
    gap:4px;
    border-radius:18px;
    background:rgba(0,0,0,.70);
    color:#fff;
    padding:7px 12px;
    font-size:18px;
    line-height:1;
}

.ahly-ts-podium-card b small{
    font-size:11px;
    font-weight:700;
}

.ahly-ts-table .goals-col small{
    display:none;
}

.ahly-ts-scroll{
    width:100%;
    overflow-x:auto;
    padding:var(--ahly-inner-gap);
    box-sizing:border-box;
}

.ahly-ts-mobile-cards{
    display:none;
}

.ahly-ts-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    table-layout:auto;
    font-size:12px;
    text-align:center;
    border:1px solid #dfe3e8;
    border-radius:8px;
    overflow:hidden;
}

.ahly-ts-table th{
    height:34px;
    background:#f3f3f3;
    color:#555;
    font-weight:bold;
    border-bottom:1px solid #e5e5e5;
    white-space:nowrap;
    padding:0 8px;
}

.ahly-ts-table td{
    height:56px;
    border-bottom:1px solid #eee;
    background:#fff;
    white-space:nowrap;
    padding:0 8px;
}

.ahly-ts-table tr:nth-child(even) td{
    background:#fbfbfb;
}

.ahly-ts-table tr.is-ahly td{
    background:#f7dbdb!important;
    font-weight:bold;
}

.ahly-ts-table .rank-col{
    width:40px;
    color:rgba(0,0,0,.70);
    font-size:18px;
    font-weight:900;
}

.ahly-ts-table .player-col,
.ahly-ts-table .team-col{
    text-align:right;
}

.ahly-ts-table .player-col{
    min-width:190px;
    font-size:14px;
    font-weight:800;
}

.ahly-ts-table .team-col{
    min-width:150px;
    color:#555;
}

.ahly-ts-table .player-col,
.ahly-ts-table .team-col{
    display:table-cell;
}

.ahly-ts-table .player-col .ahly-ts-avatar{
    margin-left:8px;
    vertical-align:middle;
}

.ahly-ts-table .team-col img{
    width:34px;
    height:34px;
    object-fit:contain;
    vertical-align:middle;
    margin-left:7px;
}

.ahly-ts-table .goals-col{
    font-size:16px;
    font-weight:900;
    color:rgba(0,0,0,.70);
}

.ahly-ts-table .matches-col,
.ahly-ts-table .avg-col{
    font-size:14px;
    font-weight:800;
    color:#344054;
}

.ahly-ts-table tr.is-ahly .rank-col,
.ahly-ts-table tr.is-ahly .goals-col{
    color:#e51b2b;
}

.ahly-ts-toggle-list .is-extra{
    display:none;
}

.ahly-ts-toggle-list.is-expanded .is-extra{
    display:table-row;
}

.ahly-ts-empty{
    padding:18px 16px;
    color:#777;
    background:#fff;
    text-align:center;
}

@media(max-width:768px){
    .ahly-ts-podium{
        grid-template-columns:1fr;
    }

    .ahly-ts-podium-card{
        min-height:0;
        grid-template-columns:42px 58px minmax(0,1fr) auto;
        grid-template-areas:
            "rank avatar info matches"
            "rank avatar info goals"
            "rank avatar info avg";
        grid-template-rows:auto auto auto;
        justify-items:start;
        text-align:right;
        border-left:0;
        border-bottom:1px solid #eee;
        padding:12px 14px;
    }

    .ahly-ts-avatar.large{
        grid-area:avatar;
        width:58px;
        height:58px;
        flex-basis:58px;
    }

    .ahly-ts-podium-card > strong{
        grid-area:rank;
        width:42px;
        height:42px;
        font-size:21px;
    }

    .ahly-ts-podium-card > div{
        grid-area:info;
        min-width:0;
    }

    .ahly-ts-podium-card .ahly-ts-match-count{
        grid-area:matches;
        width:70px;
        justify-self:start;
        text-align:center;
        white-space:nowrap;
    }

    .ahly-ts-podium-card b{
        grid-area:goals;
        width:70px;
        min-width:70px;
        font-size:15px;
        padding:7px 10px;
    }

    .ahly-ts-podium-card .ahly-ts-average{
        grid-area:avg;
        width:70px;
        justify-self:start;
        text-align:center;
        white-space:nowrap;
    }

    .ahly-top-scorers-365 .ahly-ts-scroll{
        display:none;
    }

    .ahly-top-scorers-365 .ahly-ts-mobile-cards{
        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .ahly-top-scorers-365 .ahly-ts-table,
    .ahly-top-scorers-365 .ahly-ts-table tbody,
    .ahly-top-scorers-365 .ahly-ts-table tr,
    .ahly-top-scorers-365 .ahly-ts-table td{
        display:block;
        width:100%;
    }

    .ahly-top-scorers-365 .ahly-ts-table thead{
        display:none;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr{
        min-height:0;
        display:grid;
        grid-template-columns:42px minmax(0,1fr) 70px;
        grid-template-areas:
            "rank player matches"
            "rank team goals"
            "rank team avg";
        align-items:center;
        gap:4px 10px;
        padding:12px 14px;
        border-bottom:1px solid #eee;
        background:#fff;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr:nth-child(even){
        background:#fbfbfb;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr.is-ahly{
        background:#f7dbdb!important;
        font-weight:bold;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr.is-extra{
        display:none;
    }

    .ahly-top-scorers-365 .ahly-ts-toggle-list.is-expanded tr.is-extra{
        display:grid;
    }

    .ahly-top-scorers-365 .ahly-ts-table td{
        height:auto;
        padding:0;
        border-bottom:0;
        background:transparent!important;
        white-space:normal;
    }

    .ahly-top-scorers-365 .ahly-ts-table .rank-col{
        grid-area:rank;
        width:42px;
        height:42px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:50%;
        background:rgba(0,0,0,.70);
        color:#fff;
        font-size:21px;
        line-height:1;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr.is-ahly .rank-col{
        background:#e51b2b;
        color:#fff;
    }

    .ahly-top-scorers-365 .ahly-ts-table .player-col{
        grid-area:player;
        min-width:0;
        display:grid;
        grid-template-columns:58px minmax(0,1fr);
        align-items:center;
        gap:10px;
        font-size:14px;
        font-weight:900;
    }

    .ahly-top-scorers-365 .ahly-ts-table .player-col .ahly-ts-avatar{
        width:58px;
        height:58px;
        flex-basis:58px;
        margin-left:0;
    }

    .ahly-top-scorers-365 .ahly-ts-table .team-col{
        grid-area:team;
        min-width:0;
        font-size:12px;
        font-weight:700;
        color:#667085;
    }

    .ahly-top-scorers-365 .ahly-ts-table .team-col img{
        display:none;
    }

    .ahly-top-scorers-365 .ahly-ts-table .goals-col{
        grid-area:goals;
        width:70px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:18px;
        background:rgba(0,0,0,.70)!important;
        color:#fff;
        padding:7px 10px;
        font-size:15px;
        line-height:1;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr.is-ahly .goals-col{
        background:#e51b2b!important;
        color:#fff;
    }

    .ahly-top-scorers-365 .ahly-ts-table .matches-col{
        grid-area:matches;
        width:70px;
        justify-self:start;
        text-align:center;
    }

    .ahly-top-scorers-365 .ahly-ts-table .avg-col{
        grid-area:avg;
        width:70px;
        justify-self:start;
        text-align:center;
    }

    .ahly-top-scorers-365 .ahly-ts-table .matches-col,
    .ahly-top-scorers-365 .ahly-ts-table .avg-col{
        color:#344054;
        font-size:12px;
        font-weight:800;
    }

    .ahly-top-scorers-365{
        border:1px solid #eee;
        border-radius:8px;
        box-shadow:none;
    }

    .ahly-top-scorers-365 .ahly-ts-header{
        justify-content:flex-start;
        padding:14px 16px;
        font-size:15px;
        font-weight:800;
        line-height:1.35;
        text-align:right;
        background:#fff;
        border-bottom:1px solid #eee;
    }

    .ahly-top-scorers-365 .ahly-ts-header:before{
        display:none;
    }

    .ahly-top-scorers-365 .ahly-ts-podium,
    .ahly-top-scorers-365 .ahly-ts-toggle-list{
        display:flex;
        flex-direction:column;
        gap:14px;
        margin:0;
        padding:14px;
        border:0;
        border-radius:0;
        overflow:visible;
        border-bottom:0;
        background:#fff;
    }

    .ahly-top-scorers-365 .ahly-ts-toggle-list{
        padding-top:0;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card,
    .ahly-top-scorers-365 .ahly-ts-table tr{
        position:relative;
        min-height:192px;
        display:flex!important;
        flex-wrap:wrap;
        flex-direction:row;
        align-items:flex-start;
        justify-content:center;
        gap:2px 4px;
        padding:14px 72px 22px;
        border:1px solid #edf0f5;
        border-radius:8px;
        background:#fff;
        text-align:center;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card.is-ahly,
    .ahly-top-scorers-365 .ahly-ts-table tr.is-ahly{
        background:#f7dbdb!important;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr:nth-child(even){
        background:#fff!important;
    }

    .ahly-top-scorers-365 .ahly-ts-table tr:nth-child(even).is-ahly{
        background:#f7dbdb!important;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card > strong,
    .ahly-top-scorers-365 .ahly-ts-table .rank-col{
        position:absolute;
        top:30px;
        right:32px;
        width:44px;
        height:44px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:50%;
        background:#f62925;
        color:#fff;
        font-size:28px;
        font-weight:900;
        line-height:1;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card b,
    .ahly-top-scorers-365 .ahly-ts-table .goals-col{
        position:absolute;
        top:30px;
        left:32px;
        width:48px;
        min-width:48px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:flex-start;
        gap:4px;
        padding:0;
        border-radius:0;
        background:transparent!important;
        color:#111;
        font-size:15px;
        line-height:1;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card b span,
    .ahly-top-scorers-365 .ahly-ts-table .goals-col span{
        width:44px;
        height:44px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:50%;
        background:#f62925;
        color:#fff;
        font-size:28px;
        font-weight:900;
        line-height:1;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card b small,
    .ahly-top-scorers-365 .ahly-ts-table .goals-col small{
        display:block;
        color:#111;
        font-size:15px;
        font-weight:400;
        line-height:1.1;
    }

    .ahly-top-scorers-365 .ahly-ts-avatar.large,
    .ahly-top-scorers-365 .ahly-ts-table .player-col .ahly-ts-avatar{
        width:86px;
        height:86px;
        flex:0 0 86px;
        margin:0 auto;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card > div,
    .ahly-top-scorers-365 .ahly-ts-table .player-col,
    .ahly-top-scorers-365 .ahly-ts-table .team-col{
        width:100%;
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
    }

    .ahly-top-scorers-365 .ahly-ts-table .player-col{
        order:1;
        gap:10px;
        font-size:20px;
        font-weight:900;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card h3,
    .ahly-top-scorers-365 .ahly-ts-table .player-col a,
    .ahly-top-scorers-365 .ahly-ts-table .player-col span:not(.ahly-ts-avatar){
        margin:0;
        width:100%;
        color:#111;
        font-size:18px;
        font-weight:900;
        line-height:1.35;
        padding-left:0;
        padding-right:0;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card p,
    .ahly-top-scorers-365 .ahly-ts-table .team-col{
        order:2;
        margin:0;
        color:#a8adb4;
        font-size:14px;
        font-weight:700;
        line-height:1.35;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card p img,
    .ahly-top-scorers-365 .ahly-ts-table .team-col img{
        display:none;
    }

    .ahly-top-scorers-365.is-club-scorers .ahly-ts-podium-card p,
    .ahly-top-scorers-365.is-club-scorers .ahly-ts-table .team-col{
        display:none;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card .ahly-ts-match-count,
    .ahly-top-scorers-365 .ahly-ts-podium-card .ahly-ts-average,
    .ahly-top-scorers-365 .ahly-ts-table .matches-col,
    .ahly-top-scorers-365 .ahly-ts-table .avg-col{
        width:100%;
        flex:0 0 100%;
        color:#878d96;
        font-size:13px;
        font-weight:700;
        line-height:1.35;
        text-align:center;
        white-space:nowrap;
        padding-left:0;
        padding-right:0;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card .ahly-ts-match-count,
    .ahly-top-scorers-365 .ahly-ts-table .matches-col{
        order:3;
        margin-top:6px;
    }

    .ahly-top-scorers-365 .ahly-ts-podium-card .ahly-ts-average,
    .ahly-top-scorers-365 .ahly-ts-table .avg-col{
        order:4;
        margin-top:6px;
    }

    .ahly-top-scorers-365 .ahly-ts-table .matches-col:after{
        content:" Ã™â€¦Ã˜Â¨Ã˜Â§Ã˜Â±Ã˜Â§Ã˜Â© -";
    }

    .ahly-top-scorers-365 .ahly-ts-table .avg-col:after{
        content:" Ã™â€¡Ã˜Â¯Ã™Â / Ã™â€¦Ã˜Â¨Ã˜Â§Ã˜Â±Ã˜Â§Ã˜Â©";
    }

    .ahly-top-scorers-365 .ahly-ts-mobile-cards .is-extra{
        display:none!important;
    }

    .ahly-top-scorers-365 .ahly-ts-toggle-list.is-expanded .ahly-ts-mobile-cards .is-extra{
        display:flex!important;
    }

    .ahly-top-scorers-365 .ahly-ts-more-rows{
        margin:0 auto 20px;
    }
}

/* White performance cards */
.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;
    }
}

/* 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 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}}

/* White performance cards final 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}}

/* Goal image icon v3.9.4 */
html body .ahly-md-event-icon img{
  width:34px!important;
  height:34px!important;
  display:block!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body .ahly-md-source-copy{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  margin:3px 6px 0!important;
  padding:4px 7px!important;
  border:1px solid #d7dde8!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#334155!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1!important;
}
html body .ahly-md-source-copy:hover{
  border-color:#e51b2b!important;
  color:#e51b2b!important;
}
html body .ahly-md-event-assist{
  display:block!important;
  margin-top:2px!important;
  color:#6b7280!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
html body .ahly-md-sub-player{
  display:block!important;
  margin:2px 0!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
html body .ahly-md-sub-player.out{
  color:#6b7280!important;
}
html body .ahly-md-sub-player i{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  margin-left:5px!important;
  border-radius:50%!important;
  color:#fff!important;
  font-style:normal!important;
  font-size:0!important;
  line-height:1!important;
}
html body .ahly-md-sub-player.in i{background:#16a34a!important}
html body .ahly-md-sub-player.out i{background:#dc2626!important}
html body .ahly-md-sub-player i:before{
  content:""!important;
  display:block!important;
  width:12px!important;
  height:12px!important;
  background:center/contain no-repeat!important;
}
html body .ahly-md-sub-player.in i:before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7 7 17'/%3E%3Cpath d='M7 10v7h7'/%3E%3C/svg%3E")!important;
}
html body .ahly-md-sub-player.out i:before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M10 7h7v7'/%3E%3C/svg%3E")!important;
}
html body .ahly-md-away-event .ahly-md-sub-player{
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:center!important;
  gap:5px!important;
}
html body .ahly-md-away-event .ahly-md-sub-player i{
  margin-left:0!important;
}

/* Final timeline icon cleanup v3.9.1 */
html body .ahly-md-event-icon{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:34px!important;
  line-height:1!important;
}
html body .ahly-md-timeline-row.goal .ahly-md-event-icon,
html body .ahly-md-timeline-row.own-goal .ahly-md-event-icon,
html body .ahly-md-timeline-row.yellow .ahly-md-event-icon,
html body .ahly-md-timeline-row.red .ahly-md-event-icon,
html body .ahly-md-timeline-row.var .ahly-md-event-icon,
html body .ahly-md-timeline-row.injury .ahly-md-event-icon,
html body .ahly-md-timeline-row.missed .ahly-md-event-icon,
html body .ahly-md-timeline-row.substitution .ahly-md-event-icon,
html body .ahly-md-timeline-row.corner .ahly-md-event-icon,
html body .ahly-md-timeline-row.offside .ahly-md-event-icon{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Final timeline icon cleanup v3.9.1 */
.ahly-md-event-icon{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:34px!important;
  line-height:1!important;
}
.ahly-md-timeline-row.goal .ahly-md-event-icon,
.ahly-md-timeline-row.own-goal .ahly-md-event-icon,
.ahly-md-timeline-row.yellow .ahly-md-event-icon,
.ahly-md-timeline-row.red .ahly-md-event-icon,
.ahly-md-timeline-row.var .ahly-md-event-icon,
.ahly-md-timeline-row.injury .ahly-md-event-icon,
.ahly-md-timeline-row.missed .ahly-md-event-icon,
.ahly-md-timeline-row.substitution .ahly-md-event-icon,
.ahly-md-timeline-row.corner .ahly-md-event-icon,
.ahly-md-timeline-row.offside .ahly-md-event-icon{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Final timeline icon cleanup v3.9 */
.ahly-md-event-icon{width:auto!important;height:auto!important;min-width:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:30px!important;line-height:1!important}
.ahly-md-timeline-row.goal .ahly-md-event-icon,.ahly-md-timeline-row.own-goal .ahly-md-event-icon,.ahly-md-timeline-row.yellow .ahly-md-event-icon,.ahly-md-timeline-row.red .ahly-md-event-icon,.ahly-md-timeline-row.var .ahly-md-event-icon,.ahly-md-timeline-row.injury .ahly-md-event-icon,.ahly-md-timeline-row.missed .ahly-md-event-icon,.ahly-md-timeline-row.substitution .ahly-md-event-icon{border:0!important;background:transparent!important;box-shadow:none!important}
.ahly-md-event-minute{margin-top:3px!important;font-size:13px!important}
@media(max-width:768px){.ahly-md-event-icon{font-size:26px!important}}

/* Final timeline icon cleanup v3.9 */
.ahly-md-event-icon{width:auto!important;height:auto!important;min-width:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:30px!important;line-height:1!important}
.ahly-md-timeline-row.goal .ahly-md-event-icon,.ahly-md-timeline-row.own-goal .ahly-md-event-icon,.ahly-md-timeline-row.yellow .ahly-md-event-icon,.ahly-md-timeline-row.red .ahly-md-event-icon,.ahly-md-timeline-row.var .ahly-md-event-icon,.ahly-md-timeline-row.injury .ahly-md-event-icon,.ahly-md-timeline-row.missed .ahly-md-event-icon,.ahly-md-timeline-row.substitution .ahly-md-event-icon{border:0!important;background:transparent!important;box-shadow:none!important}
.ahly-md-event-minute{margin-top:3px!important;font-size:13px!important}
@media(max-width:768px){.ahly-md-event-icon{font-size:26px!important}}

/* Timeline icon cleanup v3.9 */
.ahly-md-event-icon{
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:30px!important;
    line-height:1!important;
}

.ahly-md-timeline-row.goal .ahly-md-event-icon,
.ahly-md-timeline-row.own-goal .ahly-md-event-icon,
.ahly-md-timeline-row.yellow .ahly-md-event-icon,
.ahly-md-timeline-row.red .ahly-md-event-icon,
.ahly-md-timeline-row.var .ahly-md-event-icon,
.ahly-md-timeline-row.injury .ahly-md-event-icon,
.ahly-md-timeline-row.missed .ahly-md-event-icon,
.ahly-md-timeline-row.substitution .ahly-md-event-icon{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}

.ahly-md-event-minute{
    margin-top:3px!important;
    font-size:13px!important;
}

@media(max-width:768px){
    .ahly-md-event-icon{font-size:26px!important}
}

/* Match details v3.8 */
.ahly-md-period-separator{
    position:relative;
    z-index:2;
    width:100%;
    max-width:100%;
    margin:14px auto 10px;
    padding:0;
    background:transparent;
    font-size:12px;
    font-weight:900;
    box-shadow:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    overflow:visible;
}
.ahly-md-period-separator:before,
.ahly-md-period-separator:after{
    content:none!important;
    display:none!important;
}
.ahly-md-period-separator span{
    min-height:32px;
    padding:7px 16px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 16px rgba(17,24,39,.14);
}

.ahly-md-lineup-block-pro li{
    min-height:54px!important;
    gap:10px!important;
}

.ahly-md-player-photo{
    width:48px!important;
    height:48px!important;
    flex-basis:48px!important;
    border-width:3px!important;
}

.ahly-md-player-photo b{
    font-size:18px!important;
}

.ahly-md-player-name{
    font-size:14px!important;
}

.ahly-md-lineup-block-pro small{
    padding:4px 8px;
    border-radius:999px;
    background:#f3f4f6;
    color:#475467;
    font-size:11px;
}

.ahly-md-stat-motifs{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:16px!important;
    padding:20px 18px 8px!important;
}

.ahly-md-stat-donut{
    min-height:260px!important;
    border-radius:18px!important;
    background:radial-gradient(circle at top,#fff 0,#fff7f7 52%,#fff 100%)!important;
    box-shadow:0 14px 34px rgba(15,23,42,.09);
}

.ahly-md-stat-donut:before{
    width:156px!important;
    height:156px!important;
    box-shadow:inset 0 0 0 26px #fff,0 8px 26px rgba(229,27,43,.12)!important;
}

.ahly-md-stat-donut i{
    top:62px!important;
    font-size:42px!important;
}

.ahly-md-stat-donut b{
    font-size:38px!important;
}

.ahly-md-stat-donut span{
    font-size:16px!important;
}

@media(max-width:768px){
    .ahly-md-stat-motifs{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:10px!important;
    }

    .ahly-md-stat-donut{
        min-height:190px!important;
    }

    .ahly-md-stat-donut:before{
        width:112px!important;
        height:112px!important;
        box-shadow:inset 0 0 0 20px #fff,0 8px 20px rgba(229,27,43,.10)!important;
    }

    .ahly-md-stat-donut i{
        top:47px!important;
        font-size:30px!important;
    }

    .ahly-md-player-photo{
        width:42px!important;
        height:42px!important;
        flex-basis:42px!important;
    }
}

/* Match details refinements 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);
}

.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);
}

.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);
}

.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);
}

.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);
}

.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);
}

.ahly-md-player-photo{
    width:34px;
    height:34px;
    border-radius:50%;
    overflow:hidden;
    flex:0 0 34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#fff,#f3f4f6);
    border:2px solid #fff;
    box-shadow:0 0 0 1px #e5e7eb,0 3px 8px rgba(0,0,0,.08);
}

.ahly-md-player-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.ahly-md-player-photo b{
    color:#e51b2b;
    font-size:14px;
}

.ahly-md-stat-motifs{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    padding:14px 16px 2px;
}

.ahly-md-stat-donut{
    --p:50;
    min-height:122px;
    border:1px solid #eee;
    border-radius:10px;
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    position:relative;
    overflow:hidden;
}

.ahly-md-stat-donut:before{
    content:"";
    width:58px;
    height:58px;
    border-radius:50%;
    background:conic-gradient(#e51b2b calc(var(--p) * 1%), #e5e7eb 0);
    box-shadow:inset 0 0 0 11px #fff;
}

.ahly-md-stat-donut i{
    position:absolute;
    top:24px;
    font-style:normal;
    font-size:20px;
}

.ahly-md-stat-donut b{
    color:#111;
    font-size:18px;
    line-height:1;
}

.ahly-md-stat-donut span{
    color:#667085;
    font-size:12px;
    font-weight:700;
}

.ahly-md-info-grid div{
    position:relative;
}

.ahly-md-info-grid div:before{
    content:"";
    position:absolute;
    right:0;
    top:14px;
    bottom:14px;
    width:3px;
    border-radius:4px;
    background:#e51b2b;
}

@media(max-width:768px){
    .ahly-md-stat-motifs{
        grid-template-columns:repeat(2,minmax(0,1fr));
        padding:12px 12px 0;
    }

    .ahly-md-player-photo{
        width:30px;
        height:30px;
        flex-basis:30px;
    }
}

/* Match details pro layout v3.7 */
.ahly-md-pro{
    background:#f2f2f2!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
    font-family:Noto Kufi Arabic,Tahoma!important;
}

.ahly-md-pro-hero{
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(90deg,rgba(229,27,43,.10),rgba(255,255,255,.98) 34%,rgba(255,255,255,.98) 66%,rgba(48,117,255,.10)),
        #fff;
    border:1px solid #eee;
    border-radius:8px 8px 0 0;
    padding:22px 20px 20px;
    text-align:center;
}

.ahly-md-competition{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    color:#111827;
    font-size:12px;
    margin-bottom:16px;
}

.ahly-md-competition span{
    background:rgba(255,255,255,.72);
    border:1px solid #ececec;
    border-radius:999px;
    padding:5px 10px;
    color:#111827;
}

.ahly-md-pro-scoreboard{
    display:grid;
    grid-template-columns:minmax(0,1fr) 136px minmax(0,1fr);
    align-items:center;
    gap:18px;
    max-width:760px;
    margin:0 auto;
}

.ahly-md-team-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-width:0;
}

.ahly-md-team-card img{
    width:78px;
    height:78px;
    object-fit:contain;
}

.ahly-md-team-card strong{
    max-width:100%;
    color:#111;
    font-size:16px;
    line-height:1.35;
    white-space:normal;
}

.ahly-md-pro-score{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.ahly-md-pro-score strong{
    min-width:116px;
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#121826;
    font-size:36px;
    font-weight:900;
    direction:ltr;
    letter-spacing:0;
}

.ahly-md-pro-score span{
    color:#475467;
    font-size:13px;
}

.ahly-md-pro-venue{
    margin-top:14px;
    color:#667085;
    font-size:13px;
}

.ahly-md-tabs{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    background:#fff;
    border:1px solid #eee;
    border-top:0;
    overflow-x:auto;
}

.ahly-md-tabs button{
    appearance:none;
    border:0;
    border-bottom:2px solid transparent;
    background:#fff;
    color:#475467;
    cursor:pointer;
    min-width:116px;
    padding:13px 16px 11px;
    font:700 13px Noto Kufi Arabic,Tahoma;
    white-space:nowrap;
}

.ahly-md-tabs button:hover,
.ahly-md-tabs button.is-active{
    color:#e51b2b;
    border-bottom-color:#e51b2b;
}

.ahly-md-panel{
    display:none;
}

.ahly-md-panel.is-active{
    display:block;
}

.ahly-md-card{
    background:#fff;
    border:1px solid #eee;
    margin-top:10px;
}

.ahly-md-card > h3{
    margin:0;
    padding:14px 16px;
    border-bottom:1px solid #eee;
    color:#111;
    font-size:15px;
    font-weight:800;
    text-align:right;
}

.ahly-md-empty.inner{
    border:0;
    border-radius:0;
    padding:22px 16px;
    text-align:center;
}

.ahly-md-motm-widget{
    position:relative;
    margin-top:10px;
    padding:30px 26px 26px;
    background:
        radial-gradient(circle at 28% 30%,rgba(201,150,72,.12) 0 2px,transparent 3px),
        linear-gradient(135deg,#ffffff 0%,#fbfbfc 54%,#f7f8fb 100%);
    background-size:22px 22px,auto;
    border:1px solid #e4e7ec;
    border-radius:18px;
    box-shadow:0 18px 42px rgba(15,23,42,.10);
    overflow:hidden;
    text-align:center;
}
.ahly-md-motm-widget:before{
    content:"MVP";
    position:absolute;
    left:34px;
    top:92px;
    color:rgba(15,23,42,.035);
    font-size:96px;
    font-weight:900;
    line-height:1;
    pointer-events:none;
}
.ahly-md-motm-head{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin:0 auto 24px;
}
.ahly-md-motm-head:before,
.ahly-md-motm-head:after{
    content:"";
    width:76px;
    height:2px;
    background:linear-gradient(90deg,transparent,#c99648,transparent);
}
.ahly-md-motm-head span{
    min-height:42px;
    padding:0 24px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:20px;
    font-weight:900;
    box-shadow:0 12px 26px rgba(15,23,42,.25);
}
.ahly-md-motm-head span i{
    color:#d6a85c;
    font-style:normal;
}
.ahly-md-motm-head strong{
	display:none!important;
    position:absolute;
    top:22px;
    left:22px;
    min-width:54px;
    height:34px;
    padding:0 12px;
    border-radius:999px;
    background:#d6a85c;
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:900;
    box-shadow:0 10px 22px rgba(201,150,72,.24);
}
.ahly-md-motm-body{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    padding:0;
    z-index:1;
}
.ahly-md-motm-photo{
    width:178px;
    height:178px;
    border-radius:50%;
    overflow:hidden;
    flex:0 0 178px;
    background:#f2f4f7;
    border:5px solid #fff;
    outline:2px solid rgba(201,150,72,.52);
    box-shadow:0 20px 42px rgba(15,23,42,.16);
}
.ahly-md-motm-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.ahly-md-motm-info{
    min-width:0;
    width:100%;
}
.ahly-md-motm-info h4{
    margin:2px 0 10px;
    color:#111827;
    font-size:42px;
    font-weight:900;
    line-height:1.25;
}
.ahly-md-motm-info p{
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}
.ahly-md-motm-info p img{
    width:34px;
    height:34px;
    object-fit:contain;
}
.ahly-md-motm-line{
    width:62px;
    height:2px;
    background:linear-gradient(90deg,transparent,#c99648,transparent);
}
.ahly-md-motm-team{
    color:#667085;
    font-size:18px;
    font-weight:800;
    flex-wrap:wrap;
}
.ahly-md-motm-team small{
    color:#98a2b3;
    font-size:14px;
    font-weight:800;
}
.ahly-md-motm-metrics{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:24px;
}
.ahly-md-motm-metrics span{
    min-width:0;
    min-height:112px;
    padding:16px 12px 14px;
    text-align:center;
    border:1px solid #e4e7ec;
    border-radius:14px;
    background:rgba(255,255,255,.82);
    box-shadow:0 12px 24px rgba(15,23,42,.06);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}
.ahly-md-motm-metrics i{
    color:#c99648;
    font-size:24px;
    font-style:normal;
    line-height:1;
    margin-bottom:9px;
}
.ahly-md-motm-metrics b{
    display:block;
    color:#111827;
    font-size:36px;
    font-weight:900;
    line-height:1;
}
.ahly-md-motm-metrics small{
    display:block;
    margin-top:7px;
    color:#667085;
    font-size:15px;
    font-weight:800;
    line-height:1.25;
    white-space:nowrap;
}
@media(max-width:768px){
    .ahly-md-motm-widget{
        padding:24px 16px 18px;
        border-radius:14px;
    }
    .ahly-md-motm-widget:before{
        display:none;
    }
    .ahly-md-motm-head{
        margin-bottom:18px;
    }
    .ahly-md-motm-head:before,
    .ahly-md-motm-head:after{
        width:34px;
    }
    .ahly-md-motm-head span{
        min-height:38px;
        padding:0 18px;
        font-size:18px;
    }
    .ahly-md-motm-head strong{
        top:14px;
        left:14px;
    }
    .ahly-md-motm-photo{
        width:132px;
        height:132px;
        flex-basis:132px;
    }
    .ahly-md-motm-info h4{
        font-size:30px;
        margin-top:0;
    }
    .ahly-md-motm-team{
        font-size:15px;
    }
    .ahly-md-motm-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
        margin-top:18px;
    }
    .ahly-md-motm-metrics span{
        min-height:92px;
        padding:12px 8px;
    }
    .ahly-md-motm-metrics b{
        font-size:28px;
    }
    .ahly-md-motm-metrics small{
        font-size:13px;
    }
}

.ahly-md-timeline{
    position:relative;
    padding:10px 0;
}

.ahly-md-timeline:before{
    content:none;
    display:none;
}

.ahly-md-timeline-row{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);
    align-items:center;
    min-height:48px;
    padding:4px 16px;
}

.ahly-md-event-side{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.ahly-md-home-event{
    align-items:flex-end;
    text-align:right;
    padding-left:12px;
}

.ahly-md-away-event{
    align-items:flex-start;
    text-align:left;
    padding-right:12px;
}

.ahly-md-event-title{
    color:#111;
    font-size:13px;
    font-weight:800;
    line-height:1.35;
}

.ahly-md-event-label{
    color:#667085;
    font-size:13px;
    font-weight:400;
}

.ahly-md-event-center{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
}

.ahly-md-event-icon{
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    border:1px solid #d9d9d9;
    color:#111;
    font-size:13px;
    line-height:1;
}

.ahly-md-timeline-row.goal .ahly-md-event-icon,
.ahly-md-timeline-row.own-goal .ahly-md-event-icon{
    border-color:#111;
}

.ahly-md-timeline-row.yellow .ahly-md-event-icon{
    color:#f4b400;
    border-color:#f4b400;
}

.ahly-md-timeline-row.red .ahly-md-event-icon{
    color:#d92d20;
    border-color:#d92d20;
}

.ahly-md-timeline-row.substitution .ahly-md-event-icon{
    color:#16a34a;
    border-color:#bbf7d0;
    background:#f0fdf4;
}

.ahly-md-event-minute{
    color:#111;
    font-size:11px;
    font-weight:800;
    direction:ltr;
}

.ahly-md-stats-list{
    padding:12px 16px;
}

.ahly-md-stat-row{
    display:grid;
    grid-template-columns:64px minmax(0,1fr) 64px;
    align-items:center;
    gap:12px;
    min-height:50px;
    border-bottom:1px solid #f0f0f0;
}

.ahly-md-stat-row:last-child{
    border-bottom:0;
}

.ahly-md-stat-value{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    border-radius:999px;
    font-weight:900;
    font-size:13px;
}

.ahly-md-stat-value.home{
    color:#fff;
    background:#e51b2b;
}

.ahly-md-stat-value.away{
    color:#fff;
    background:#344054;
}

.ahly-md-stat-main strong{
    display:block;
    color:#111;
    font-size:13px;
    text-align:center;
    margin-bottom:8px;
}

.ahly-md-stat-bars{
    display:flex;
    height:8px;
    gap:3px;
    direction:ltr;
}

.ahly-md-stat-bars i{
    display:block;
    height:8px;
}

.ahly-md-stat-bars .home{
    margin-left:auto;
    background:#e51b2b;
    border-radius:8px 0 0 8px;
}

.ahly-md-stat-bars .away{
    background:#344054;
    border-radius:0 8px 8px 0;
}

.ahly-md-pitches-pro{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:12px 12px 0;
    align-items:stretch;
}

.ahly-md-pitch-card{
    display:flex;
    flex-direction:column;
    border:1px solid #e6e9ee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.ahly-md-pitch-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    border-bottom:1px solid #edf0f3;
    background:#fbfbfb;
}

.ahly-md-pitch-head strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#111;
    font-size:14px;
    font-weight:900;
}

.ahly-md-pitch-head span,
.ahly-md-formation-badge{
    direction:ltr;
    unicode-bidi:embed;
    border-radius:999px;
    background:#102718;
    color:#fff;
    font-size:12px;
    font-weight:900;
    line-height:1;
    padding:6px 10px;
    white-space:nowrap;
}

.ahly-md-pitch{
    position:relative;
    height:430px;
    min-height:430px;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:16px;
    padding:44px 14px 24px;
    overflow:hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 0 12.5%, transparent 12.5% 25%, rgba(255,255,255,.08) 25% 37.5%, transparent 37.5% 50%, rgba(255,255,255,.08) 50% 62.5%, transparent 62.5% 75%, rgba(255,255,255,.08) 75% 87.5%, transparent 87.5%),
        linear-gradient(180deg, #246f36 0%, #2f8844 52%, #247237 100%);
}

.ahly-md-pitch:before,
.ahly-md-pitch:after{
    content:"";
    position:absolute;
    inset:24px 18px;
    pointer-events:none;
    border:2px solid rgba(255,255,255,.35);
}

.ahly-md-pitch:after{
    inset:50% 18px auto;
    height:0;
    border-width:1px 0 0;
}

.ahly-md-pitch-row{
    position:relative;
    z-index:2;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px 14px;
}

.ahly-md-pitch-row-gk{
    min-height:74px;
    align-items:center;
}

.ahly-md-pitch-row-gk .ahly-md-pitch-player{
    transform:translateY(-2px);
}

.ahly-md-pitch-player{
    position:relative;
    width:72px;
    text-align:center;
    color:#fff;
    cursor:pointer;
}

.ahly-md-pitch-photo{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:54px;
    height:54px;
    margin:0 auto;
    border:3px solid #e51b2b;
    border-radius:50%;
    background:#fff;
    color:#111;
    box-shadow:0 4px 14px rgba(0,0,0,.24);
    overflow:visible;
}

.ahly-md-pitch-photo img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
}

.ahly-md-pitch-photo b{
    font-size:22px;
    font-weight:900;
}

.ahly-md-pitch-photo em{
    position:absolute;
    top:-5px;
    left:-4px;
    min-width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    border-radius:50%;
    background:#101828;
    color:#fff;
    font-size:10px;
    font-style:normal;
    font-weight:900;
}

.ahly-md-captain-badge{
    position:absolute;
    right:-6px;
    top:-6px;
    z-index:4;
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    border-radius:50%;
    background:#f59e0b;
    color:#111827;
    font-size:10px;
    font-weight:900;
    line-height:1;
    box-shadow:0 2px 7px rgba(0,0,0,.22);
}

.ahly-md-captain-inline,
.ahly-player-captain-inline-365{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:17px;
    height:17px;
    margin-right:5px;
    border-radius:50%;
    background:#f59e0b;
    color:#111827;
    font-size:10px;
    font-weight:900;
    vertical-align:middle;
}

.ahly-md-pitch-icon{
    position:absolute;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    border:2px solid #fff;
    border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,.25);
}

.ahly-md-pitch-icon:after{
    content:attr(data-tip);
    position:absolute;
    right:50%;
    bottom:calc(100% + 7px);
    transform:translateX(50%);
    display:none;
    min-width:max-content;
    max-width:150px;
    padding:5px 8px;
    border-radius:6px;
    background:#111827;
    color:#fff;
    font-size:10px;
    font-weight:800;
    line-height:1.3;
    white-space:nowrap;
    box-shadow:0 4px 12px rgba(0,0,0,.22);
}

.ahly-md-pitch-icon:hover:after{
    display:block;
}

.ahly-md-pitch-icon.goal{
    right:-8px;
    bottom:0;
    background:#fff;
}

.ahly-md-pitch-icon.goal img{
    width:16px;
    height:16px;
    object-fit:contain;
}

.ahly-md-pitch-icon.goal small{
    position:absolute;
    right:-6px;
    top:-8px;
    min-width:16px;
    height:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    border-radius:50%;
    background:#e51b2b;
    color:#fff;
    font-size:9px;
    font-weight:900;
    line-height:1;
}

.ahly-md-pitch-icon.yellow,
.ahly-md-pitch-icon.red{
    left:-8px;
    bottom:2px;
    width:12px;
    height:18px;
    border-radius:3px;
}

.ahly-md-pitch-icon.yellow{
    background:#ffc22d;
}

.ahly-md-pitch-icon.red{
    background:#e51b2b;
}

.ahly-md-pitch-icon.sub{
    right:-8px;
    top:2px;
    background:#fff;
    color:#22c55e;
    font-size:13px;
    font-style:normal;
    font-weight:900;
}

.ahly-md-pitch-name{
    display:block;
    margin-top:6px;
    overflow:hidden;
    text-overflow:ellipsis;
    color:#fff;
    font-size:11px;
    font-weight:900;
    line-height:1.35;
    text-shadow:0 1px 3px rgba(0,0,0,.65);
}

.ahly-md-pitch-rating{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:28px;
    height:17px;
    margin-top:3px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:10px;
    font-weight:900;
    line-height:1;
    box-shadow:0 2px 6px rgba(0,0,0,.18);
}

.ahly-md-pitch-rating.high{
    background:#16a34a;
}

.ahly-md-pitch-rating.ok{
    background:#f59e0b;
}

.ahly-md-pitch-rating.low{
    background:#ef4444;
}

.ahly-md-formation-badge{
    position:absolute;
    z-index:3;
    right:12px;
    bottom:10px;
    background:rgba(0,0,0,.42);
}

.ahly-md-pitch-logo{
    position:absolute;
    z-index:3;
    left:12px;
    bottom:8px;
    width:92px;
    max-height:38px;
    object-fit:contain;
    filter:brightness(0) invert(1);
    opacity:.68;
    pointer-events:none;
}

.ahly-md-pitch-subbed{
    border-top:1px solid #edf0f3;
    background:#fff;
    padding:10px 12px 12px;
}

.ahly-md-pitch-subbed > strong{
    display:block;
    margin-bottom:8px;
    color:#111827;
    font-size:12px;
    font-weight:900;
}

.ahly-md-pitch-subbed > div{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.ahly-md-pitch-subbed .ahly-md-pitch-player{
    width:58px;
    color:#111;
}

.ahly-md-pitch-subbed .ahly-md-pitch-photo{
    width:42px;
    height:42px;
}

.ahly-md-pitch-subbed .ahly-md-pitch-name{
    color:#111;
    font-size:10px;
    text-shadow:none;
}

.ahly-md-pitch-subbed .ahly-md-pitch-rating{
    height:15px;
    min-width:25px;
    font-size:9px;
}

.ahly-md-lineups-pro{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    padding:12px;
}

.ahly-md-lineup-team-pro{
    border:1px solid #eee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.ahly-md-lineup-team-pro > h3{
    margin:0;
    padding:12px;
    background:#fbfbfb;
    border-bottom:1px solid #eee;
    font-size:15px;
    text-align:center;
}

.ahly-md-lineup-block-pro{
    padding:12px;
    border-bottom:1px solid #f2f2f2;
}

.ahly-md-lineup-block-pro:last-child{
    border-bottom:0;
}

.ahly-md-lineup-block-pro h4{
    margin:0 0 10px;
    color:#e51b2b;
    font-size:13px;
}

.ahly-md-lineup-group-title{
    margin:12px 0 6px;
    padding:6px 10px;
    border-radius:6px;
    background:#f3f4f6;
    color:#111827;
    font-size:12px;
    font-weight:900;
}

.ahly-md-lineup-block-pro h4 + .ahly-md-lineup-group-title{
    margin-top:0;
}

.ahly-md-lineup-block-pro ul{
    margin:0;
    padding:0;
    list-style:none;
}

.ahly-md-lineup-block-pro li{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:34px;
    border-bottom:1px solid #f5f5f5;
    color:#111;
    font-size:13px;
}

.ahly-md-lineup-player-open{
    cursor:pointer;
}

.ahly-md-lineup-player-open:hover .ahly-md-player-name,
.ahly-md-pitch-player:hover .ahly-md-pitch-name{
    text-decoration:underline;
}

.ahly-md-lineup-block-pro li:last-child{
    border-bottom:0;
}

.ahly-md-player-name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:700;
}

.ahly-md-muted{
    color:#98a2b3;
    font-size:13px;
}

.ahly-player-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.ahly-player-modal.is-open{
    display:flex;
}

.ahly-player-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.55);
}

.ahly-player-modal-dialog{
    position:relative;
    z-index:2;
    width:min(430px,100%);
    max-height:min(680px,90vh);
    overflow:auto;
    border-radius:10px;
    background:#fff;
    box-shadow:0 22px 60px rgba(0,0,0,.28);
    font-family:Noto Kufi Arabic,Tahoma;
}

.ahly-player-modal-close{
    position:absolute;
    top:8px;
    left:8px;
    width:30px;
    height:30px;
    border:0;
    border-radius:50%;
    background:#f3f4f6;
    color:#111;
    font-size:20px;
    line-height:1;
    cursor:pointer;
}

.ahly-player-modal-head{
    display:flex;
    align-items:center;
    gap:12px;
    padding:20px 18px 16px;
    border-bottom:1px solid #eee;
}

.ahly-player-modal-photo{
    display:flex;
    align-items:center;
    justify-content:center;
    width:62px;
    height:62px;
    border:3px solid #e51b2b;
    border-radius:50%;
    background:#fff;
    overflow:hidden;
    flex:0 0 auto;
}

.ahly-player-modal-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ahly-player-modal-photo b{
    color:#111;
    font-size:24px;
    font-weight:900;
}

.ahly-player-modal-name{
    display:block;
    color:#111;
    font-size:15px;
    font-weight:900;
}

.ahly-player-modal-meta{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:12px;
}

.ahly-player-modal-rating{
    margin-right:auto;
    min-width:34px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:12px;
    font-weight:900;
}
.ahly-player-modal-rating.high{background:#16a34a}
.ahly-player-modal-rating.ok{background:#f59e0b}
.ahly-player-modal-rating.low{background:#ef4444}

.ahly-player-modal-events{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    background:#eee;
    border-bottom:1px solid #eee;
}

.ahly-player-modal-events span{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:58px;
    background:#fff;
    color:#667085;
    font-size:11px;
}

.ahly-player-modal-events b{
    color:#111;
    font-size:16px;
}

.ahly-player-modal-section-title{
    padding:12px 16px;
    border-bottom:1px solid #eee;
    color:#111;
    font-size:13px;
    font-weight:900;
}

.ahly-player-modal-stats div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 16px;
    border-bottom:1px solid #f1f1f1;
    font-size:12px;
}

.ahly-player-modal-stats span{
    color:#111;
}

.ahly-player-modal-stats strong{
    color:#0f172a;
    font-weight:800;
    direction:ltr;
    unicode-bidi:embed;
}

.ahly-player-modal-empty{
    padding:16px;
    color:#667085;
    font-size:13px;
}

.ahly-md-info-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;
    background:#eee;
}

.ahly-md-info-grid div{
    background:#fff;
    padding:14px 16px;
}

.ahly-md-info-grid span{
    display:block;
    color:#667085;
    font-size:12px;
    margin-bottom:5px;
}

.ahly-md-info-grid strong{
    color:#111;
    font-size:14px;
}

.ahly-md-officials-card{
    margin:14px 16px 16px;
    border:1px solid #eceff3;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
}

.ahly-md-officials-title{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    border-bottom:1px solid #f0f2f5;
    color:#101828;
}

.ahly-md-officials-title i{
    position:relative;
    width:46px;
    height:46px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff1f2;
    color:#e51b2b;
    font-style:normal;
    font-size:0;
    flex:0 0 46px;
    border:1px solid rgba(229,27,43,.16);
    box-shadow:0 8px 18px rgba(229,27,43,.12);
}

.ahly-md-officials-title i:before{
    content:"";
    width:34px;
    height:34px;
    background:url("https://stage.ahlawya.com/wp-content/uploads/2026/05/whistle-1.png") center/contain no-repeat;
}

.ahly-md-officials-title i:after{
    content:"";
    display:none;
}

.ahly-md-officials-title strong{
    font-size:14px;
    font-weight:800;
}

.ahly-md-officials-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;
    background:#eef0f3;
}

.ahly-md-official-item{
    background:#fff;
    padding:12px 14px;
    min-height:62px;
}

.ahly-md-official-item span{
    display:block;
    color:#667085;
    font-size:12px;
    margin-bottom:5px;
}

.ahly-md-official-item strong{
    color:#111827;
    font-size:14px;
    font-weight:800;
}

@media(max-width:768px){
    .ahly-md-pro-hero{
        padding:18px 12px;
    }

    .ahly-md-pro-scoreboard{
        grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);
        gap:8px;
    }

    .ahly-md-team-card img{
        width:58px;
        height:58px;
    }

    .ahly-md-team-card strong{
        font-size:13px;
    }

    .ahly-md-officials-list{
        grid-template-columns:1fr;
    }

    .ahly-md-pro-score strong{
        min-width:88px;
        min-height:44px;
        font-size:27px;
    }

    .ahly-md-tabs{
        justify-content:flex-start;
    }

    .ahly-md-tabs button{
        min-width:105px;
        padding:12px 12px 10px;
        font-size:12px;
    }

    .ahly-md-timeline-row{
        grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);
        padding:5px 8px;
    }

    .ahly-md-event-title{
        font-size:12px;
    }

    .ahly-md-event-label{
        font-size:12px;
    }

    .ahly-md-stat-row{
        grid-template-columns:48px minmax(0,1fr) 48px;
        gap:8px;
    }

    .ahly-md-pitches-pro,
    .ahly-md-lineups-pro,
    .ahly-md-info-grid{
        grid-template-columns:1fr;
    }

    .ahly-md-pitch{
        height:400px;
        min-height:400px;
        padding:40px 10px 24px;
    }

    .ahly-md-pitch-row{
        gap:10px 8px;
    }

    .ahly-md-pitch-player{
        width:62px;
    }

    .ahly-md-pitch-photo{
        width:46px;
        height:46px;
    }

    .ahly-md-pitch-name{
        font-size:10px;
    }

    .ahly-md-pitch-logo{
        width:72px;
        max-height:30px;
    }
}

/* match-details.php */
.ahly-match-details-365{
    background:#fff;
    color:#111;
    border:1px solid #e8e8e8;
    border-radius:8px;
    overflow:hidden;
    font-family:Noto Kufi Arabic,Tahoma;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.ahly-md-header{
    background:#fff;
    border-bottom:1px solid #eee;
    padding:16px;
}

.ahly-md-meta{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:14px;
    color:#666;
    font-size:12px;
}

.ahly-md-meta span{
    background:#f7f7f7;
    border:1px solid #eee;
    border-radius:16px;
    padding:5px 10px;
}

.ahly-md-scoreboard{
    display:grid;
    grid-template-columns:1fr 92px 1fr;
    align-items:center;
    gap:14px;
}

.ahly-md-score{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    border-radius:22px;
    background:#e51b2b;
    color:#fff;
    font-size:18px;
    font-weight:800;
    direction:ltr;
}

.ahly-md-venue{
    margin-top:12px;
    color:#777;
    font-size:13px;
    text-align:center;
}

.ahly-md-section{
    border-bottom:1px solid #eee;
    background:#fff;
}

.ahly-md-section:last-child{
    border-bottom:0;
}

.ahly-md-section > h3{
    margin:0;
    padding:13px 16px;
    background:#f7f7f7;
    border-bottom:1px solid #e9e9e9;
    font-size:17px;
    font-weight:800;
}

.ahly-md-empty{
    padding:16px;
    color:#777;
    background:#fff;
    border:1px solid #eee;
    border-radius:8px;
    font-family:Noto Kufi Arabic,Tahoma;
}

.ahly-md-debug{
    margin:12px 0 0;
    padding:12px;
    border:1px solid #ffe08a;
    border-radius:8px;
    background:#fff8dd;
    color:#111;
    direction:ltr;
    text-align:left;
    font-size:13px;
    font-family:Noto Kufi Arabic,Tahoma;
}

.ahly-md-debug p{
    margin:6px 0;
}

.ahly-md-debug pre{
    max-height:240px;
    overflow:auto;
    background:#fff;
    border:1px solid #eee;
    padding:8px;
}

.ahly-md-events{
    padding:12px 16px;
}

.ahly-md-event{
    display:grid;
    grid-template-columns:54px 108px 1fr;
    align-items:center;
    gap:10px;
    min-height:42px;
    border-bottom:1px solid #f0f0f0;
    font-size:13px;
}

.ahly-md-event:last-child{
    border-bottom:0;
}

.ahly-md-event.away{
    direction:ltr;
    text-align:left;
}

.ahly-md-event.away .ahly-md-event-player,
.ahly-md-event.away .ahly-md-event-type{
    direction:rtl;
}

.ahly-md-minute{
    color:#777;
    font-weight:700;
    direction:ltr;
}

.ahly-md-event-type{
    display:inline-flex;
    justify-content:center;
    border-radius:16px;
    padding:5px 8px;
    background:#f1f1f1;
    color:#444;
    font-size:12px;
    white-space:nowrap;
}

.ahly-md-event.goal .ahly-md-event-type,
.ahly-md-event.own-goal .ahly-md-event-type{
    background:#e51b2b;
    color:#fff;
}

.ahly-md-event.yellow .ahly-md-event-type{
    background:#f9d65c;
    color:#222;
}

.ahly-md-event.red .ahly-md-event-type{
    background:#d32f2f;
    color:#fff;
}

.ahly-md-event.substitution .ahly-md-event-type{
    background:#e8f5ee;
    color:#157a3d;
}

.ahly-md-event-player{
    font-weight:700;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ahly-md-lineups{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    padding:16px;
}

.ahly-md-lineup-team{
    border:1px solid #eee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.ahly-md-lineup-team > h3{
    margin:0;
    padding:12px;
    background:#fbfbfb;
    border-bottom:1px solid #eee;
    font-size:16px;
}

.ahly-md-lineup-block{
    padding:12px;
    border-bottom:1px solid #f1f1f1;
}

.ahly-md-lineup-block:last-child{
    border-bottom:0;
}

.ahly-md-lineup-block h4{
    margin:0 0 8px;
    font-size:13px;
    color:#e51b2b;
}

.ahly-md-lineup-block ul{
    list-style:none;
    margin:0;
    padding:0;
}

.ahly-md-lineup-block li{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:30px;
    border-bottom:1px solid #f5f5f5;
    font-size:13px;
}

.ahly-md-lineup-block li:last-child{
    border-bottom:0;
}

.ahly-md-shirt{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:24px;
    border-radius:6px;
    border:1px solid #e5e5e5;
    color:#e51b2b;
    font-weight:800;
    flex:0 0 auto;
}

.ahly-md-lineup-block small{
    margin-right:auto;
    color:#888;
    font-size:11px;
}

@media(max-width:768px){
    .ahly-md-scoreboard{
        grid-template-columns:1fr;
        gap:10px;
    }

    .ahly-md-score{
        width:92px;
        margin:0 auto;
        order:2;
    }

    .ahly-md-event{
        grid-template-columns:42px 92px 1fr;
        gap:7px;
        font-size:12px;
    }

    .ahly-md-event-type{
        font-size:11px;
        padding:5px 6px;
    }

    .ahly-md-lineups{
        grid-template-columns:1fr;
        padding:12px;
        gap:12px;
    }
}

.ahly-standings-header {
    background: #f7f7f7;
    border-bottom: 1px solid #e9e9e9;
    padding: 13px 16px;
    font-size: 17px;
    font-weight: bold;
    color: #111;
}

.ahly-standings-group-title {
    padding: 32px 26px 8px;
    font-size: 15px;
    font-weight: bold;
    color: #e53935;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.ahly-standings-scroll {
    width: 100%;
    overflow-x: auto;
}

.ahly-standings-table-365 {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 12px;
    text-align: center;
}

.ahly-standings-table-365 th {
    height: 34px;
    background: #f3f3f3;
    color: #555;
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
    padding: 0 8px;
    width: 1%;
}

.ahly-standings-table-365 td {
    height: 43px;
    border-bottom: 1px solid #eee;
    background: #fff;
    white-space: nowrap;
    padding: 0 8px;
    width: 1%;
}

.ahly-standings-table-365 td.goal-diff{
    direction: rtl !important;
    unicode-bidi: isolate !important;
    text-align: center;
}

.ahly-standings-table-365 td.goal-diff .goal-separator{
    display: inline-block;
    direction: rtl;
    unicode-bidi: isolate;
    margin: 0 2px;
}
    
	.ahly-standings-table-365 tr:nth-child(even) td {
    background: #fbfbfb;
}

.ahly-standings-table-365 tr.is-ahly td {
    background: #f7dbdb !important;
    font-weight: bold;
}

.ahly-standings-table-365 tr.qualified td:first-child {
    border-right: 6px solid #2eaf4a;
}

.ahly-standings-table-365 tr.confederation td:first-child {
    border-right: 6px solid #f9a825;
}

.ahly-standings-table-365 tr.relegation td:first-child {
    border-right: 6px solid #e53935;
}

.ahly-standings-table-365 .rank-col {
    width: 40px;
    min-width: 40px;
    font-weight: bold;
}

.ahly-standings-table-365 .team-col {
    width: auto;
    min-width: 190px;
    text-align: right;
    padding-right: 8px;
}

.ahly-standings-table-365 .team-col img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px;
}

.ahly-standings-table-365 .points {
    font-weight: bold;
    color: #111;
}

.ahly-standings-table-365 .form-col {
    min-width: 120px;
}

.ahly-standings-table-365 .next-col {
    min-width: 44px;
}

.ahly-standings-table-365 .next-col img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    cursor:pointer;
}

.ahly-form-dot {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 0 1px;
    border: none;
    cursor: pointer;
}

.ahly-form-dot.win {
    color: #fff;
    background: #2eaf4a;
}

.ahly-form-dot.draw {
    color: #fff;
    background: #f9a825;
}

.ahly-form-dot.loss {
    color: #fff;
    background: #e53935;
}

.ahly-form-dot[data-ahly-form-tooltip] {
    position: relative;
    outline: none;
}

.ahly-form-dot[data-ahly-form-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(50%);
    width: max-content;
    max-width: 240px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    text-align: center;
    direction: rtl;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 20;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.ahly-form-dot[data-ahly-form-tooltip]::before {
    content: "";
    position: absolute;
    right: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(50%);
    border: 5px solid transparent;
    border-top-color: #111;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 21;
}

.ahly-form-dot[data-ahly-form-tooltip]:hover::after,
.ahly-form-dot[data-ahly-form-tooltip]:hover::before,
.ahly-form-dot[data-ahly-form-tooltip]:focus-visible::after,
.ahly-form-dot[data-ahly-form-tooltip]:focus-visible::before,
.ahly-form-dot.is-tooltip-open::after,
.ahly-form-dot.is-tooltip-open::before {
    opacity: 1;
    visibility: visible;
}
.ahly-form-empty {
    color: #999;
}

.ahly-standings-legend {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    color: #777;
    font-size: 12px;
    border-top: 1px solid #eee;
}

.ahly-standings-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-left: 5px;
}

.ahly-standings-legend .q {
    background: #2eaf4a;
}

.ahly-standings-legend .c {
    background: #f9a825;
}

.ahly-standings-legend .r {
    background: #e53935;
}

@media(max-width: 768px) {
    .ahly-standings-table-365 {
        width: 860px !important;
        min-width: 860px !important;
        table-layout: fixed !important;
    }

    .ahly-standings-table-365 th,
    .ahly-standings-table-365 td {
        padding-right: 3px !important;
        padding-left: 3px !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
    }

    .ahly-standings-table-365 .rank-col {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
    }

    .ahly-standings-table-365 .team-col {
        width: 240px !important;
        min-width: 240px !important;
        max-width: none !important;
        padding-right: 4px !important;
        padding-left: 4px !important;
    }

    .ahly-standings-table-365 .team-col span {
        display: inline-block;
        width: auto !important;
        max-width: 190px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: middle;
    }

    .ahly-standings-table-365 .team-col img {
        width: 20px !important;
        height: 20px !important;
        margin-left: 3px !important;
    }

    .ahly-standings-table-365 .form-col {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
    }

    .ahly-standings-table-365 .next-col {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
    }

    .ahly-standings-header {
        font-size: 15px;
    }
}

/* 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;right: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}


/* Custom lineup pitch image */
.ahly-md-pitch{
    background:url("https://stage.ahlawya.com/wp-content/uploads/2026/06/ahlawya-playground5.jpg") center/100% 100% no-repeat!important;
}
.ahly-md-pitch:before,
.ahly-md-pitch:after,
.ahly-md-pitch-logo{
    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;
}


/* Full player details page */
.ahly-player-full-page{
    max-width:1120px;
    margin:24px auto 40px;
    padding:0 14px;
    font-family:Noto Kufi Arabic,Tahoma;
    color:#111827;
}
.ahly-player-full-hero{
    display:grid;
    grid-template-columns:270px minmax(0,1fr);
    gap:28px;
    align-items:center;
    min-height:230px;
    padding:22px;
    border:1px solid #edf0f5;
    border-radius:16px;
    background:url("https://stage.ahlawya.com/wp-content/uploads/2026/06/any-team-banner.jpg") center/cover no-repeat;
    box-shadow:0 18px 44px rgba(15,23,42,.08);
}
.ahly-player-full-hero.is-ahly-player{
    position:relative;
    overflow:hidden;
    background:url("https://stage.ahlawya.com/wp-content/uploads/2026/05/Al-Ahly-FC-banner.jpg") center/cover no-repeat;
}
.ahly-player-full-hero.is-ahly-player > *{
    position:relative;
    z-index:1;
}
.ahly-player-full-hero.is-ahly-player .ahly-player-full-photo{
    border-color:#fff;
}
.ahly-player-full-hero.is-ahly-player .ahly-player-full-title h1{
    color:#fff;
}
.ahly-player-full-hero.is-ahly-player .ahly-player-full-title span{
    color:#fff;
    text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.ahly-player-card-365-link{
    color:inherit;
    text-decoration:none;
}
.ahly-player-card-365-link:hover .ahly-player-name-365{
    color:#e51b2b;
}
.ahly-player-full-photo{
    width:270px;
    height:auto;
    border:4px solid #e51b2b;
    border-radius:24px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 16px 32px rgba(229,27,43,.16);
}
.ahly-player-full-photo img{
    width:100%;
    height:auto;
    object-fit:contain;
    display:block;
}
.ahly-player-full-title h1{
    margin:0 0 8px;
    color:#111827;
    font-size:34px;
    font-weight:900;
    line-height:1.25;
}
.ahly-player-full-title span{
    display:block;
    margin-bottom:12px;
    color:#667085;
    font-size:14px;
    font-weight:800;
}
.ahly-player-full-title p{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0;
}
.ahly-player-hero-facts{
    display:none!important;
    flex-wrap:wrap;
    gap:7px;
    margin-top:12px;
}
.ahly-player-hero-facts span{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:#111827;
    font-size:12px;
    font-weight:900;
}
.ahly-player-age-block{
    width:fit-content;
    max-width:100%;
    margin-top:14px;
}
.ahly-player-age-box{
    padding:7px 9px 8px;
    border:1px solid #edf0f5;
    border-radius:14px;
    background:#fff;
    color:#111;
    text-align:center;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.ahly-player-age-box h2{
    margin:0 0 7px;
    color:#111;
    font-size:13px;
    font-weight:800;
    line-height:1.25;
}
.ahly-player-age-units{
    display:grid;
    grid-template-columns:repeat(3,43px);
    gap:7px;
    align-items:start;
    justify-content:center;
    direction:ltr;
}
.ahly-player-age-units div{
    display:grid;
    gap:5px;
    justify-items:center;
}
.ahly-player-age-units strong{
    display:flex;
    align-items:center;
    justify-content:center;
    width:43px;
    height:43px;
    border-radius:14px;
    background:#ff1f2d;
    color:#fff;
    font-size:28px;
    font-weight:800;
    line-height:1;
}
.ahly-player-age-units span{
    color:#111;
    font-size:11px;
    font-weight:700;
    line-height:1.2;
}
.ahly-player-age-block p{
    margin:4px 0 0;
    color:#fff;
    text-align:center;
    font-size:11px;
    font-weight:800;
    line-height:1.25;
}
.ahly-player-full-title b{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:7px 12px;
    border:1px solid #edf0f5;
    border-radius:999px;
    background:#fff;
    color:#e51b2b;
    font-size:13px;
    font-weight:900;
}
.ahly-player-profile-card{
    margin-top:14px;
}
.ahly-player-profile-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    padding:14px;
}
.ahly-player-profile-item{
    min-height:126px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:9px;
    padding:14px 12px;
    border:1px solid #edf0f5;
    border-radius:14px;
    background:
        linear-gradient(145deg,rgba(229,27,43,.07),rgba(255,255,255,0) 48%),
        #fbfcff;
    box-shadow:0 10px 22px rgba(15,23,42,.04);
}
.ahly-player-profile-item span{
    color:#111827;
    font-size:12px;
    font-weight:900;
}
.ahly-player-profile-item strong{
    color:#e51b2b;
    font-size:24px;
    font-weight:900;
    line-height:1.15;
    word-break:break-word;
}
.ahly-player-profile-item em{
    min-height:32px;
    color:#667085;
    font-size:10px;
    font-style:normal;
    font-weight:800;
    line-height:1.6;
}
.ahly-player-insight-grid{
    display:grid;
    grid-template-columns:.85fr 1.15fr 1.15fr;
    gap:14px;
    margin-top:14px;
}
.ahly-player-insight-grid .ahly-player-full-card{
    margin-top:0;
}
.ahly-player-compare-card{
    grid-column:span 2;
}
.ahly-player-feature-grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
    gap:14px;
    margin-top:14px;
}
.ahly-player-feature-grid .ahly-player-full-card{
    margin-top:0;
}
.ahly-player-recent-table-wrap{
    overflow-x:auto;
}
.ahly-player-recent-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
    font-size:12px;
}
.ahly-player-recent-table th,
.ahly-player-recent-table td{
    padding:10px 9px;
    border-bottom:1px solid #edf0f5;
    text-align:center;
    font-weight:900;
    vertical-align:middle;
}
.ahly-player-recent-table th:first-child,
.ahly-player-recent-table td:first-child{
    text-align:right;
}
.ahly-player-recent-table thead th{
    background:#fbfcff;
    color:#667085;
    font-size:11px;
}
.ahly-player-recent-table strong{
    display:block;
    color:#111827;
    font-size:13px;
    line-height:1.35;
}
.ahly-player-recent-table small{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:11px;
    font-weight:800;
}
.ahly-player-recent-table b{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:50px;
    min-height:28px;
    padding:4px 8px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    direction:ltr;
}
.ahly-player-recent-rating{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    min-height:26px;
    padding:4px 8px;
    border-radius:999px;
    background:#f5b800;
    color:#fff;
    font-size:12px;
    font-weight:900;
    direction:ltr;
}
.ahly-player-trophy-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    padding:14px;
}
.ahly-player-trophy-item{
    position:relative;
    min-height:132px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:14px 10px;
    border:1px solid #edf0f5;
    border-radius:12px;
    background:linear-gradient(180deg,#fff,#fffaf0);
    text-align:center;
}
.ahly-player-trophy-item i{
    width:38px;
    height:38px;
    display:block;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath fill='%23f5b800' d='M21 10h22v8c0 12-5 20-11 20S21 30 21 18v-8Z'/%3E%3Cpath stroke='%23f5b800' stroke-width='5' stroke-linecap='round' d='M21 16H10c0 10 5 16 14 17M43 16h11c0 10-5 16-14 17'/%3E%3Cpath fill='%23f5b800' d='M29 37h6v10h-6zM21 49h22v6H21z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ahly-player-trophy-item strong{
    color:#111827;
    font-size:13px;
    font-weight:900;
    line-height:1.35;
}
.ahly-player-trophy-item span{
    color:#667085;
    font-size:11px;
    font-weight:800;
    line-height:1.45;
}
.ahly-player-trophy-item b{
    position:absolute;
    top:8px;
    left:8px;
    min-width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-size:11px;
}
.ahly-player-social-list{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
    padding:14px;
}
.ahly-player-social-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:92px;
    padding:12px 10px;
    border:1px solid #edf0f5;
    border-radius:14px;
    background:linear-gradient(180deg,#fff,#fbfcff);
    color:#111827!important;
    text-decoration:none!important;
    text-align:center;
    font-size:12px;
    font-weight:900;
    box-shadow:0 10px 22px rgba(15,23,42,.04);
}
.ahly-player-social-link:hover{
    border-color:rgba(229,27,43,.35);
    background:#fff7f8;
    transform:translateY(-1px);
}
.ahly-player-social-link i{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 34px;
    border-radius:50%;
    background:#111827;
    color:#fff;
    font-size:13px;
    font-style:normal;
    font-weight:900;
    line-height:1;
}
.ahly-player-social-link span{
    color:#111827!important;
    line-height:1.25;
}

/*
.ahly-player-social-link.instagram i{background:#c13584}
.ahly-player-social-link.facebook i{background:#1877f2}
.ahly-player-social-link.x i,
.ahly-player-social-link.twitter i{background:#111827}
.ahly-player-social-link.youtube i{background:#ff0000}
.ahly-player-social-link.tiktok i{background:#000}
.ahly-player-social-link.website i{background:#e51b2b}
*/

.ahly-player-social-link i,
.ahly-player-social-link .ahly-player-social-icon{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:red!important;
    color:#ffffff!important;
    font-size:0!important;
    line-height:0!important;
    margin:0 auto 8px!important;
    overflow:hidden!important;
}

.ahly-player-social-link i svg,
.ahly-player-social-link .ahly-player-social-icon svg{
    width:30px!important;
    height:30px!important;
    display:block!important;
    fill:currentColor!important;
    color:#fff!important;
}

.ahly-player-social-link i,
.ahly-player-social-link .ahly-player-social-icon{
    border:1px solid red!important;
    transition:all 0.25s ease!important;
}

.ahly-player-social-link:hover i,
.ahly-player-social-link:hover .ahly-player-social-icon{
    background:#fff!important;
    color:red!important;
    border:2px solid red!important;
}

.ahly-player-social-link:hover i svg,
.ahly-player-social-link:hover .ahly-player-social-icon svg{
    fill:currentColor!important;
    color:red!important;
}

.ahly-player-recent-list{
    display:grid;
    gap:9px;
    padding:14px;
}
.ahly-player-recent-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:10px;
    align-items:center;
    padding:10px 12px;
    border:1px solid #edf0f5;
    border-radius:10px;
    background:#fbfcff;
}
.ahly-player-recent-row strong{
    display:block;
    color:#111827;
    font-size:13px;
    font-weight:900;
}
.ahly-player-recent-row span{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:11px;
    font-weight:800;
}
.ahly-player-recent-row b{
    min-width:54px;
    padding:5px 8px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    text-align:center;
    font-size:13px;
}
.ahly-player-recent-row small{
    min-width:82px;
    color:#e51b2b;
    font-size:12px;
    font-weight:900;
    text-align:left;
}
.ahly-player-rating-gauge{
    --rating-color:#16a34a;
    width:166px;
    height:166px;
    display:grid;
    place-items:center;
    margin:20px auto 12px;
    border-radius:50%;
    background:
        radial-gradient(circle at center,#fff 0 58%,transparent 59%),
        conic-gradient(var(--rating-color) 0 var(--rating-percent),#eef1f5 var(--rating-percent) 100%);
    box-shadow:inset 0 0 0 1px rgba(15,23,42,.05),0 16px 34px rgba(15,23,42,.08);
}
.ahly-player-rating-gauge.good{--rating-color:#16a34a}
.ahly-player-rating-gauge.mid{--rating-color:#f59e0b}
.ahly-player-rating-gauge.low{--rating-color:#ef4444}
.ahly-player-rating-gauge > div{
    width:112px;
    height:112px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.ahly-player-rating-gauge strong{
    color:#111827;
    font-size:31px;
    font-weight:900;
    line-height:1;
}
.ahly-player-rating-gauge span{
    margin-top:7px;
    color:#667085;
    font-size:12px;
    font-weight:900;
}
.ahly-player-rating-scale{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    padding:0 14px 4px;
}
.ahly-player-rating-scale span{
    padding:6px 5px;
    border-radius:999px;
    background:#f6f7f9;
    color:#667085;
    font-size:10px;
    font-weight:900;
    text-align:center;
}
.ahly-player-rating-scale span:nth-child(1){
    background:#fff0f1;
    color:#dc2626;
}
.ahly-player-rating-scale span:nth-child(2){
    background:#fff7e6;
    color:#b45309;
}
.ahly-player-rating-scale span:nth-child(3){
    background:#e7f7ed;
    color:#15803d;
}
.ahly-player-chart-note{
    margin:0 16px 16px;
    color:#667085;
    font-size:11px;
    font-weight:800;
    line-height:1.7;
    text-align:center;
}
.ahly-player-compare-table{
    width:100%;
    border-collapse:collapse;
    font-size:12px;
}
.ahly-player-compare-table th,
.ahly-player-compare-table td{
    padding:11px 10px;
    border-bottom:1px solid #edf0f5;
    text-align:center;
    font-weight:900;
}
.ahly-player-compare-table th:first-child{
    text-align:right;
}
.ahly-player-compare-table tbody tr:nth-child(even){
    background:#fbfcff;
}
.ahly-player-compare-table tbody tr:hover{
    background:#fff7f8;
}
.ahly-player-delta{
    display:inline-flex;
    min-width:44px;
    justify-content:center;
    padding:4px 8px;
    border-radius:999px;
    background:#f3f4f6;
    color:#667085;
}
.ahly-player-delta.up{
    background:#e7f7ed;
    color:#09843f;
}
.ahly-player-delta.down{
    background:#fff0f1;
    color:#d71920;
}
.ahly-player-full-grid{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:14px;
    margin-top:14px;
}
.ahly-player-full-card{
    margin-top:14px;
    border:1px solid #edf0f5;
    border-radius:14px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.ahly-player-full-card h2{
    margin:0;
    padding:15px 18px;
    border-bottom:1px solid #edf0f5;
    color:#111827;
    font-size:19px;
    font-weight:900;
}
.ahly-player-season-stats-card h2{
    text-align:center;
    font-size:23px;
}
.ahly-player-full-info{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.ahly-player-full-info div{
    min-height:72px;
    padding:14px 16px;
    border-bottom:1px solid #f1f3f6;
    border-left:1px solid #f1f3f6;
}
.ahly-player-full-info span{
    display:block;
    margin-bottom:7px;
    color:#667085;
    font-size:12px;
    font-weight:800;
}
.ahly-player-full-info strong{
    color:#111827;
    font-size:15px;
    font-weight:900;
}
.ahly-player-full-teams{
    display:grid;
    gap:10px;
    padding:14px;
    max-height:520px;
    overflow:auto;
}
.ahly-player-full-teams .ahly-player-team-item{
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:62px;
    padding:10px;
    border:1px solid #edf0f5;
    border-radius:10px;
    background:#fbfcff;
}
.ahly-player-full-teams .ahly-player-team-item.current{
    border-color:rgba(229,27,43,.24);
    background:linear-gradient(135deg,#fff,#fff7f8);
}
.ahly-player-full-teams .ahly-player-team-item.national{
    background:linear-gradient(135deg,#fff,#f7fbff);
}
.ahly-player-full-teams img{
    width:34px;
    height:34px;
    object-fit:contain;
}
.ahly-player-team-logo-empty{
    width:34px;
    height:34px;
    display:block;
}
.ahly-player-full-teams strong{
    grid-column:2;
    font-size:14px;
    font-weight:900;
}
.ahly-player-full-teams small{
    grid-column:2;
    margin-top:-4px;
    color:#667085;
    font-size:11px;
    font-weight:800;
    line-height:1.4;
}
.ahly-player-full-stats{
    border:0!important;
    border-radius:0!important;
}
.ahly-player-page-empty{
    padding:24px 18px;
    border:1px solid #edf0f5;
    border-radius:14px;
    background:#fff;
    color:#667085;
    font-size:14px;
    font-weight:800;
    text-align:center;
}
.ahly-player-page-empty.small{
    margin:14px;
    padding:18px 14px;
}
.ahly-player-debug{
    margin-top:14px;
    padding:14px;
    border:1px solid #f4c430;
    border-radius:12px;
    background:#fff8db;
    color:#111827;
}
.ahly-player-debug > strong{
    display:block;
    margin-bottom:6px;
    font-size:14px;
    font-weight:900;
}
.ahly-player-debug p{
    margin:0 0 10px;
    color:#475467;
    font-size:12px;
    font-weight:800;
}
.ahly-player-debug pre{
    max-height:520px;
    overflow:auto;
    margin:0;
    padding:12px;
    border:1px solid #efd97d;
    border-radius:8px;
    background:#fff;
    direction:ltr;
    text-align:left;
    white-space:pre-wrap;
    font-size:12px;
    line-height:1.55;
}
@media(max-width:980px){
    .ahly-player-social-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
    .ahly-player-full-hero{grid-template-columns:1fr;text-align:center}
    .ahly-player-full-photo{margin:0 auto;width:220px;height:auto}
    .ahly-player-full-title h1{font-size:26px}
    .ahly-player-full-title p{justify-content:center}
    .ahly-player-hero-facts{justify-content:center}
    .ahly-player-age-block{margin-right:auto;margin-left:auto}
    .ahly-player-age-box{padding:7px 9px 8px}
    .ahly-player-age-box h2{font-size:13px}
    .ahly-player-age-units{grid-template-columns:repeat(3,43px);gap:7px}
    .ahly-player-age-units strong{width:43px;height:43px;font-size:28px}
    .ahly-player-age-units span,
    .ahly-player-age-block p{font-size:11px}
    .ahly-player-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ahly-player-insight-grid{grid-template-columns:1fr}
    .ahly-player-feature-grid{grid-template-columns:1fr}
    .ahly-player-trophy-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ahly-player-social-list{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ahly-player-full-grid{grid-template-columns:1fr}
    .ahly-player-full-info{grid-template-columns:1fr}
    .ahly-player-recent-row{grid-template-columns:1fr auto}
    .ahly-player-recent-row small{grid-column:1 / -1;text-align:right}
    .ahly-player-recent-table{
        min-width:0;
        border-collapse:separate;
        border-spacing:0 10px;
    }
    .ahly-player-recent-table thead{
        display:none;
    }
    .ahly-player-recent-table,
    .ahly-player-recent-table tbody,
    .ahly-player-recent-table tr,
    .ahly-player-recent-table td{
        display:block;
        width:100%;
    }
    .ahly-player-recent-table tr{
        padding:10px;
        border:1px solid #edf0f5;
        border-radius:14px;
        background:#fff;
        box-shadow:0 10px 22px rgba(15,23,42,.04);
    }
    .ahly-player-recent-table td{
        min-height:34px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding:8px 4px;
        border-bottom:1px solid #f1f3f6;
        text-align:left;
    }
    .ahly-player-recent-table td:first-child{
        display:block;
        text-align:right;
    }
    .ahly-player-recent-table td:first-child:before{
        display:none;
    }
    .ahly-player-recent-table td:last-child{
        border-bottom:0;
    }
    .ahly-player-recent-table td:before{
        content:attr(data-label);
        color:#667085;
        font-size:11px;
        font-weight:900;
    }
    .ahly-player-compare-table thead{
        display:none;
    }
    .ahly-player-compare-table,
    .ahly-player-compare-table tbody,
    .ahly-player-compare-table tr,
    .ahly-player-compare-table td,
    .ahly-player-compare-table th{
        display:block;
        width:100%;
    }
    .ahly-player-compare-table tr{
        padding:10px;
        border-bottom:1px solid #edf0f5;
    }
    .ahly-player-compare-table th{
        padding:0 0 8px;
        border-bottom:0;
        color:#111827;
        font-size:13px;
    }
    .ahly-player-compare-table td{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding:7px 0;
        border-bottom:0;
    }
    .ahly-player-compare-table td:before{
        content:attr(data-label);
        color:#667085;
        font-size:11px;
        font-weight:900;
    }
}

/* Phase close polish v3.10.7.93 */
.ahly-match-details-365,
.ahly-player-full-page{
    text-rendering:optimizeLegibility;
}

.ahly-md-card{
    border-color:#e5e7eb;
}

.ahly-md-tabs{
    gap:6px;
    scrollbar-width:thin;
}

.ahly-md-tabs button{
    white-space:nowrap;
}

.ahly-md-info-grid{
    border:1px solid #eceff3;
    border-radius:10px;
    overflow:hidden;
}

.ahly-md-info-grid div{
    min-height:74px;
}

.ahly-md-info-grid strong,
.ahly-md-official-item strong,
.ahly-md-event-title,
.ahly-md-player-name,
.ahly-md-pitch-name{
    overflow-wrap:anywhere;
}

.ahly-md-officials-card{
    box-shadow:0 10px 26px rgba(15,23,42,.04);
}

.ahly-md-officials-title strong{
    font-size:15px;
}

.ahly-md-official-item{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.ahly-md-timeline-row{
    align-items:center;
}

.ahly-md-event-side{
    min-width:0;
}

.ahly-md-event-label{
    margin-top:4px;
}

.ahly-md-pitch-player,
.ahly-md-lineup-player-open{
    -webkit-tap-highlight-color:transparent;
}

.ahly-player-full-hero.is-ahly-player .ahly-player-full-title h1,
.ahly-player-full-hero.is-ahly-player .ahly-player-full-title span{
    text-shadow:0 3px 12px rgba(0,0,0,.42);
}

.ahly-player-full-hero.is-ahly-player .ahly-player-full-title b{
    border-color:rgba(255,255,255,.26);
    background:rgba(255,255,255,.92);
    color:#111827!important;
}

.ahly-player-full-hero.is-ahly-player .ahly-player-hero-facts span{
    color:#111827!important;
}
.ahly-player-full-hero.is-ahly-player .ahly-player-age-box,
.ahly-player-full-hero.is-ahly-player .ahly-player-age-box h2,
.ahly-player-full-hero.is-ahly-player .ahly-player-age-units span{
    color:#111!important;
    text-shadow:none!important;
}
.ahly-player-full-hero.is-ahly-player .ahly-player-age-units strong{
    color:#fff!important;
    text-shadow:none!important;
}

.ahly-player-profile-item,
.ahly-player-full-card,
.ahly-player-recent-row{
    border-color:#e8ecf2;
}

.ahly-player-recent-row{
    min-height:68px;
}

@media(max-width:768px){
    .ahly-md-tabs{
        position:sticky;
        top:0;
        z-index:5;
        overflow-x:auto;
        padding:8px 8px 0;
        background:#fff;
    }

    .ahly-md-tabs button{
        min-width:118px;
        flex:0 0 auto;
    }

    .ahly-md-pro-scoreboard{
        grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr);
    }

    .ahly-md-team-card{
        min-width:0;
    }

    .ahly-md-pro-score strong{
        min-width:78px;
        font-size:24px;
    }

    .ahly-md-timeline-row{
        grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);
        gap:6px;
    }

    .ahly-md-event-icon{
        font-size:24px!important;
    }

    .ahly-md-officials-title i{
        width:42px;
        height:42px;
        flex-basis:42px;
    }

    .ahly-md-officials-title i:before{
        width:31px;
        height:31px;
    }

    .ahly-player-full-hero{
        padding:18px 14px;
        border-radius:12px;
    }

    .ahly-player-full-title span{
        line-height:1.5;
    }

    .ahly-player-profile-grid{
        gap:8px;
        padding:10px;
    }

    .ahly-player-profile-item{
        min-height:112px;
        padding:12px 10px;
    }

    .ahly-player-profile-item strong{
        font-size:20px;
    }
}

@media(max-width:480px){
    .ahly-md-pro-hero{
        padding:16px 8px;
    }

    .ahly-md-team-card img{
        width:50px;
        height:50px;
    }

    .ahly-md-team-card strong{
        font-size:12px;
        line-height:1.35;
    }

    .ahly-md-pro-scoreboard{
        gap:5px;
    }

    .ahly-md-info-grid div{
        min-height:66px;
        padding:12px;
    }

    .ahly-md-officials-card{
        margin:12px 10px 14px;
    }

    .ahly-md-pitch{
        height:380px;
        min-height:380px;
    }

    .ahly-md-pitch-player{
        width:58px;
    }

    .ahly-md-pitch-photo{
        width:42px;
        height:42px;
    }

    .ahly-player-full-photo{
        width:190px;
        border-radius:18px;
    }

    .ahly-player-full-title h1{
        font-size:24px;
    }

    .ahly-player-profile-grid{
        grid-template-columns:1fr;
    }
}

/* Mobile timeline spacing v3.10.7.126 */
@media(max-width:768px){
    .ahly-md-timeline-row{
        grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr)!important;
        gap:2px!important;
        padding-right:4px!important;
        padding-left:4px!important;
    }

    .ahly-md-home-event{
        padding-left:4px!important;
    }

    .ahly-md-away-event{
        padding-right:4px!important;
    }

    .ahly-md-event-title,
    .ahly-md-sub-player{
        max-width:100%!important;
        white-space:nowrap!important;
    }
}

/* Mobile lineup rows: keep five-player lines on one row. */
@media(max-width:768px){
    .ahly-md-pitch-row{
        flex-wrap:nowrap!important;
        justify-content:center!important;
        gap:0 clamp(2px,1vw,6px)!important;
        width:100%;
    }

    .ahly-md-pitch-row-gk{
        justify-content:center!important;
    }

    .ahly-md-pitch-player{
        flex:0 1 20%!important;
        width:20%!important;
        max-width:58px!important;
        min-width:0!important;
    }
}

/* Phase polish v3.10.7.126 */
.ahly-match-details-365,
.ahly-player-full-page{
    --ahly-inner-box-gap:14px;
}
.ahly-match-details-365 .ahly-md-panel.is-active{
    display:flex!important;
    flex-direction:column;
    gap:var(--ahly-inner-box-gap);
    padding:var(--ahly-inner-box-gap);
    background:#fff;
    border:1px solid #eee;
    border-top:0;
}
.ahly-match-details-365 .ahly-md-panel.is-active > .ahly-md-card,
.ahly-match-details-365 .ahly-md-panel.is-active > .ahly-md-motm-widget,
.ahly-match-details-365 .ahly-md-panel.is-active > .ahly-md-ahly-stars-widget{
    margin:0!important;
}
.ahly-match-details-365 .ahly-md-panel[data-ahly-panel="summary"].is-active > .ahly-md-motm-widget{
    margin:0!important;
}
.ahly-md-card > .ahly-md-h2h-widget,
.ahly-md-card > .ahly-md-form-grid,
.ahly-md-card > .ahly-md-empty.inner{
    margin:var(--ahly-inner-box-gap)!important;
}
.ahly-md-card > .ahly-md-empty.inner{
    border:1px solid #edf0f5;
    border-radius:8px;
}
.ahly-md-tabs{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
}
.ahly-md-tabs button{
    white-space:nowrap;
}
.ahly-md-team-card,
.ahly-md-pro-score,
.ahly-md-card,
.ahly-squad-section-365,
.ahly-player-card-365,
.ahly-staff-card-365{
    border-radius:8px!important;
}
.ahly-md-team-card,
.ahly-md-event-side,
.ahly-md-lineup-player-open,
.ahly-md-pitch-player{
    min-width:0;
}
.ahly-md-team-card strong,
.ahly-md-event-title,
.ahly-md-player-name,
.ahly-md-pitch-name,
.ahly-player-name-365,
.ahly-staff-name-365{
    overflow-wrap:anywhere;
}
.ahly-md-h2h-widget{
    margin-top:10px;
    background:#fff;
    border:1px solid #eee;
    border-radius:8px;
    overflow:hidden;
}
.ahly-md-h2h-widget > h3{
    margin:0;
    padding:14px 16px;
    border-bottom:1px solid #eee;
    color:#111;
    font-size:15px;
    font-weight:800;
    text-align:right;
}
.ahly-md-h2h-summary{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:24px;
    padding:22px 18px 24px;
    border-bottom:1px solid #eee;
}
.ahly-md-h2h-team{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-width:0;
}
.ahly-md-h2h-team img{
    width:66px;
    height:66px;
    object-fit:contain;
}
.ahly-md-h2h-team strong{
    max-width:100%;
    color:#111;
    font-size:13px;
    line-height:1.35;
    text-align:center;
    overflow-wrap:anywhere;
}
.ahly-md-h2h-counts{
    display:grid;
    grid-template-columns:auto 1px auto 1px auto;
    align-items:center;
    gap:18px;
    min-width:220px;
}
.ahly-md-h2h-counts span{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
}
.ahly-md-h2h-counts b{
    color:#111827;
    font-size:34px;
    font-weight:500;
    line-height:1;
}
.ahly-md-h2h-counts small{
    color:#667085;
    font-size:10px;
    font-weight:700;
}
.ahly-md-h2h-counts i{
    display:block;
    width:1px;
    height:28px;
    background:#98a2b3;
}
.ahly-md-h2h-list{
    background:#fff;
}
.ahly-md-row-toggle{
    position:absolute;
    inline-size:1px;
    block-size:1px;
    opacity:0;
    pointer-events:none;
}
.ahly-md-h2h-row{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:48px;
    padding:9px 16px;
    border-bottom:1px solid #eee;
}
.ahly-md-h2h-row:last-child{
    border-bottom:0;
}
.ahly-md-h2h-row time{
    color:#667085;
    font-size:11px;
    direction:ltr;
    text-align:left;
}
.ahly-md-h2h-row div{
    min-width:0;
    text-align:center;
}
.ahly-md-h2h-row small{
    display:block;
    color:#98a2b3;
    font-size:10px;
    font-weight:700;
    margin-bottom:3px;
}
.ahly-md-h2h-row p{
    display:grid;
    grid-template-columns:max-content 58px max-content;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin:0;
    color:#111827;
    font-size:12px;
    font-weight:800;
    direction:rtl;
}
.ahly-md-h2h-row span{
    min-width:0;
    max-width:160px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.ahly-md-h2h-row p > span:first-child{
    justify-self:center;
    text-align:center;
}
.ahly-md-h2h-row p > span:last-child{
    justify-self:center;
    text-align:center;
}
.ahly-md-h2h-row b{
    min-width:54px;
    color:#111827;
    font-size:16px;
    font-weight:900;
    text-align:center;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    direction:ltr!important;
    unicode-bidi:embed;
    white-space:nowrap;
}
.ahly-md-h2h-row b i,
.ahly-md-form-row b i{
    font-style:normal;
    color:#111827;
}
.ahly-md-h2h-row{
    grid-template-columns:92px minmax(0,1fr) 92px;
}
.ahly-md-form-row{
    grid-template-columns:76px minmax(0,1fr) 80px 34px;
}
.ahly-md-h2h-row em,
.ahly-md-form-row em{
    color:#667085;
    font-size:11px;
    font-style:normal;
    font-weight:700;
    text-align:left;
}
.ahly-md-toggle-list .is-extra{
    display:none;
}
.ahly-md-toggle-list .ahly-md-row-toggle:checked ~ .is-extra,
.ahly-md-h2h-list.is-expanded .is-extra,
.ahly-md-form-list.is-expanded .is-extra{
    display:grid;
}
.ahly-md-toggle-list .ahly-md-row-toggle:checked ~ .ahly-md-more-label .ahly-md-show-more,
.ahly-md-toggle-list .ahly-md-show-less{
    display:none;
}
.ahly-md-toggle-list .ahly-md-row-toggle:checked ~ .ahly-md-more-label .ahly-md-show-less{
    display:inline;
}
.ahly-md-more-rows{
    width:100%;
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-top:1px solid #eee;
    background:#fff;
    color:#475467;
    cursor:pointer;
    font-size:12px;
    font-weight:800;
}
.ahly-md-more-label{
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
}
.ahly-md-more-rows:hover{
    color:#e51b2b;
    background:#fbfcff;
}
.ahly-md-more-rows.is-disabled,
.ahly-md-more-rows:disabled{
    cursor:default;
    color:#98a2b3;
    background:#fafafa;
}
.ahly-md-more-rows.is-disabled:hover,
.ahly-md-more-rows:disabled:hover{
    color:#98a2b3;
    background:#fafafa;
}
.ahly-md-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:10px;
}
.ahly-md-form-widget{
    border:1px solid #eee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}
.ahly-md-form-widget h3{
    margin:0;
    padding:12px 14px 6px;
    border-bottom:0;
    color:#111827;
    font-size:14px;
    font-weight:800;
    text-align:center;
}
.ahly-md-form-strength{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding:8px 12px 14px;
    border-bottom:1px solid #eee;
    direction:ltr;
}
.ahly-md-form-strength img{
    width:min(58%,260px);
    min-width:150px;
    height:auto;
    display:block;
}
.ahly-md-form-strength strong{
    color:#8f8f8f;
    font-size:58px;
    font-weight:900;
    line-height:1;
    letter-spacing:0;
    white-space:nowrap;
}
.ahly-md-form-row{
    display:grid;
    align-items:center;
    gap:10px;
    min-height:46px;
    padding:8px 12px;
    border-bottom:1px solid #eee;
}
.ahly-md-form-row:last-child{
    border-bottom:0;
}
.ahly-md-form-row time{
    color:#667085;
    font-size:11px;
    direction:ltr;
    text-align:left;
}
.ahly-md-form-row div{
    min-width:0;
    text-align:center;
}
.ahly-md-form-row p{
    display:grid;
    grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:0;
    color:#111827;
    font-size:12px;
    font-weight:800;
    direction:rtl;
}
.ahly-md-form-row span{
    min-width:0;
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.ahly-md-form-row b{
    min-width:48px;
    color:#111827;
    font-size:15px;
    font-weight:900;
    text-align:center;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    direction:ltr!important;
    unicode-bidi:embed;
    white-space:nowrap;
}
.ahly-md-score-pair{
    direction:ltr!important;
    unicode-bidi:isolate!important;
    white-space:nowrap!important;
    flex-direction:row!important;
    gap:4px;
}
.ahly-md-h2h-row .ahly-md-score-pair,
.ahly-md-form-row .ahly-md-score-pair{
    direction:ltr!important;
    unicode-bidi:isolate!important;
    flex-direction:row!important;
}
.ahly-md-score-pair span{
    min-width:auto!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
.ahly-md-score-pair .ahly-md-score-left{order:1}
.ahly-md-score-pair i{order:2}
.ahly-md-score-pair .ahly-md-score-right{order:3}
.ahly-md-form-row > strong{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    font-size:12px;
    font-weight:900;
}
.ahly-md-form-row.win > strong{background:#3ab54a}
.ahly-md-form-row.draw > strong{background:#f6b800}
.ahly-md-form-row.loss > strong{background:#f05260}
.ahly-md-postmatch-stats{
    margin-top:10px;
}
@media(max-width:768px){
    .ahly-md-form-strength{
        gap:10px;
        padding:6px 10px 12px;
    }
    .ahly-md-form-strength img{
        width:58%;
        min-width:132px;
        max-width:220px;
    }
    .ahly-md-form-strength strong{
        font-size:42px;
    }
    .ahly-matches-box{
        display:block!important;
        box-sizing:border-box!important;
        float:none!important;
        clear:both!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:0 auto 12px auto!important;
        position:static!important;
        right:auto!important;
        left:auto!important;
        transform:none!important;
    }
    .ahly-match-row{
        padding:10px 6px;
        border-radius:8px;
        margin:8px 6px;
        border:1px solid #edf0f5;
    }
    .ahly-match-main{
        grid-template-columns:minmax(0,1fr) minmax(58px,auto) minmax(0,1fr);
        gap:4px;
    }
    .ahly-team{
        flex-direction:column!important;
        justify-content:flex-start!important;
        align-items:center!important;
        gap:4px!important;
        text-align:center!important;
    }
    .ahly-team.team-left,
    .ahly-team.team-right{
        flex-direction:column!important;
        text-align:center!important;
    }
    .ahly-team.team-right img,
    .ahly-team.team-right span{
        order:initial!important;
    }
    .ahly-team img{
        width:28px!important;
        height:28px!important;
    }
    .ahly-team span{
        display:-webkit-box!important;
        width:100%!important;
        max-width:100%!important;
        white-space:normal!important;
        overflow:hidden!important;
        text-overflow:clip!important;
        overflow-wrap:anywhere;
        word-break:normal;
        line-height:1.35;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
    }
    .ahly-score-pill{
        min-width:58px;
        padding:7px 8px;
        white-space:nowrap;
    }
    .ahly-md-pro-hero{
        padding:14px 10px!important;
    }
    .ahly-md-tabs{
        justify-content:flex-start!important;
        gap:6px!important;
        padding:8px!important;
    }
    .ahly-md-tabs button{
        flex:0 0 auto!important;
        min-width:max-content!important;
        padding:10px 12px!important;
    }
    .ahly-squad-365{
        padding:8px!important;
        border-radius:8px!important;
    }
    .ahly-player-card-365{
        min-height:0!important;
        padding:0 0 12px!important;
    }
    .ahly-player-img-365,
    .ahly-no-player-img-365{
        height:auto!important;
        aspect-ratio:auto;
    }
    .ahly-player-img-365 img,
    .ahly-no-player-img-365 img{
        width:100%!important;
        height:100%!important;
        max-height:none!important;
        object-fit:cover!important;
        object-position:top center!important;
    }
    .ahly-player-name-365{
        padding:12px 10px 4px!important;
        min-height:0!important;
    }
    .ahly-staff-card-365{
        display:grid!important;
        grid-template-columns:74px minmax(0,1fr)!important;
        gap:10px!important;
        align-items:center!important;
    }
    .ahly-staff-img-365{
        width:74px!important;
        min-width:74px!important;
        aspect-ratio:1/1;
    }
    .ahly-staff-img-365 img{
        height:100%!important;
        object-fit:cover!important;
    }
    .ahly-md-h2h-summary{
        grid-template-columns:minmax(0,72px) minmax(0,1fr) minmax(0,72px);
        gap:8px;
        padding:18px 10px;
    }
    .ahly-md-h2h-team img{
        width:54px;
        height:54px;
    }
    .ahly-md-h2h-team strong{
        font-size:12px;
    }
    .ahly-md-h2h-counts{
        justify-self:center;
        min-width:0;
        gap:8px;
    }
    .ahly-md-h2h-counts b{
        font-size:26px;
    }
    .ahly-md-h2h-counts small{
        font-size:9px;
    }
    .ahly-md-h2h-counts i{
        height:24px;
    }
    .ahly-md-h2h-row{
        grid-template-columns:1fr;
        gap:4px;
        padding:10px 12px;
    }
    .ahly-md-h2h-row time{
        text-align:center;
    }
    .ahly-md-h2h-row p{
        gap:8px;
    }
    .ahly-md-h2h-row span{
        min-width:0;
        max-width:34vw;
    }
    .ahly-md-h2h-row em,
    .ahly-md-form-row em{
        text-align:center;
    }
    .ahly-md-form-grid{
        grid-template-columns:1fr;
    }
    .ahly-md-form-row{
        grid-template-columns:1fr;
        gap:4px;
        padding:10px 12px;
    }
    .ahly-md-form-row time{
        text-align:center;
    }
    .ahly-md-form-row > strong{
        margin:0 auto;
        order:-1;
    }
    .ahly-md-form-row p{
        gap:8px;
    }
    .ahly-md-form-row span{
        max-width:34vw;
    }
}

@media(max-width:480px){
    .ahly-md-timeline-row{
        grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)!important;
        gap:1px!important;
        padding-right:2px!important;
        padding-left:2px!important;
    }

    .ahly-md-home-event{
        padding-left:3px!important;
    }

    .ahly-md-away-event{
        padding-right:3px!important;
    }

    .ahly-md-event-title,
    .ahly-md-sub-player{
        font-size:12px!important;
        line-height:1.2!important;
    }
}

/* FTP hotfix: mobile Ahly matches widget should not inherit a narrow column width. */
@media(max-width:768px){
    body .ahly-matches-box[dir="rtl"]{
        box-sizing:border-box!important;
        display:block!important;
        float:none!important;
        clear:both!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        position:static!important;
        left:auto!important;
        right:auto!important;
        transform:none!important;
        margin:0 auto 12px auto!important;
    }
    body .ahly-matches-box[dir="rtl"] .ahly-match-row{
        margin:8px 6px!important;
        padding-right:6px!important;
        padding-left:6px!important;
    }
    body .ahly-matches-box[dir="rtl"] .ahly-match-main{
        grid-template-columns:minmax(0,1fr) minmax(58px,auto) minmax(0,1fr)!important;
        gap:4px!important;
    }
    body .ahly-matches-box[dir="rtl"] .ahly-team span{
        display:-webkit-box!important;
        width:100%!important;
        max-width:100%!important;
        white-space:normal!important;
        overflow:hidden!important;
        text-overflow:clip!important;
        overflow-wrap:anywhere!important;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
    }
}


/* Ã˜ÂµÃ™ÂÃ˜Â­Ã˜Â© Ã˜Â§Ã™â€žÃ™â€žÃ˜Â§Ã˜Â¹Ã˜Â¨ - Ã˜ÂºÃ™Å Ã˜Â± Ã˜Â§Ã™â€žÃ˜Â£Ã™â€¡Ã™â€žÃ˜Â§Ã™Ë†Ã™Å  Ã™ÂÃ™â€šÃ˜Â· */
html body .ahly-player-full-page 
.ahly-player-full-hero:not(.is-ahly-player) 
.ahly-player-full-title h1{
    color:#fff !important;
	text-shadow:0 2px 8px rgba(0,0,0,.35);
}
/* Ã˜Â§Ã™â€žÃ˜Â§Ã˜Â³Ã™â€¦ Ã˜Â§Ã™â€žÃ˜Â¥Ã™â€ Ã˜Â¬Ã™â€žÃ™Å Ã˜Â²Ã™Å  - Ã˜ÂºÃ™Å Ã˜Â± Ã˜Â§Ã™â€žÃ˜Â£Ã™â€¡Ã™â€žÃ˜Â§Ã™Ë†Ã™Å  Ã™ÂÃ™â€šÃ˜Â· */
html body .ahly-player-full-page 
.ahly-player-full-hero:not(.is-ahly-player) 
.ahly-player-full-title span{
    color:#fff !important;
	text-shadow:0 2px 8px rgba(0,0,0,.35);
}
html body .ahly-player-full-page
.ahly-player-full-hero:not(.is-ahly-player)
.ahly-player-full-photo{
    border-color:#fff !important;
}

html body .ahly-player-full-page
.ahly-player-age-units span{
    color:#667085 !important;
    text-shadow:none !important;
}
/* Player page hotfix v3.10.7.178 */
html body .ahly-player-full-page .ahly-player-full-hero:not(.is-ahly-player) .ahly-player-full-photo{
    border-color:#fff !important;
}
html body .ahly-player-full-page .ahly-player-full-hero .ahly-player-age-box .ahly-player-age-units span,
html body .ahly-player-full-page .ahly-player-age-box .ahly-player-age-units span{
    color:#667085 !important;
    text-shadow:none !important;
}
/* Player recent result colors v3.10.7.178 */
.ahly-player-recent-table b.ahly-player-recent-score.win{
    background:#3ab54a!important;
    color:#fff!important;
}
.ahly-player-recent-table b.ahly-player-recent-score.draw{
    background:#f6b800!important;
    color:#fff!important;
}
.ahly-player-recent-table b.ahly-player-recent-score.loss{
    background:#f05260!important;
    color:#fff!important;
}

/* Next match shortcodes v3.10.7.178 */
.ahly-next-widget{border:1px solid #edf0f5;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.05);margin:0 0 14px;font-family:Noto Kufi Arabic,Tahoma}
.ahly-next-widget h3{margin:0;padding:12px 14px;border-bottom:1px solid #edf0f5;color:#111827;font-size:16px;font-weight:900;text-align:right}
.ahly-next-match-card{padding:14px}
.ahly-next-match-main{display:grid;grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:10px;align-items:center}
.ahly-next-match-card .ahly-score-pill{margin:auto}
.ahly-next-match-meta{margin-top:10px;color:#667085;font-size:12px;font-weight:800;text-align:center;line-height:1.7}
.ahly-next-standings-table{width:100%;border-collapse:collapse;font-size:12px}
.ahly-next-standings-table th,.ahly-next-standings-table td{padding:9px 7px;border-bottom:1px solid #edf0f5;text-align:center;font-weight:900;white-space:nowrap}
.ahly-next-standings-table th{background:#fbfcff;color:#667085;font-size:11px}
.ahly-next-standings-table .team-col{text-align:right;min-width:130px}
.ahly-next-standings-table .team-col img{width:22px;height:22px;object-fit:contain;margin-left:6px;vertical-align:middle}
.ahly-next-standings-table tr.is-ahly td{background:#fff7f8}
@media(max-width:640px){.ahly-next-match-main{grid-template-columns:minmax(0,1fr) minmax(58px,auto) minmax(0,1fr);gap:6px}.ahly-next-standings-table{font-size:11px}.ahly-next-standings-table th,.ahly-next-standings-table td{padding:8px 4px}.ahly-next-standings-table .team-col{min-width:96px}}
/* Player English name size v3.10.7.178 */
html body .ahly-player-full-page .ahly-player-full-hero .ahly-player-full-title span{
    display:block;
    font-size:18px!important;
    line-height:1.35!important;
    font-weight:900!important;
    margin-top:5px!important;
}
@media(max-width:680px){
    html body .ahly-player-full-page .ahly-player-full-hero .ahly-player-full-title span{
        font-size:16px!important;
    }
}
/* Player page padding v3.10.7.178 */
html body .ahly-player-full-page{
    padding:0!important;
}
@media(max-width:680px){
    html body .ahly-player-full-page{
        padding:0!important;
    }
}



@media(max-width:768px){

    .ahly-squad-head-365 h3{
        font-size:14px !important;
        line-height:1.3 !important;
        white-space:nowrap !important;
    }

    .ahly-count-365{
        font-size:12px !important;
        margin-right:3px !important;
        white-space:nowrap !important;
    }

}


/* تكبير صورة المدير الفني فقط - ديسكتوب */
.ahly-head-coach-wrap-365 .ahly-staff-img-365 {
    width: 220px !important;
    min-width: 220px !important;
}

/* ==============================
   المدير الفني + الجهاز الفني
   موبايل فقط
   ============================== */
@media (max-width: 767px) {

    /* الكارت: الصورة فوق والكلام تحت */
    .ahly-head-coach-wrap-365 .ahly-staff-card-365,
    .ahly-staff-grid-365 .ahly-staff-card-365 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        text-align: center !important;
    }

    /* منع الكلام من الدخول على الصورة */
    .ahly-head-coach-wrap-365 .ahly-staff-info-365,
    .ahly-staff-grid-365 .ahly-staff-info-365 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* ===== المدير الفني فقط ===== */

    .ahly-head-coach-wrap-365 .ahly-staff-img-365 {
        position: static !important;
        width: 220px !important;
        min-width: 220px !important;
        height: 220px !important;
        min-height: 220px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        flex: none !important;
    }

    .ahly-head-coach-wrap-365 .ahly-staff-img-365 img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }


    /* ===== باقي الجهاز الفني فقط ===== */

    .ahly-staff-grid-365 .ahly-staff-img-365 {
        position: static !important;
        width: 150px !important;
        min-width: 150px !important;
        height: 150px !important;
        min-height: 100px !important;
        margin: 0 auto !important;
        flex: none !important;
    }

    .ahly-staff-grid-365 .ahly-staff-img-365 img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
	
	.ahly-head-coach-wrap-365 .ahly-staff-country-365,
    .ahly-staff-grid-365 .ahly-staff-country-365 {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .ahly-head-coach-wrap-365 .ahly-country-flag,
    .ahly-staff-grid-365 .ahly-country-flag {
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}




/*========================================*/