@media (max-width:1600px){.auth-download-app{margin-right:0}.auth-download-app .text{flex:0 0 auto}.profile-content .search-form{width:100%}}@media (min-width:500px){}@media (max-width:1400px){}@media (max-width:1200px){.menu-ul li{margin-left:20px}.search-form-wrapper .search-form{width:200px}body.auth{padding:30px 0}}@media (max-width:1024px){#zuck-modal-content .story-viewer .head .left .time,#zuck-modal-content .story-viewer .head .right .close{display:initial}#zuck-modal.rtl #zuck-modal-content .story-viewer.with-back-button .head .left .item-preview{margin-right:10px}#zuck-modal.rtl #zuck-modal-content .story-viewer .head .left>.back{display:none}.general-stats-item{width:20%}}@media (max-width:991px){.scrollable-matches{max-height:initial}.dynamic-content-area-wrap{display:none}.hidden-md{display:none}#zuck-modal #zuck-modal-content .story-viewer .head .right{padding-left:15px}#zuck-modal.rtl #zuck-modal-content .story-viewer .slides-pagination .previous{left:auto;right:10px}#zuck-modal.rtl #zuck-modal-content .story-viewer .slides-pagination .next{right:auto;left:10px}#zuck-modal #zuck-modal-content .story-viewer .slides-pointers{top:20px}.header-wrapper .search-form-wrapper{display:none}body.auth{background-size:cover}.auth-download-app .img{display:none}.auth-form-wrap{width:100%;margin:20px auto;text-align:initial;padding:0 15px}.auth-form-wrap h3{margin-bottom:60px}.auth-form-wrap .mobile-back{display:inline-block;margin:0;margin-left:-5px}.auth-form-wrap .auth-form{text-align:initial}.auth-download-app .wrap{display:block;text-align:center;width:100%}.auth-download-app .download-btns{justify-content:center}.auth-download-app{min-height:initial;margin-bottom:30px}.auth-download-app .text{margin:0}.auth-download-app h3{font-size:28px;margin-bottom:15px}.auth-download-app p{font-size:20px;margin-bottom:30px}.player-info-wrap .text .player-name{margin-left:40px}.player-info-wrap{margin-left:0}.profile-header-wrapper{background-size:cover;padding:50px 20px 0 20px}.player-big-img{margin-left:0;max-width:100%;flex:0 0 auto;margin-top:-150px;margin-right:0;position:absolute;left:-50px;bottom:0;margin-bottom:0}.player-info-wrap .player-stats-info .player-info-item{padding:4px 20px}.player-info-wrap .player-stats-info .player-info-item:last-child{padding-left:0 !important}.player-info-wrap .player-stats-info .player-info-item:first-child{padding-right:0 !important}.player-big-img img{margin-right:0}.auth-wrapper .col-lg-8{display:none}body.auth{background:#131521}.stad-info-wrapper{padding-right:0}.small-news-item .news-img{height:140px}.video-item.small .news-img{height:140px}.full-m-item .teams .team-a,.full-m-item .teams .team-b{width:70px}.full-m-item .teams{width:70%}.full-m-item>div.date{width:30%}.full-m-item .champ{display:none}.teams_last_matches_header{padding:0 20px}}@media (max-width:767px){.rank-row .rank-group.main{width:46%}.match-event-item.penalties .team-item.team-a .p-shot-item,.match-event-item.penalties .team-item.team-a .p-shot-item:first-child{margin-right:0;margin-left:3px}.players-row .col{width:33.333%}.warning-hint{display:block;text-align:center;padding:20px}.warning-hint a{margin-top:20px}.change-profile-info{margin:0 auto}.line-match-item a .teams span.short-name{display:inline-block}.line-match-item a .teams span.full-name{display:none}.stories-section .container{padding:0}.stories-section .container .story:first-child{margin-right:20px !important}.page-breadcrumb{margin-bottom:25px}.champions-slider-wrap{margin-top:0}.filter-tags-wrap.scrollable-area-x{width:calc(100% + 40px)}.general-stats-item{width:33.333%;padding:0;margin-bottom:20px}.general-stats-wrap{flex-wrap:wrap}.general-stats-item:before{display:none}.general-stats-item.penalties{width:100%}.total-goals .progress{margin-right:0}.total-goals{margin-left:0;width:100%;margin-bottom:20px}.goals-details{flex-wrap:wrap;flex:1}.goals-details .goals-stats-item{margin-left:auto}.transform-history{min-height:initial}.scrollable-area-x{width:calc(100% + 40px);margin-right:-20px}.champ-filters .tab-filter-item:first-child{margin-right:20px}.mCSB_scrollTools{opacity:0 !important;visibility:hidden !important}.player-info-wrap .head{margin-bottom:20px}.player-info-wrap .text{flex-wrap:wrap}.player-info-wrap .text .player-name{margin-left:0;width:100%;display:inline-block;margin-bottom:20px}.player-info-wrap .text .player-name h1.player-page-heading,.player-info-wrap .text .player-name h3{font-size:20px;margin-bottom:8px}.player-info-wrap .text .player-name p.player-subline,.player-info-wrap .text .player-name h4{font-size:12px;line-height:1.45}.player-info-wrap .player-stats-info .player-info-item{width:74px;height:80px;display:inline-flex;background:rgba(31,33,46,0.5);overflow:hidden;border-radius:8px;border:1px solid rgba(112,116,136,0.2) !important;margin-left:10px;position:relative;z-index:5}header,.mobile-hide{display:none !important}.mobile-header{display:block}.about-wrapper{padding:0}footer{display:none}.action-bar{display:flex}body{min-height:100vh;padding-bottom:100px}.profile-page-header .big_container{padding:0}.profile-header-wrapper{border-radius:0;position:relative;align-items:flex-end;display:flex}.profile-header-wrapper.player:before{content:'';height:110px;right:0;left:0;bottom:0;position:absolute;background:linear-gradient(transparent,#131521);z-index:2}.filter-categories-wrap a{margin:0 10px}.matches-wrapper.wide .inline-match-item .result-wrap{margin:0 12px}.active-match-quick-links{display:none}.inline-match-item .first-team .img,.inline-match-item .second-team .img{margin-right:5px}.inline-match-item .first-team.second-team .img,.inline-match-item .second-team.second-team .img{margin-left:5px}.inline-match-item{padding:18px 10px}.inline-match-item.active-match .match-team-item a{margin-left:15px}.inline-match-item.active-match .match-team-item.second-team a{margin-right:15px}.active-match-progress{margin:0 12px}.result-status-text{top:-16px}.profile-header-wrapper.mini{margin-bottom:26px;min-height:300px;justify-content:center !important}.profile-header-wrapper.mini .profile-actions{top:30px;transform:none}.profile-header-wrapper.mini .club-logo{margin-bottom:40px;display:block;text-align:center}.profile-header-wrapper.mini .club-logo h3{margin-bottom:20px}.profile-header-wrapper.mini .follow-btn{position:initial;transform:none}.profile-header-wrapper.mini .filter-categories-wrap{position:initial}.profile-header-wrapper.mini .club-logo img{margin:0 0 15px}.mobile-back-button{display:flex}.profile-header-wrapper.club,.profile-header-wrapper.match{padding:0 15px}.players-table .rank-row .rank-group.main{width:50%}.rank-row{padding:0}.rank-group-wrapper{width:calc(100% + 40px);margin-right:-20px}.ranking-table{width:calc(100% + 40px);margin-right:-20px}.rank-group-wrapper .ranking-table{width:100%;margin-right:0}.rank-group-wrapper .rank-keys{padding:0 20px}.rank-keys-items:not(.match--results){display:block;padding:0;background:none}.rank-keys-items .rank-key svg{width:15px}.rank-keys-items:not(.match--results) .rank-key{margin-left:0;margin-bottom:5px;min-height:30px;border-radius:10px;display:flex;align-items:center;padding:0 15px;background:#191D2D}.rank-row .rank-col.win,.rank-row .rank-col.equal,.rank-row .rank-col.lose{display:none}.ranking-table:not(.players-table) .rank-group.matches.mr-auto{width:30%;flex:0 0 auto}.rank-group.results{width:14%;flex:0 0 auto}.inline-tabs-items .inline-tab-item{padding:0 15px;min-width:136px}.matches-wrapper .champ-links{display:none}.inline-match-item .result-wrap{margin:0 10px}.penalties-shots .p-shot-item{margin-right:3px}.penalties-shots.second-team-shots .p-shot-item{margin-left:3px;margin-right:0}.download-app-section{display:none}.popup-content.fav-teams-popup{padding:25px 20px 30px}.popup-item .popup-content .close-popup{left:15px}.player-info-wrap .head .player-img{width:40px;height:40px;margin-left:15px}.player-info-wrap .head .player-number-item img{width:26px}.player-info-wrap .head .player-number-item span{right:-5px;font-size:10px;width:15px;height:15px}.player-info-wrap .head .player-number-item{margin-left:10px}.player-info-wrap .head{margin-bottom:18px}.player-info-wrap .player-stats-info .player-info-item,.player-info-wrap .player-stats-info .player-info-item:first-child{padding:0 12px !important;display:flex;flex-direction:column;justify-content:center}.transform-item{padding:10px}.mobile-header-wrap .search-form-wrapper{width:calc(100% - 40px)}.mobile-header-wrap .search-form-wrapper .search-form{width:100%}.mobile-header-wrap .search-form-wrapper .search-form input{background:#131521}.mobile-header .filter-categories-wrap{margin-bottom:-30px;margin-top:20px}.stories-wrapper{margin:0;padding:0;background:none}.storiesWrapper{padding:0;margin:0 !important}.stories-wrapper .story-arrow{display:none !important}.stories-wrapper:after,.stories-wrapper:before{display:none !important}.xdsoft_datetimepicker .xdsoft_datepicker{float:none !important;margin:0 auto !important}.choose-team-slider{width:calc(100% + 40px);margin-right:-20px}#choose_fav_teams_popup{padding:0}.choose-team-slider .owl-nav .owl-next{left:10px !important}.choose-team-slider .owl-nav .owl-prev{right:10px !important;left:auto !important}.popup-content.fav-teams-popup,#choose_fav_teams_popup{height:100vh}.popup-teams-wrap{max-height:calc(100vh - 350px)}.match-profile-details .team-item .img{width:60px;height:60px}.match-profile-details .team-item h3{margin-bottom:14px;font-size:13px;position:absolute;top:0;right:50%;transform:translateX(50%)}.match-details{text-align:center;margin:20px 20px 0}.match-profile-details .team-item:before{bottom:-24px;width:50px}.match-profile-details{margin-bottom:16px;padding-bottom:34px}.match-profile-details .team-item{width:80px;white-space:nowrap;padding-top:30px}.profile-header-wrapper.match{border-radius:0 0 30px 30px;min-height:270px}.profile-content .search-form{width:100%}.mobile-share-button{display:initial}.news-details-wrap .single-news-video,.news-details-wrap .single-news-image{width:calc(100% + 40px);margin-right:-20px;border-radius:0;position:relative;margin-bottom:0;margin-top:0}.news-details-wrap:not(.news-details-wrap):before{content:'';position:absolute;right:0;top:0;left:0;height:110px;background:linear-gradient(#131521,transparent);z-index:5}.news-details-wrap{width:100%}.news-details-wrap .news-comments-wrapper{width:calc(100% + 40px);margin-right:-20px}.mobile-single-title{display:block;width:calc(100% + 40px);margin-right:-20px}.news-details-wrap .single-news-video img,.news-details-wrap .single-news-image img{border-radius:0 0 30px 30px;position:relative;z-index:4}.news-details-wrap .single-news-video svg{z-index:6}.match-details.active-match{margin:30px 10px 0}.watch-video-wrap .icon{opacity:1}.player-item a h3{font-size:12px}.champion-item .title{font-size:12px}.general-stats-item .title,.penalty-info-item span,.goals-stats-item span,.transform-history-item .club,.full-progress .head,.player-champ-item h3,.progress-state-item .text,.rank-row,.inline-player-item .player h5,.round-title{font-size:12px}.line-match-item{width:95px;height:80px}.line-match-item a,.line-match-item a .date,.line-match-item a .result .type,.line-match-item a .result{font-size:10px}.profile-row .col-sm-3{display:none}.profile-row .col-sm-9{max-width:100%;flex:0 0 100%}.players-slider-wrap{width:calc(100% + 40px);margin-right:-20px}.players-slider-wrap .owl-item:first-child .player-item{margin-right:20px}.players-slider .owl-stage{margin-right:-30px}.filter-tags-wrap .tag-item:first-child{margin-right:20px}.champions-slider-wrap{width:calc(100% + 40px);margin-right:-20px}.champions-slider-wrap .owl-item:first-child{padding-right:20px;margin-left:15px !important}.champions-slider-wrap .owl-item{margin-left:5px !important}.champ-slide-item .img{margin:0 auto 5px}.champions-slider .owl-stage{margin-right:-25px}.match-event-item.penalties ol.shots-text{font-size:10px}.stadium-img{width:calc(100% + 40px);margin-right:-20px}.stadium-img img{border-radius:0 0 20px 20px}}@media (max-width:576px){.other-profile .transform-history-item .club{margin-right:58px}.inline-match-item.active-match .match-team-item b{font-size:10px}.inline-match-item{padding:18px 0}.result-status-text{top:-20px}.inline-match-item .first-team a,.inline-match-item .second-team a{font-size:10px}.matches-wrapper.wide .inline-match-item .result-wrap{margin:0 10px}.profile-header-wrapper.match{padding-bottom:50px}.match-links-scroll{position:absolute;right:0;bottom:0;left:0;width:100%;margin:0 !important}.match-links-scroll .filter-categories-wrap{white-space:nowrap;justify-content:flex-start}.match-links-scroll .mCSB_container{margin:0 !important;padding-top:10px}.rank-keys-items.match--results .rank-key{margin-left:10px}.teams-last-matches .circle-result{margin-left:8px}.teams-last-matches{padding:18px 12px}.match-teams-rank{width:calc(100% + 40px);margin-right:-20px;padding:0}.match-teams-rank .ranking-table{width:100%}.match-info-collapse .collapse-header .title,.match-info-item .title,.match-info-collapse .collapse-header .title{width:120px;margin-left:12px}.match-info-collapse .collapse-header.bold,.match-info-item.bold{font-weight:bold}.teams-last-10-matches{padding:12px 10px}.full-m-item .champ{display:none}.match-links-scroll .filter-categories-wrap a:last-child{padding-left:25px}.match-links-scroll .filter-categories-wrap a:first-child{padding-right:15px}.match-links-scroll .filter-categories-wrap a.active:first-child:before{width:calc(100% - 15px)}.match-links-scroll .filter-categories-wrap a.active:last-child:before{width:calc(100% - 25px)}.match-details.full-match{margin:40px 10px 0}.match-details.full-match .other-result,.match-details.full-match .main-result{width:130px}div#exchange_popup,#goal_popup{padding:0}.player-popup-head{padding:27px 15px 24px;padding-left:50px}.player-popup-head .inline-player-item .img{width:34px;height:34px}.match-event-item .time{margin:0 10px}.empty-content-wrap{padding:45px 20px 30px}.rank-row.header{white-space:nowrap}.popup-content.event-comments{width:100% !important;border-radius:0}.lineup-wrap .lineup-bg{width:calc(100% + 100px);margin-right:-50px}.lineup-custom-row{padding:10px 36px}.lineup-custom-row .lineup-text{padding:0 12px;font-size:14px}.lineup-wrap{position:relative;margin-bottom:32px;width:calc(100% + 60px);margin-right:-30px}.profile-links{margin:0 auto;text-align:center}.change-profile-info{width:100%}.profile-content .section-title{font-size:20px}.footer-bottom{display:block;text-align:center}.footer-bottom .copyrights{margin-bottom:15px}footer{padding:30px 0;margin-top:40px}.breadcrumb-wrap h1{font-size:18px;line-height:30px}.news-loader-wrap .col-6:nth-child(3),.news-loader-wrap .col-6:nth-child(4){display:none}.video-item .news-title{padding:0 10px 13px;color:#BFC3D4;line-height:20px;font-weight:normal}.news-item .news-img{margin-bottom:10px}.search-filter-wrap{padding:25px 20px 0;margin-bottom:20px}.search-filter-wrap .header{padding:0}.search-filter-wrap .filter-categories-wrap a{margin:0 10px}.search-filter-wrap .header h3{font-size:14px}.breadcrumb-wrap{display:block}.breadcrumb-wrap .actions{width:100%;margin:18px 0 0}.breadcrumb-wrap .search-form{width:100%}.general-stats-item{width:50%}.general-stats-item.penalties{width:100%;white-space:nowrap}.general-stats-item .penalties-info{margin-right:10px}.general-stats-item.penalties .penalties-stats:nth-child(2){margin-right:10px}.general-stats-item.penalties .line-progress{width:50px}.about-item .col-6{flex:0 0 100%;max-width:100%}.about-team-item{margin-bottom:20px}.transform-item .from,.transform-item .to{position:relative}.transform-item .from .club{position:absolute;width:20px;right:32px;top:50%;transform:translateY(-50%);margin:0}.transform-item .player .img{margin-left:25px}.transform-item .cost-wrap{width:110px;flex-wrap:wrap}.transform-item .cost-wrap span{width:70px}.transform-item .cost-wrap svg{flex:0 0 auto}.transform-item{padding-left:20px}.transform-item .to{flex-direction:column}.transform-item .to .club{width:28px;height:28px;margin:0;margin-bottom:4px}.transform-item .to .to-date{font-size:10px;font-weight:bold}.transform-item .player span{font-size:10px}.transform-item .player h5{font-size:12px}.transform-item .player .img{margin-left:20px}}@media (max-width:480px){.videos-row .col-6{max-width:100%;flex:0 0 100%}.trending-news .news-loader .col-6:nth-child(2){display:none}.search-news-wrap .news-item{margin-bottom:15px}.news-meta{display:block;margin-bottom:15px}.news-meta .news-date{display:flex;margin-bottom:15px}.single-news-image{margin-bottom:20px;margin-top:-25%}.single-news-title{font-size:18px;line-height:30px}.news-comments-wrapper{padding:20px}.small-news-item .news-title{font-size:12px;line-height:20px;padding:0 10px 13px}.single-page-head{padding:25px 20px}.news-meta .news-action-item{margin-right:20px}.news-meta .news-action-item:first-child{margin:0}.players-row .col{width:50%}.about-wrapper{padding:0}.about-item{margin-bottom:25px}.about-team-item{padding:10px}.about-team-item img{width:30px;height:30px;margin-left:10px}.trending-news .col-6{width:100%}.footer-menu-wrap li a{font-size:12px}.videos-loader .col-6:last-child{display:none}.videos-loader .col-6{max-width:100%;flex:0 0 100%}}@media (max-width:380px){.transform-item .cost-wrap{width:90px}.transform-item .cost-wrap span{width:60px}.watch-video-wrap .btn span{max-width:55px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}
@media (max-width:767px){.profile-header-wrapper.club .club-profile-info{width:100%;max-width:100%;box-sizing:border-box}.profile-header-wrapper.club .season-dropdown-wrap{width:100%;max-width:100%;box-sizing:border-box;justify-content:center;gap:12px}.profile-header-wrapper.club .season-dropdown-panel.season-dropdown-panel--mobile-fixed{width:min(280px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;box-shadow:0 12px 30px rgba(0,0,0,.12)}}
.rank-keys-items>.rank-keys-promo-row{flex:1 1 100%;width:100%;max-width:100%;box-sizing:border-box}

/* rank scope — بجانب تبويب الترتيب + خط نشاط واحد + لايت مود */
.filter-categories-wrap .rank-tab-with-dropdown{position:relative;display:inline-flex;flex-direction:row;align-items:flex-end;gap:2px;margin:0 18px;vertical-align:bottom;padding-bottom:20px;box-sizing:border-box}.filter-categories-wrap .rank-tab-with-dropdown>a.filter-cat-item{margin-left:0;margin-right:0;padding-bottom:0}.filter-categories-wrap .rank-tab-with-dropdown>a.filter-cat-item:before{display:none}.filter-categories-wrap .rank-tab-with-dropdown:has(>a.active):before{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:5px;background:#39DBBF}
html.light:not(.dark) .rank-scope-toggle{color:#5c6470}html.light:not(.dark) .rank-scope-toggle:hover{color:#2aab95;background:rgba(0,0,0,.06)}html.light:not(.dark) .rank-scope-panel{background:#fff;border:1px solid #e2e5ef;box-shadow:0 10px 28px rgba(15,20,40,.12)}html.light:not(.dark) .rank-scope-panel .inline-tab-rank.rank_pos{color:#5c6470}html.light:not(.dark) .rank-scope-panel .inline-tab-rank.rank_pos:hover{color:#2a3142;background:rgba(0,0,0,.04)}html.light:not(.dark) .rank-scope-panel .inline-tab-rank.rank_pos.active{color:#0a0d12;background:#39DBBF}
#rank_pos.rank-scope-wrap--nav{position:relative;display:inline-flex;flex-direction:column;align-items:center;width:auto;max-width:none;margin:0;padding:0;box-sizing:border-box;flex:0 0 auto}
.rank-scope-toggle{margin:0;padding:6px 10px;border:0;background:transparent;color:#BFC3D4;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:0;transition:color .2s,background .2s}
.rank-scope-toggle:hover{color:#39DBBF;background:rgba(57,219,191,.08)}
.rank-scope-toggle:focus-visible{outline:2px solid #39DBBF;outline-offset:2px}
.rank-scope-toggle.is-open .rank-scope-chevron{transform:rotate(180deg)}
.rank-scope-chevron{display:block;transition:transform .2s ease}
.rank-scope-panel{display:none;position:absolute;top:100%;margin-top:4px;inset-inline-start:0;inset-inline-end:auto;transform:none;min-width:200px;max-width:min(280px,calc(100vw - 32px));z-index:120;background:#191D2D;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.35);padding:6px;flex-direction:column;gap:4px}
.rank-scope-panel.is-open{display:flex}
.rank-scope-panel a.rank_pos{margin:0}
.rank-scope-panel .inline-tab-rank.rank_pos{display:flex;align-items:center;justify-content:flex-start;text-align:start;width:100%;min-height:40px;padding:11px 14px;line-height:1.35;border-radius:8px;font-size:14px;font-weight:bold;color:#707488;text-decoration:none;box-sizing:border-box;transition:color .2s,background .2s}
.rank-scope-panel .inline-tab-rank.rank_pos:before,.rank-scope-panel .inline-tab-rank.rank_pos:after{display:none!important;content:none!important}
.rank-scope-panel .inline-tab-rank.rank_pos:hover{color:#BFC3D4}
.rank-scope-panel .inline-tab-rank.rank_pos.active{color:#0E1019;background:#39DBBF}
@media (max-width:767px){.filter-categories-wrap .rank-tab-with-dropdown{margin:0 10px}.rank-scope-panel.is-open{z-index:500}}

/* تفاصيل المباراة: مسافة أقل للمجموع + صف واحد للفرق/النتيجة على الموبايل */
.match-details.active-match .other-result.agg.live-match-agg{margin-top:30px;padding-top:0}
/* رأس المباراة على الموبايل — انظر القواعد الموسّعة في نهاية الملف */

/* رأس صفحة المباراة: لا يُقص المحتوى؛ لوحة النطاق تُعرض بـ position:fixed من script.js */
.profile-header-wrapper.match{overflow:visible}

/* breadcrumb على الموبايل: عرض كامل + لمسة بصرية خفيفة */
@media (max-width:767px){
  .page-breadcrumb{margin-bottom:22px}
  .page-breadcrumb>.container{padding-left:0;padding-right:0;max-width:100%;width:100%}
  .page-breadcrumb .breadcrumb-wrap{
    position:relative;
    border-radius:0;
    padding:20px 16px 16px;
    border-bottom:1px solid #21263B;
    box-shadow:0 6px 20px rgba(0,0,0,.14)
  }
  .page-breadcrumb .breadcrumb-wrap:before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:3px;
    background:linear-gradient(270deg,#39DBBF 0%,rgba(57,219,191,.25) 55%,transparent 100%)
  }
  .page-breadcrumb .breadcrumb-wrap h1{
    font-size:17px;
    line-height:1.4;
    margin-bottom:10px;
    letter-spacing:-.01em
  }
  .page-breadcrumb .breadcrumb-wrap .breadcrumb-path{
    flex-wrap:wrap;
    row-gap:4px;
    font-size:11px;
    line-height:1.5
  }
  .page-breadcrumb .breadcrumb-wrap .breadcrumb-path i{
    margin:0 6px;
    opacity:.45
  }
  .page-breadcrumb .breadcrumb-wrap .lineup-breadcrumb-teaser{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(191,195,212,.12);
    font-size:13px;
    line-height:1.55;
    max-width:none
  }
  html.light .page-breadcrumb .breadcrumb-wrap{
    border-bottom-color:#e6e8ef;
    box-shadow:0 4px 16px rgba(14,16,25,.06)
  }
  html.light .page-breadcrumb .breadcrumb-wrap .lineup-breadcrumb-teaser{border-top-color:rgba(14,16,25,.08)}
  html[dir=ltr] .page-breadcrumb .breadcrumb-wrap:before{background:linear-gradient(90deg,#39DBBF 0%,rgba(57,219,191,.25) 55%,transparent 100%)}
}

/* ─────────────────────────────────────────────────────────────
   رأس صفحة المباراة — تصميم موبايل احترافي
   شريط علوي زجاجي + بطاقة لاعبين + سطر معلومات + تبويبات
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* الإطار الرئيسي للهيدر */
  .profile-header-wrapper.match {
    position: relative;
    min-height: 0;
    padding: 0;
    margin: 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    display: block;
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(57, 219, 191, 0.10), transparent 55%),
      linear-gradient(180deg, #1a1d2e 0%, #131521 100%),
      url("../images/match-bg.png") no-repeat center center;
    background-size: auto, auto, cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  html.light .profile-header-wrapper.match {
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(57, 219, 191, 0.10), transparent 55%),
      linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%),
      url("../images/match-bg.png") no-repeat center center;
    background-size: auto, auto, cover;
    box-shadow: 0 4px 16px rgba(14, 16, 25, 0.06);
  }

  /* ──── الشريط العلوي ──── */
  .profile-header-wrapper.match .match-mobile-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-inline: max(22px, calc(16px + env(safe-area-inset-left, 0px)), calc(16px + env(safe-area-inset-right, 0px)));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent);
    position: relative;
    z-index: 5;
  }

  /* صفحة المباراة على الجوال/التابلت: إظهار الرجوع والمشاركة */
  .profile-header-wrapper.match .match-mobile-toolbar .mm-icon-btn.mm-back,
  .profile-header-wrapper.match .match-mobile-toolbar .mm-icon-btn.mm-share {
    display: inline-flex;
  }

  .profile-header-wrapper.match .mm-icon-btn.mm-back {
    margin-inline-start: 2px;
  }

  .profile-header-wrapper.match .mm-icon-btn.mm-share {
    margin-inline-end: 2px;
  }

  .profile-header-wrapper.match .mm-icon-btn {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    transition: background-color .2s ease, transform .2s ease;
    margin: 0;
    padding: 0;
    cursor: pointer;
  }

  .profile-header-wrapper.match .mm-icon-btn:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.12);
  }

  .profile-header-wrapper.match .mm-icon-btn.mm-share.mm-shared {
    background: rgba(57, 219, 191, 0.22) !important;
    color: #39DBBF !important;
  }

  .profile-header-wrapper.match .mm-toolbar-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .profile-header-wrapper.match .mm-league-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    line-height: 1.1;
  }

  .profile-header-wrapper.match .mm-league-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 4px;
  }

  .profile-header-wrapper.match .mm-league-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: start;
  }

  .profile-header-wrapper.match .mm-league-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .profile-header-wrapper.match .mm-league-round {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  /* ──── منطقة الفرق والنتيجة ──── */
  .profile-header-wrapper.match .match-profile-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  /* صف الفرق: flex + تموضع مطلق للنتيجة في منتصف الشعارين */
  .profile-header-wrapper.match .match-profile-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 14px 12px !important;
    margin-bottom: 0 !important;
    min-height: 112px;
    position: relative;
    flex-wrap: nowrap;
  }

  .profile-header-wrapper.match .match-profile-details > a {
    flex: 1 1 0;
    min-width: 0;
    max-width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 1;
    padding-top: 0;
  }

  .profile-header-wrapper.match .match-profile-details .team-item {
    position: static;
    width: 100%;
    max-width: 100%;
    padding-top: 0 !important;
    white-space: normal;
    text-align: center;
  }

  .profile-header-wrapper.match .match-profile-details .team-item:before { display: none; }

  /* الشعار: دائرة ناعمة + هالة خفيفة */
  .profile-header-wrapper.match .match-profile-details .team-item .img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    padding: 4px;
  }

  .profile-header-wrapper.match .match-profile-details .team-item .img img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  }

  .profile-header-wrapper.match .match-profile-details .team-item h3 {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    margin: 10px 0 0;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
  }

  html.light .profile-header-wrapper.match .match-profile-details .team-item h3 { color: #0e1019; }

  /* ──── .match-details في منتصف الشعارين (أفقي + عمودي) ──── */
  .profile-header-wrapper.match .match-profile-details > .match-details {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 44% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: unset !important;
  }

  /* إلغاء هوامش قديمة من responsive.css الأساسي */
  .profile-header-wrapper.match .match-profile-details .match-details {
    margin: 0 !important;
  }

  /* قبل المباراة — الوقت */
  .profile-header-wrapper.match .match-profile-details > .match-details:not(.active-match):not(.full-match) {
    gap: 4px;
  }

  .profile-header-wrapper.match .match-profile-details > .match-details .time {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
  }

  .profile-header-wrapper.match .match-profile-details > .match-details .timer {
    font-size: 11px;
    background: rgba(57, 219, 191, 0.14);
    color: #39DBBF;
    padding: 3px 10px;
    border-radius: 999px;
    height: auto;
    width: auto;
    margin: 0;
    font-weight: 700;
  }

  /* ──── أثناء المباراة — مباشر (active-match-progress) ──── */
  .profile-header-wrapper.match .match-details.active-match {
    gap: 6px;
    width: 100%;
  }

  /* صف واحد: نتيجة | دائرة الوقت | نتيجة */
  .profile-header-wrapper.match .match-details.active-match .main-result {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }

  .profile-header-wrapper.match .match-details.active-match .main-result > b {
    flex: 1 1 0;
    min-width: 24px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    margin: 0;
  }

  .profile-header-wrapper.match .match-details.active-match .main-result > b:first-of-type {
    text-align: end;
    padding-inline-end: 2px;
  }

  .profile-header-wrapper.match .match-details.active-match .main-result > b:last-of-type {
    text-align: start;
    padding-inline-start: 2px;
  }

  .profile-header-wrapper.match .match-details.active-match .main-result b.win { color: #39DBBF; }

  /* الحاوية الوسطى — شارة الحالة فوق + دائرة الوقت */
  .profile-header-wrapper.match .active-match-progress {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
    text-decoration: none;
    position: relative;
    min-width: 68px;
    max-width: 110px;
  }

  /* إلغاء التموضع المطلق القديم لنصوص الحالة */
  .profile-header-wrapper.match .active-match-progress .result-status-text,
  .profile-header-wrapper.match .active-match-progress .match-inner-progress-wrap .result-status-text {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 0 5px !important;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(57, 219, 191, 0.14);
    color: #39DBBF;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
  }

  .profile-header-wrapper.match .active-match-progress .result-status-text:empty {
    display: none !important;
  }

  .profile-header-wrapper.match .active-match-progress .between-live {
    background: rgba(255, 196, 32, 0.16) !important;
    color: #ffc420 !important;
  }

  .profile-header-wrapper.match .match-details.live-match .active-match-progress .live-match-status:not(:empty)::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #39DBBF;
    margin-inline-end: 5px;
    flex-shrink: 0;
    animation: mmLivePulse 1.5s ease-out infinite;
  }

  /* دائرة التقدم — طبقات متمركزة (خلفية + قوس + رقم) */
  .profile-header-wrapper.match .active-match-progress .match-inner-progress-wrap {
    display: block !important;
    position: relative;
    width: 58px !important;
    height: 58px !important;
    transform: none !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap .percent {
    position: relative !important;
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
  }

  /* الخلفية الدائرية — منفصلة عن SVG لضمان التمركز */
  .profile-header-wrapper.match .match-inner-progress-wrap .percent::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 0;
    box-sizing: border-box;
  }

  /* تجاهل SVG تماماً على الموبايل واستبداله بـ conic-gradient (أدق وأبسط) */
  .profile-header-wrapper.match .match-inner-progress-wrap svg {
    display: none !important;
  }

  /* حلقة التقدم على ::before فقط حتى لا يتأثر النص بالقناع */
  .profile-header-wrapper.match .match-inner-progress-wrap .percent::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    background:
      conic-gradient(
        from 0deg,
        #39DBBF 0,
        #39DBBF calc(var(--num, 0) * 1%),
        rgba(255, 255, 255, 0.1) calc(var(--num, 0) * 1%),
        rgba(255, 255, 255, 0.1) 100%
      ) !important;
    -webkit-mask: radial-gradient(circle, transparent 25px, #000 26px) !important;
            mask: radial-gradient(circle, transparent 25px, #000 26px) !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 0 !important;
    transition: background .6s ease;
    animation: none !important;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap .number {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px;
    font-weight: 800;
    color: #39DBBF;
    z-index: 2;
    margin: 0 !important;
  }

  /* ── مباراة مباشرة: نبض/توهج على العداد ── */
  .profile-header-wrapper.match .match-details.live-match.active-match:not(.stopped-match) .match-inner-progress-wrap .number,
  .profile-header-wrapper.match .match-details.live-match.active-match:not(.stopped-match) .match-inner-progress-wrap .number span {
    animation: mmLiveTimeGlow 2s ease-in-out infinite;
  }

  html.dark .profile-header-wrapper.match .match-inner-progress-wrap.stopped .number,
  html.dark .profile-header-wrapper.match .match-inner-progress-wrap.half-time .number {
    color: rgba(255, 255, 255, 0.85);
  }

  html.light .profile-header-wrapper.match .match-inner-progress-wrap.stopped .number,
  html.light .profile-header-wrapper.match .match-inner-progress-wrap.half-time .number,
  html.light .profile-header-wrapper.match .match-inner-progress-wrap.stopped .number span,
  html.light .profile-header-wrapper.match .match-inner-progress-wrap.half-time .number span {
    color: #9a6b00;
  }

  /* نهاية الشوط — نصف دائرة + علامات حمراء */
  .profile-header-wrapper.match .match-inner-progress-wrap.stopped {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: auto !important;
    min-width: 58px;
    height: auto !important;
    overflow: visible !important;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap.stopped .percent {
    flex: 0 0 58px;
    position: relative !important;
    background: transparent !important;
  }

  /* نهاية الشوط: حلقة صفراء نصفها ممتلئ */
  .profile-header-wrapper.match .match-inner-progress-wrap.stopped .percent::before {
    background:
      conic-gradient(
        from 0deg,
        #ffc420 0,
        #ffc420 50%,
        rgba(255, 196, 32, 0.22) 50%,
        rgba(255, 196, 32, 0.22) 100%
      ) !important;
    -webkit-mask: radial-gradient(circle, transparent 25px, #000 26px) !important;
            mask: radial-gradient(circle, transparent 25px, #000 26px) !important;
    transition: none !important;
  }

  /* علامة حمراء أعلى الدائرة (بداية المباراة) */
  .profile-header-wrapper.match .match-inner-progress-wrap.stopped .percent .ht-marker-top {
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: #FC4D4D;
    border-radius: 5px;
    z-index: 4;
    pointer-events: none;
  }

  /* علامة حمراء أسفل الدائرة (نهاية الشوط) */
  .profile-header-wrapper.match .match-inner-progress-wrap.stopped::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: #FC4D4D;
    border-radius: 5px;
    z-index: 4;
    pointer-events: none;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap.stopped > .between-live {
    display: none !important;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap.stopped .live-match-status {
    background: rgba(255, 196, 32, 0.16) !important;
    color: #ffc420 !important;
  }

  .profile-header-wrapper.match .match-details.stopped-match .active-match-progress .live-match-status:not(:empty)::before {
    display: none !important;
  }

  /* وقت إضافي تحت الدائرة */
  .profile-header-wrapper.match .active-match-progress .extra-time {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 4px 0 0 !important;
    font-size: 10px;
    font-weight: 700;
    color: #FF3131;
    white-space: nowrap;
  }

  .profile-header-wrapper.match .active-match-progress .extra-time i {
    color: rgba(255, 255, 255, 0.65);
  }

  /* شارة الحالة فوق الدائرة */
  .profile-header-wrapper.match .active-match-progress .match-inner-progress-wrap > .live-match-status,
  .profile-header-wrapper.match .active-match-progress .match-inner-progress-wrap > .between-live {
    position: absolute !important;
    bottom: calc(100% + 5px) !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 3;
    white-space: nowrap;
    max-width: none !important;
    width: max-content !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* نهاية الشوط — شارة ثابتة فوق الدائرة بدون قص */
  .profile-header-wrapper.match .match-inner-progress-wrap.stopped > .live-match-status {
    position: static !important;
    transform: none !important;
    order: -2;
    margin: 0 0 5px !important;
    max-width: min(92vw, 220px) !important;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 11px;
    line-height: 1.35;
    padding: 5px 12px 4px;
  }

  .profile-header-wrapper.match .match-details.stopped-match .active-match-progress {
    max-width: min(92vw, 200px);
    min-width: 72px;
    overflow: visible;
  }

  /* المجموع */
  .profile-header-wrapper.match .match-details.active-match .other-result.agg.live-match-agg {
    margin-top: 4px !important;
    padding-top: 0;
    width: auto;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .profile-header-wrapper.match .match-details.active-match .other-result.agg b {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
  }

  .profile-header-wrapper.match .match-details.active-match .other-result.agg span {
    font-size: 9px;
    height: auto;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    max-width: none;
  }

  html.light .profile-header-wrapper.match .active-match-progress .result-status-text {
    background: rgba(57, 219, 191, 0.12);
    color: #2a9d82;
  }

  html.light .profile-header-wrapper.match .match-inner-progress-wrap .percent::before {
    background: rgba(14, 16, 25, 0.04);
    border-color: rgba(14, 16, 25, 0.08);
  }

  html.light .profile-header-wrapper.match .match-inner-progress-wrap .number,
  html.light .profile-header-wrapper.match .match-inner-progress-wrap .number span,
  html.light .profile-header-wrapper.match [id^="match-detail-time"] {
    color: #1a7a68;
  }

  /* بعد المباراة — شارة فوق + أرقام تحت */
  .profile-header-wrapper.match .match-details.full-match {
    gap: 6px;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    column-gap: 10px;
    row-gap: 6px;
    width: 100%;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result > span {
    grid-column: 1 / -1;
    grid-row: 1;
    position: static !important;
    font-size: 10px;
    font-weight: 700;
    height: auto;
    min-height: 0;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    width: auto;
    max-width: 100%;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin: 0;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result > b:first-of-type {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result > b:last-of-type {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result::before {
    content: "";
    grid-column: 2;
    grid-row: 2;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result b {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    min-width: 24px;
    text-align: center;
    margin: 0;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result b.win { color: #39DBBF; }

  /* المجموع / ركلات الترجيح */
  .profile-header-wrapper.match .match-details.full-match .other-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 2px 0 0;
  }

  .profile-header-wrapper.match .match-details.full-match .other-result span {
    font-size: 10px;
    font-weight: 700;
    height: auto;
    min-height: 0;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    width: auto;
    letter-spacing: 0.3px;
  }

  .profile-header-wrapper.match .match-details.full-match .other-result b { font-size: 13px; color: rgba(255, 255, 255, 0.85); }

  html.light .profile-header-wrapper.match .match-details.active-match .main-result b,
  html.light .profile-header-wrapper.match .match-details.full-match .main-result b,
  html.light .profile-header-wrapper.match .match-profile-details > .match-details .time { color: #0e1019; }

  html.light .profile-header-wrapper.match .match-details.active-match .other-result.agg span,
  html.light .profile-header-wrapper.match .match-details.full-match .main-result > span,
  html.light .profile-header-wrapper.match .match-details.full-match .other-result span {
    background: rgba(14, 16, 25, 0.06);
    color: #4a4f63;
  }

  html.light .profile-header-wrapper.match .match-details.full-match .main-result::before {
    background: rgba(14, 16, 25, 0.18);
  }

  /* حالات الحظر / التأجيل */
  .profile-header-wrapper.match .match-details.full-match .match-details span {
    background: rgba(255, 200, 80, 0.18);
    color: #ffd166;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
  }

  /* ──── شريط المعلومات (ملعب · تاريخ) ──── */
  .match-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    padding: 8px 14px 12px;
    margin: 0 !important;
    width: 100%;
    position: relative;
  }

  .match-mobile-meta .mm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .match-mobile-meta .mm-meta-item svg { opacity: 0.7; flex: 0 0 auto; }

  html.light .match-mobile-meta .mm-meta-item { color: #6b7080; }

  /* ──── شريط التبويبات ──── */
  .profile-header-wrapper.match .match-links-scroll {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.12);
  }

  html.light .profile-header-wrapper.match .match-links-scroll {
    border-top-color: rgba(14, 16, 25, 0.06);
    background: rgba(14, 16, 25, 0.03);
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap {
    padding: 0 12px;
    gap: 0;
    height: 44px;
    display: flex;
    align-items: stretch;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin: 0 12px;
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.55);
    transition: color .2s ease;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item:first-child { margin-right: 4px; }
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item:last-child  { margin-left: 4px; }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item.active {
    color: #39DBBF;
  }

  /* مؤشر سفلي للتبويب النشط */
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 3px;
    background: #39DBBF;
    border-radius: 3px 3px 0 0;
  }

  html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item {
    color: #6b7080;
  }
  html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item.active {
    color: #39DBBF;
  }

  /* إلغاء أي مسافات قديمة */
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap a:last-child,
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap a:first-child,
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap a.active::before {
    padding: inherit !important;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap a.active:before,
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap a.active:first-child:before,
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap a.active:last-child:before {
    display: none !important;
  }

  /* تاب الترتيب — نفس ألوان وبادج التابات الأخرى */
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown {
    display: inline-flex;
    flex-direction: row;
    align-items: center !important;
    align-self: stretch;
    margin: 0 8px;
    padding-bottom: 0 !important;
    vertical-align: middle;
    position: relative;
    height: 100%;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown #rank_pos.rank-scope-wrap--nav {
    flex-direction: row !important;
    align-items: center !important;
    align-self: center;
    height: auto;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 4px !important;
    padding: 0 2px !important;
    padding-bottom: 0 !important;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item.active {
    color: #39DBBF !important;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown:has(> a.active)::before {
    display: none !important;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 3px;
    background: #39DBBF;
    border-radius: 3px 3px 0 0;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown .rank-scope-toggle {
    align-self: center;
    margin-inline-start: 2px;
    color: rgba(255, 255, 255, 0.45);
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown:has(> a.active) .rank-scope-toggle {
    color: #39DBBF;
  }

  html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item {
    color: #6b7080;
  }

  html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item.active {
    color: #39DBBF !important;
  }

  /* اللايف badge على تاب الفيديو */
  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .filter-cat-item .live {
    position: static;
    margin-inline-start: 6px;
    background: #FF3131;
    box-shadow: 0 0 0 0 rgba(255, 49, 49, 0.6);
    animation: mmLivePulse 1.6s ease-out infinite;
  }

  @keyframes mmLivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 49, 49, 0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 49, 49, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 49, 49, 0); }
  }

  @keyframes mmLiveBgPulse {
    0%, 100% {
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(57, 219, 191, 0);
    }
    50% {
      box-shadow: 0 2px 14px rgba(57, 219, 191, 0.22), 0 0 14px 3px rgba(57, 219, 191, 0.18);
    }
  }

  @keyframes mmLiveArcGlow {
    0%, 100% {
      stroke: #39DBBF;
      opacity: 0.7;
    }
    50% {
      stroke: #6ef0d4;
      opacity: 1;
    }
  }

  @keyframes mmLiveTimeGlow {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .profile-header-wrapper.match .match-details.live-match.active-match .match-inner-progress-wrap .number,
    .profile-header-wrapper.match .match-details.live-match.active-match .match-inner-progress-wrap .number span,
    .profile-header-wrapper.match .match-details.live-match .active-match-progress .live-match-status:not(:empty)::before {
      animation: none !important;
    }
    .profile-header-wrapper.match .match-inner-progress-wrap .percent {
      transition: none !important;
    }
  }
}

@media (max-width: 576px) {
  .profile-header-wrapper.match { padding-bottom: 0 !important; }
  .profile-header-wrapper.match .match-links-scroll { position: relative !important; }
  .profile-header-wrapper.match .match-profile-details { padding: 8px 10px 12px !important; min-height: 104px; }
  .profile-header-wrapper.match .match-profile-details .team-item .img { width: 58px; height: 58px; }
  .profile-header-wrapper.match .match-profile-details > .match-details { max-width: 46% !important; }
  .profile-header-wrapper.match .match-details.active-match .main-result b,
  .profile-header-wrapper.match .match-details.full-match .main-result b { font-size: 24px; }
  .profile-header-wrapper.match .match-profile-details .team-item h3 { font-size: 12px; }
  .profile-header-wrapper.match .mm-league-name,
  .profile-header-wrapper.match .mm-league-round { max-width: 140px; }
}

/* ─────────────────────────────────────────────────────────────
   مسافة تنفّس بين الهيدر ومحتوى الصفحة على الموبايل
   + تحسين شريط التابات الفرعي (تشيلسي / مان سيتي … إلخ)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* فاصل أنيق بين الهيدر والمحتوى */
  .profile-page-header + .inner-page-content,
  .profile-page-header + section.inner-page-content {
    padding-top: 18px;
  }

  /* أول match-block-item داخل أي تاب لا يلتصق بالشريط */
  .match-page-inner .tab-content-item.active > .small-container > .match-block-item:first-child,
  .match-page-inner .tab-content-item.active > .match-block-item:first-child {
    margin-top: 4px;
  }

  /* الشريط الفرعي (تابات الفريقين / دور 16 / … ) — مظهر أنظف وأخف */
  .match-page-inner .inline-tabs-wrapper,
  .tab-area > .inline-tabs-wrapper,
  .inner-match-tab-content .inline-tabs-wrapper {
    margin: 4px 0 14px;
    padding: 0 4px;
  }

  .tab-area > .inline-tabs-wrapper + .tab-content-item {
    margin-top: 12px;
  }

  .match-page-inner .inline-tabs-items,
  .tab-area > .inline-tabs-wrapper .inline-tabs-items,
  .inner-match-tab-content .inline-tabs-items {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    background: rgba(25, 29, 45, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 0;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .match-page-inner .inline-tabs-items .inline-tab-item,
  .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item,
  .inner-match-tab-content .inline-tabs-items .inline-tab-item {
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .25s ease, color .25s ease, transform .15s ease;
  }

  .match-page-inner .inline-tabs-items .inline-tab-item.active,
  .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active,
  .inner-match-tab-content .inline-tabs-items .inline-tab-item.active {
    background: #39DBBF;
    color: #0E1019;
    box-shadow: 0 2px 8px rgba(57, 219, 191, 0.25);
  }

  .match-page-inner .inline-tabs-items .inline-tab-item:active,
  .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item:active,
  .inner-match-tab-content .inline-tabs-items .inline-tab-item:active { transform: scale(0.97); }

  /* تابات منزلقة أفقياً (ما عدا rank-stages-flow له تنسيق مستقل) */
  .match-page-inner .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow),
  .dynamic-tabs-content .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .match-page-inner .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow)::-webkit-scrollbar,
  .dynamic-tabs-content .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow)::-webkit-scrollbar { display: none; }
  .match-page-inner .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items,
  .dynamic-tabs-content .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items {
    width: auto;
    flex: 0 0 auto;
  }
  .match-page-inner .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item,
  .dynamic-tabs-content .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item {
    flex: 0 0 auto;
  }

  /* مراحل الترتيب — موبايل: في المنتصف، بدون صندوق أبيض */
  .champ-tab-item.rank > .rank-stages-flow,
  .dynamic-tabs-content .rank-stages-flow.inline-tabs-wrapper,
  #match_list_conf .rank-stages-flow {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 10px 0 8px !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
  }

  .rank-stages-flow .rank-stages-flow__track,
  .rank-stages-flow #stages_target.inline-tabs-items,
  .dynamic-tabs-content .rank-stages-wrapper.rank-stages-flow .inline-tabs-items {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px;
    flex-wrap: nowrap;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rank-stages-flow .rank-stages-flow__track::-webkit-scrollbar,
  .rank-stages-flow #stages_target::-webkit-scrollbar {
    display: none;
  }

  .rank-stages-flow .rank-stage-pill {
    flex: 0 0 auto;
    min-width: 92px;
    max-width: 42vw;
    font-size: 12px;
    padding: 0 10px;
    height: 36px;
  }

  .rank-stages-flow .rank-stage-connector {
    flex: 0 0 auto;
  }

  .rank-stages-flow .rank-stage-connector__line {
    width: 12px;
  }

  html.light .rank-stages-flow .inline-tabs-items,
  html.light .rank-stages-flow .rank-stages-flow__track,
  html.light .dynamic-tabs-content .rank-stages-wrapper.rank-stages-flow .inline-tabs-items,
  html.light #stages_target.inline-tabs-items.rank-stages-flow__track {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  #stages_target.inline-tabs-items.rank-stages-flow__track,
  .rank-stages-flow #stages_target.inline-tabs-items {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* صفحة البطولة — بدون فراغ زائد فوق المحتوى عند التبديل بين التبويبات */
  .profile-page-header:has(~ section.inner-page-content .champ-tab-item.active) .profile-header-wrapper.club.auto-height-header {
    margin-bottom: 0 !important;
  }

  .profile-page-header + section.inner-page-content:has(.champ-tab-item.active) {
    padding-top: 0 !important;
  }

  .champ-tab-item.rank > .rank-stages-flow {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  /* إحصائيات — الشريط الكلاسيكي بشكل متناسق */
  .champ-tab-item.players_rank_champ .tab-area.champ-stats-area > .inline-tabs-wrapper {
    margin: 10px 0 10px !important;
    padding: 0 12px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px !important;
    gap: 4px;
    border-radius: 12px;
  }

  .tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9px;
    text-align: center;
    justify-content: center;
  }

  .tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active {
    background: #39DBBF !important;
    color: #0E1019 !important;
    box-shadow: 0 2px 8px rgba(57, 219, 191, 0.25);
  }

  html.light .tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items {
    background: #ffffff;
    border-color: rgba(14, 16, 25, 0.08);
    box-shadow: 0 2px 8px rgba(14, 16, 25, 0.05);
  }

  html.light .tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item {
    color: #6b7080;
  }

  html.light .tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active {
    color: #0E1019;
  }

  .tab-area.champ-stats-area > .inline-tabs-wrapper + .tab-content-item {
    margin-top: 10px !important;
  }

  .champ-tab-item.rank > #league[style*="display: none"],
  .champ-tab-item.rank > #league[style*="display:none"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #group_cup.tab-area > .inline-tabs-wrapper[style*="display: none"] + .tab-content-item,
  #group_cup.tab-area > .inline-tabs-wrapper[style*="display:none"] + .tab-content-item {
    margin-top: 0 !important;
  }

  /* الوضع الفاتح */
  html.light .match-page-inner .inline-tabs-items,
  html.light .tab-area > .inline-tabs-wrapper .inline-tabs-items,
  html.light .inner-match-tab-content .inline-tabs-items {
    background: #ffffff;
    border-color: rgba(14, 16, 25, 0.08);
    box-shadow: 0 2px 8px rgba(14, 16, 25, 0.05);
  }
  html.light .match-page-inner .inline-tabs-items .inline-tab-item,
  html.light .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item,
  html.light .inner-match-tab-content .inline-tabs-items .inline-tab-item {
    color: #6b7080;
  }
  html.light .match-page-inner .inline-tabs-items .inline-tab-item.active,
  html.light .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active,
  html.light .inner-match-tab-content .inline-tabs-items .inline-tab-item.active {
    color: #0E1019;
  }

  /* عناوين الأقسام أكثر تنفّساً على الموبايل */
  .match-block-item .section-title {
    font-size: 13px;
    margin-bottom: 12px;
    padding-top: 2px;
  }
}

@media (max-width: 380px) {
  .profile-header-wrapper.match .match-profile-details { padding: 14px 8px 10px; }
  .profile-header-wrapper.match .match-profile-details .team-item .img { width: 54px; height: 54px; }
  .profile-header-wrapper.match .match-details.active-match .main-result b,
  .profile-header-wrapper.match .match-details.full-match .main-result b { font-size: 22px; }
  .profile-header-wrapper.match .mm-league-name,
  .profile-header-wrapper.match .mm-league-round { max-width: 110px; }
}