/* رأس صفحة المباراة — تصميم سطح المكتب (مطابق للجوال) */
@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 mmLiveTimeGlow {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

@media (min-width: 768px) {
  .profile-header-wrapper.match {
    position: relative;
    min-height: 0;
    padding: 0 !important;
    margin: 0 0 24px;
    border-radius: 20px;
    overflow: hidden;
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    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 8px 32px rgba(0, 0, 0, 0.22);
  }

  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 8px 28px rgba(14, 16, 25, 0.08);
  }

  /* لوحة AJAX الجانبية (get_match_detail) */
  .dynamic-content-area-wrap .ajax-details-wrapper .inner-section-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #39DBBF;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match {
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    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 !important;
    background-size: auto, auto, cover !important;
  }

  html.light .dynamic-content-area-wrap .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 !important;
    background-size: auto, auto, cover !important;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-mobile-toolbar {
    padding: 12px 16px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-profile-details {
    padding: 10px 16px 14px !important;
    min-height: 128px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-profile-details .team-item .img {
    width: 72px;
    height: 72px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-profile-details .team-item h3 {
    font-size: 13px;
    min-height: 34px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-details.active-match .main-result > b,
  .dynamic-content-area-wrap .profile-header-wrapper.match .match-details.full-match .main-result b {
    font-size: 32px;
  }

  /* ─── لوحة AJAX (get_match_detail) — دائرة 64px كاملة ─── */
  .dynamic-content-area-wrap .profile-header-wrapper.match .active-match-progress .match-inner-progress-wrap,
  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap {
    display: block !important;
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap svg {
    display: none !important;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap .percent {
    position: relative !important;
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .dynamic-content-area-wrap .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 27px, #000 29px) !important;
            mask: radial-gradient(circle, transparent 27px, #000 29px) !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 0 !important;
  }

  .dynamic-content-area-wrap .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: 14px;
    font-weight: 800;
    color: #39DBBF;
    z-index: 2;
    margin: 0 !important;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: auto !important;
    min-width: 64px;
    height: auto !important;
    overflow: visible !important;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped .percent {
    flex: 0 0 64px;
    background: transparent !important;
  }

  .dynamic-content-area-wrap .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 27px, #000 29px) !important;
            mask: radial-gradient(circle, transparent 27px, #000 29px) !important;
    transition: none !important;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped .number {
    color: rgba(255, 255, 255, 0.85);
  }

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

  .dynamic-content-area-wrap .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: 8px;
    background: #FC4D4D;
    border-radius: 5px;
    z-index: 4;
    pointer-events: none;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #FC4D4D;
    border-radius: 5px;
    z-index: 4;
    pointer-events: none;
  }

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

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped > .live-match-status,
  .dynamic-content-area-wrap .profile-header-wrapper.match .active-match-progress .match-inner-progress-wrap.stopped > .live-match-status {
    position: static !important;
    transform: none !important;
    order: -2;
    margin: 0 0 6px !important;
    white-space: nowrap;
    background: rgba(255, 196, 32, 0.16) !important;
    color: #ffc420 !important;
  }

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

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-details.active-match .other-result.agg.live-match-agg span {
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    max-width: none;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap .number {
    font-size: 14px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .mm-league-name,
  .dynamic-content-area-wrap .profile-header-wrapper.match .mm-league-round {
    max-width: 200px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-mobile-meta {
    padding: 8px 16px 12px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap {
    padding: 0 12px;
    height: 44px;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item {
    font-size: 13px;
    margin: 0 10px;
  }

  .dynamic-content-area-wrap .ajax-details-wrapper + .inner-page-content {
    padding-top: 0;
  }

  .dynamic-content-area-wrap .ajax-details-wrapper + .inner-page-content .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  /* شريط علوي — أيقونات الرجوع/المشاركة للموبايل فقط (صفحة المباراة الكاملة) */
  .profile-header-wrapper.match .mm-icon-btn.mm-back,
  .profile-header-wrapper.match .mm-icon-btn.mm-share {
    display: none !important;
  }

  .dynamic-content-area-wrap .profile-header-wrapper.match .mm-icon-btn.mm-back,
  .dynamic-content-area-wrap .profile-header-wrapper.match .mm-icon-btn.mm-share {
    display: none !important;
  }

  /* شريط علوي */
  .profile-header-wrapper.match .match-mobile-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent);
    position: relative;
    z-index: 5;
  }

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

  .profile-header-wrapper.match .mm-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
  }

  .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: 10px;
    max-width: 100%;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    line-height: 1.1;
    transition: background-color .2s ease;
  }

  .profile-header-wrapper.match .mm-league-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .profile-header-wrapper.match .mm-league-logo {
    width: 22px;
    height: 22px;
    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: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
  }

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

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

  .profile-header-wrapper.match .match-profile-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 28px 16px !important;
    margin-bottom: 0 !important;
    min-height: 148px;
    position: relative;
    flex-wrap: nowrap;
  }

  .profile-header-wrapper.match .match-profile-details > a {
    flex: 1 1 0;
    min-width: 0;
    max-width: 32%;
    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: 88px;
    height: 88px;
    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: 6px;
  }

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

  .profile-header-wrapper.match .match-profile-details .team-item h3 {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    margin: 12px 0 0;
    padding: 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    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: 40px;
  }

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

  .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: 42% !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: 8px;
    flex: unset !important;
  }

  .profile-header-wrapper.match .match-profile-details .match-details {
    margin: 0 !important;
  }

  .profile-header-wrapper.match .match-details.active-match {
    margin-top: 0 !important;
  }

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

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

  .profile-header-wrapper.match .match-details.active-match .main-result {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .profile-header-wrapper.match .match-details.active-match .main-result > b {
    flex: 1 1 0;
    min-width: 28px;
    font-size: 40px;
    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: 4px;
  }

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

  .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: 80px;
    max-width: 130px;
  }

  .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 6px !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    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: 7px;
    height: 7px;
    border-radius: 50%;
    background: #39DBBF;
    margin-inline-end: 6px;
    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: 72px !important;
    height: 72px !important;
    transform: none !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap:before {
    display: none;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap svg {
    display: none !important;
  }

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

  .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 31px, #000 32px) !important;
            mask: radial-gradient(circle, transparent 31px, #000 32px) !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: 15px;
    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;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap.stopped {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: auto !important;
    min-width: 72px;
    height: auto !important;
    overflow: visible !important;
  }

  .profile-header-wrapper.match .match-inner-progress-wrap.stopped:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #FC4D4D;
    border-radius: 5px;
    z-index: 4;
    pointer-events: none;
  }

  .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 31px, #000 32px) !important;
            mask: radial-gradient(circle, transparent 31px, #000 32px) !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: 8px;
    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: 5px 0 0 !important;
    font-size: 11px;
    font-weight: 700;
    color: #FF3131;
    white-space: nowrap;
  }

  .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% + 6px) !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 6px !important;
    max-width: 280px !important;
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 14px 4px;
  }

  .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: 6px;
  }

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

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

  /* بعد المباراة */
  .profile-header-wrapper.match .match-details.full-match {
    gap: 8px;
    margin-top: 0 !important;
  }

  .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: 14px;
    row-gap: 8px;
    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: 11px;
    font-weight: 700;
    height: auto;
    min-height: 0;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    width: auto;
    max-width: 100%;
    margin: 0;
  }

  .profile-header-wrapper.match .match-details.full-match .main-result b {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    min-width: 28px;
    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 .main-result::before {
    content: "";
    grid-column: 2;
    grid-row: 2;
    width: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .profile-header-wrapper.match .match-details.full-match .other-result {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 4px 0 0;
  }

  .profile-header-wrapper.match .match-details.full-match .other-result span {
    font-size: 11px;
    font-weight: 700;
    height: auto;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    width: auto;
  }

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

  /* حالات الإلغاء / التأجيل / التوقف */
  .profile-header-wrapper.match .match-details.full-match > .match-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .profile-header-wrapper.match .match-details.full-match .match-details span:not(.time) {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 4px 14px;
    white-space: nowrap;
    flex: 0 0 auto;
    background: rgba(255, 200, 80, 0.18);
    color: #ffd166;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
  }

  .profile-header-wrapper.match .match-details.full-match .match-details .time {
    position: static !important;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    flex: 0 0 auto;
  }

  html.light .profile-header-wrapper.match .match-details.full-match .match-details span:not(.time) {
    background: rgba(255, 170, 40, 0.14);
    color: #b8860b;
  }

  /* معلومات الملعب والتاريخ */
  .profile-header-wrapper.match .match-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    padding: 10px 28px 14px;
    margin: 0 !important;
    width: 100%;
    position: relative;
  }

  .profile-header-wrapper.match .match-mobile-meta .mm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.2;
  }

  .profile-header-wrapper.match .match-mobile-meta .mm-meta-item svg {
    opacity: 0.75;
    flex: 0 0 auto;
  }

  html.light .profile-header-wrapper.match .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.1);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .profile-header-wrapper.match .match-links-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .profile-header-wrapper.match .match-links-scroll .mCSB_scrollTools,
  .profile-header-wrapper.match .match-links-scroll .mCSB_scrollTools_horizontal {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
  }

  .profile-header-wrapper.match .match-links-scroll .mCSB_container {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
  }

  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;
    width: max-content;
    max-width: none;
  }

  .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap.match-tabs--few {
    width: 100%;
    justify-content: center;
    margin-inline: auto;
  }

  .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;
    padding-bottom: 0 !important;
    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:before {
    display: none !important;
  }

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

  .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 10px;
    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: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 {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 100%;
    margin: 0 4px !important;
    padding: 0 2px !important;
    padding-bottom: 0 !important;
    font-size: 14px;
    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 #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.active {
    color: #39DBBF !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;
    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;
  }

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

  html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item,
  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 > a.filter-cat-item.active,
  html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item.active {
    color: #39DBBF;
  }

  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 .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 .number {
    color: #2a9d82;
  }

  .profile-page-header + .inner-page-content,
  .profile-page-header + section.inner-page-content {
    padding-top: 8px;
  }

  @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;
    }
  }
}

/* ─── رأس المباراة — وضع فاتح (موبايل + ديسكتوب + AJAX) ─── */
html.light .profile-header-wrapper.match {
  border: 1px solid rgba(14, 16, 25, 0.08);
  box-shadow: 0 8px 28px rgba(14, 16, 25, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html.light .profile-header-wrapper.match .match-mobile-toolbar {
  background: linear-gradient(180deg, rgba(14, 16, 25, 0.04), transparent);
}

html.light .profile-header-wrapper.match .mm-icon-btn {
  border-color: rgba(14, 16, 25, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #2a3142;
  box-shadow: 0 1px 4px rgba(14, 16, 25, 0.06);
}

html.light .profile-header-wrapper.match .mm-icon-btn:hover {
  background: #ffffff;
  border-color: rgba(14, 16, 25, 0.16);
}

html.light .profile-header-wrapper.match .mm-league-chip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(14, 16, 25, 0.1);
  color: #0e1019;
  box-shadow: 0 1px 6px rgba(14, 16, 25, 0.05);
}

html.light .profile-header-wrapper.match .mm-league-name {
  color: #0e1019;
}

html.light .profile-header-wrapper.match .mm-league-round {
  color: #5c6478;
}

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

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 .main-result b.win,
html.light .profile-header-wrapper.match .match-details.full-match .main-result b.win {
  color: #1a9b84;
}

/* شارة الحالة — انتهت / مؤجلة / إلخ */
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.07) !important;
  color: #3d4458 !important;
  border: 1px solid rgba(14, 16, 25, 0.1);
}

html.light .profile-header-wrapper.match .match-details.full-match .other-result b {
  color: #3d4458 !important;
}

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

html.light .profile-header-wrapper.match .match-details.active-match .other-result.agg span {
  background: rgba(14, 16, 25, 0.07) !important;
  color: #5c6478 !important;
  border: 1px solid rgba(14, 16, 25, 0.08);
}

html.light .profile-header-wrapper.match .match-details.active-match .other-result.agg b {
  color: #3d4458;
}

html.light .profile-header-wrapper.match .match-mobile-meta .mm-meta-item {
  color: #5c6478;
}

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

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

html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item.active,
html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item.active {
  color: #1a9b84;
  font-weight: 700;
}

html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap > a.filter-cat-item.active::after,
html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown > a.filter-cat-item.active::after {
  background: #1a9b84;
}

html.light .profile-header-wrapper.match .match-links-scroll .filter-categories-wrap .rank-tab-with-dropdown .rank-scope-toggle {
  color: #8b92a8;
}

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

html.light .profile-header-wrapper.match .active-match-progress .result-status-text {
  background: rgba(26, 155, 132, 0.12);
  color: #1a7a68;
  border: 1px solid rgba(26, 155, 132, 0.18);
}

html.light .profile-header-wrapper.match .active-match-progress .between-live {
  background: rgba(200, 140, 0, 0.12) !important;
  color: #9a6b00 !important;
  border: 1px solid rgba(200, 140, 0, 0.2);
}

html.light .profile-header-wrapper.match .match-inner-progress-wrap .percent::before {
  background:
    conic-gradient(
      from 0deg,
      #1a9b84 0,
      #1a9b84 calc(var(--num, 0) * 1%),
      rgba(14, 16, 25, 0.1) calc(var(--num, 0) * 1%),
      rgba(14, 16, 25, 0.1) 100%
    ) !important;
}

html.light .profile-header-wrapper.match .match-inner-progress-wrap.stopped .percent::before,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped .percent::before {
  background:
    conic-gradient(
      from 0deg,
      #c99200 0,
      #c99200 50%,
      rgba(201, 146, 0, 0.22) 50%,
      rgba(201, 146, 0, 0.22) 100%
    ) !important;
}

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"],
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap .number,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap .number span,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match [id^="match-detail-time"] {
  color: #1a7a68;
}

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,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped .number,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.half-time .number,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.stopped .number span,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.half-time .number span {
  color: #9a6b00;
}

html.light .profile-header-wrapper.match .match-inner-progress-wrap.extratime.stopped_ex .number,
html.light .profile-header-wrapper.match .match-inner-progress-wrap.extratime.stopped_ex .number span,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.extratime.stopped_ex .number,
html.light .dynamic-content-area-wrap .profile-header-wrapper.match .match-inner-progress-wrap.extratime.stopped_ex .number span {
  color: #5c6478;
}

html.light .dynamic-content-area-wrap .ajax-details-wrapper .inner-section-title {
  color: #1a9b84;
}

/* ─── تابات المحتوى الفرعية (تشيلسي / مان سيتي / أهم الأحداث …) ─── */
.match-page-inner .inline-tabs-wrapper,
.dynamic-content-area-wrap .inline-tabs-wrapper,
.tab-area > .inline-tabs-wrapper,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
  padding: 0 4px;
}

.match-page-inner .inline-tabs-items,
.dynamic-content-area-wrap .inline-tabs-items,
.dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items,
.tab-area > .inline-tabs-wrapper .inline-tabs-items,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper .inline-tabs-items {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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,
.dynamic-content-area-wrap .inline-tabs-items .inline-tab-item,
.dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item,
.tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper .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;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.match-page-inner .inline-tabs-items .inline-tab-item:hover,
.dynamic-content-area-wrap .inline-tabs-items .inline-tab-item:hover,
.dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item:hover,
.tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item:hover,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.match-page-inner .inline-tabs-items .inline-tab-item.active,
.dynamic-content-area-wrap .inline-tabs-items .inline-tab-item.active,
.dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item.active,
.tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper .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,
.dynamic-content-area-wrap .inline-tabs-items .inline-tab-item:active,
.dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item:active,
.tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item:active,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item:active {
  transform: scale(0.97);
}

.match-page-inner .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow),
.dynamic-content-area-wrap .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: center;
  scrollbar-width: none;
}

.match-page-inner .inline-tabs-wrapper.rank-stages-wrapper::-webkit-scrollbar,
.dynamic-content-area-wrap .inline-tabs-wrapper.rank-stages-wrapper::-webkit-scrollbar,
.dynamic-tabs-content .inline-tabs-wrapper.rank-stages-wrapper::-webkit-scrollbar {
  display: none;
}

.match-page-inner .inline-tabs-wrapper.rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items,
.dynamic-content-area-wrap .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-content-area-wrap .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;
  min-width: 88px;
}

html.light .match-page-inner .inline-tabs-items,
html.light .dynamic-content-area-wrap .inline-tabs-items,
html.light .dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items,
html.light .tab-area > .inline-tabs-wrapper .inline-tabs-items,
html.light .ajax-details-wrapper .tab-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 .match-page-inner .inline-tabs-items .inline-tab-item,
html.light .dynamic-content-area-wrap .inline-tabs-items .inline-tab-item,
html.light .dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item,
html.light .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item,
html.light .ajax-details-wrapper .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item {
  color: #6b7080;
}

html.light .match-page-inner .inline-tabs-items .inline-tab-item.active,
html.light .dynamic-content-area-wrap .inline-tabs-items .inline-tab-item.active,
html.light .dynamic-tabs-content .rank-stages-wrapper:not(.rank-stages-flow) .inline-tabs-items .inline-tab-item.active,
html.light .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active,
html.light .ajax-details-wrapper .tab-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item.active {
  background: #39DBBF;
  color: #0E1019;
}

/* مراحل الترتيب: تبويبات منفصلة + سهم انتقال (مثل الإحصائيات) */
.rank-stages-flow {
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 0;
  min-height: 0;
}

#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;
}

.rank-stages-flow.inline-tabs-wrapper {
  justify-content: center;
  align-items: center;
}

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

.rank-stages-flow .rank-stage-pill {
  flex: 0 1 auto;
  min-width: 108px;
  max-width: 220px;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: rgba(25, 29, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.rank-stages-flow .rank-stage-pill:hover {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}

.rank-stages-flow .rank-stage-pill.active {
  background: #39DBBF;
  color: #0E1019;
  border-color: #39DBBF;
  box-shadow: 0 2px 12px rgba(57, 219, 191, 0.35);
}

.rank-stages-flow .rank-stage-pill.is-done {
  color: rgba(57, 219, 191, 0.95);
  border-color: rgba(57, 219, 191, 0.35);
  background: rgba(57, 219, 191, 0.1);
}

.rank-stages-flow .rank-stage-pill.is-upcoming {
  opacity: 0.72;
}

.rank-stages-flow .rank-stage-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #39DBBF;
}

.rank-stages-flow .rank-stage-check svg {
  display: block;
}

.rank-stages-flow .rank-stage-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-stages-flow .rank-stage-connector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.22);
  padding: 0 2px;
}

.rank-stages-flow .rank-stage-connector__line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: center;
}

.rank-stages-flow .rank-stage-connector__icon {
  display: block;
  flex-shrink: 0;
}

.rank-stages-flow .rank-stage-connector.is-lit {
  color: #39DBBF;
}

.rank-stages-flow .rank-stage-connector.is-lit .rank-stage-connector__line {
  animation: yssRankStageLinePulse 1.35s ease-in-out infinite;
}

.rank-stages-flow .rank-stage-connector.is-lit .rank-stage-connector__icon {
  animation: yssRankStageArrowNudge 1.35s ease-in-out infinite;
}

@keyframes yssRankStageArrowNudge {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes yssRankStageLinePulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.75); }
  50% { opacity: 1; transform: scaleX(1); }
}

html.light .rank-stages-flow .rank-stage-pill {
  background: #ffffff;
  border-color: rgba(14, 16, 25, 0.1);
  color: #6b7080;
  box-shadow: 0 1px 4px rgba(14, 16, 25, 0.06);
}

html.light .rank-stages-flow .rank-stage-pill.active {
  background: #39DBBF;
  color: #0E1019;
  border-color: #39DBBF;
}

html.light .rank-stages-flow .rank-stage-pill.is-done {
  background: rgba(57, 219, 191, 0.12);
  border-color: rgba(57, 219, 191, 0.35);
  color: #1a9a84;
}

html.light .rank-stages-flow .rank-stage-connector {
  color: rgba(14, 16, 25, 0.2);
}

html.light .rank-stages-flow .rank-stage-connector.is-lit {
  color: #1a9a84;
}

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

/* إحصائيات البطولة — الشريط الكلاسيكي */
.tab-area.champ-stats-area > .inline-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items {
  width: 100%;
  max-width: 100%;
}

.tab-area.champ-stats-area > .inline-tabs-wrapper .inline-tabs-items .inline-tab-item {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  font-size: 13px;
  text-align: center;
  justify-content: center;
}

.ranking-table {
  margin-top: 0;
}

/* ─── تاب الإحصائيات (-statics) — بطاقات وشريط تقدم موحد مع الهيدر ─── */
.match-page-inner .tab-content-item.stats .match-block-item,
.dynamic-content-area-wrap .tab-content-item.stats .match-block-item,
.ajax-details-wrapper .tab-content-item.stats .match-block-item {
  margin-bottom: 14px;
}

.match-page-inner .tab-content-item.stats .match-block-item:last-child,
.dynamic-content-area-wrap .tab-content-item.stats .match-block-item:last-child,
.ajax-details-wrapper .tab-content-item.stats .match-block-item:last-child {
  margin-bottom: 0;
}

.match-page-inner .tab-content-item.stats .section-title,
.dynamic-content-area-wrap .tab-content-item.stats .section-title,
.ajax-details-wrapper .tab-content-item.stats .section-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #39DBBF;
  letter-spacing: 0.01em;
}

.match-page-inner .tab-content-item.stats .match-stats-block,
.dynamic-content-area-wrap .tab-content-item.stats .match-stats-block,
.ajax-details-wrapper .tab-content-item.stats .match-stats-block {
  border-radius: 14px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(30, 34, 52, 0.95) 0%, rgba(22, 25, 40, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.match-page-inner .tab-content-item.stats .progress-wrapper,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.match-page-inner .tab-content-item.stats .progress-wrapper .team-item,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .team-item,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .team-item {
  min-width: 44px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.match-page-inner .tab-content-item.stats .progress-wrapper .team-item.team-a,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .team-item.team-a,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .team-item.team-a {
  color: #39DBBF;
}

.match-page-inner .tab-content-item.stats .progress-wrapper .team-item.team-b,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .team-item.team-b,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .team-item.team-b {
  color: #b49ae8;
}

/* حلقة الاستحواذ — conic-gradient على العنصر نفسه (وليس ::before) */
@property --poss-pct {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@keyframes statsPossessionRingIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue,
.tab-content-item.stats .progress-wrapper .progress.blue {
  --poss-pct: 0;
  --poss-away: #9b7ec8;
  position: relative;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  line-height: 1;
  margin: 0 14px;
  border-radius: 50%;
  box-shadow: none !important;
  background:
    conic-gradient(
      from -90deg,
      #39DBBF 0,
      #39DBBF calc(var(--poss-pct, 0) * 1%),
      var(--poss-away) calc(var(--poss-pct, 0) * 1%),
      var(--poss-away) 100%
    ) !important;
  -webkit-mask: radial-gradient(circle, transparent 28px, #000 30px);
          mask: radial-gradient(circle, transparent 28px, #000 30px);
  transition: --poss-pct 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue::before,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue::before,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue::before,
.tab-content-item.stats .progress-wrapper .progress.blue::before,
.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue::after,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue::after,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue::after,
.tab-content-item.stats .progress-wrapper .progress.blue::after {
  display: none !important;
}

.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue > span,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue > span,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue > span,
.tab-content-item.stats .progress-wrapper .progress.blue > span {
  display: none !important;
}

/* إيقاف أنيميشن SCSS القديم (loading-1..50) — يتعارض مع conic-gradient */
.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue .progress-bar,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue .progress-bar,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue .progress-bar,
.tab-content-item.stats .progress-wrapper .progress.blue .progress-bar {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* بداية من 0 حتى يشغّل JS الأنيميشن */
.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue:not(.poss-ring-ready),
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue:not(.poss-ring-ready),
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue:not(.poss-ring-ready),
.tab-content-item.stats .progress-wrapper .progress.blue:not(.poss-ring-ready) {
  --poss-pct: 0;
}

.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue.poss-ring-ready,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue.poss-ring-ready,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue.poss-ring-ready,
.tab-content-item.stats .progress-wrapper .progress.blue.poss-ring-ready {
  animation: statsPossessionRingIn 0.55s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

.match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue .progress-value,
.dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue .progress-value,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue .progress-value,
.tab-content-item.stats .progress-wrapper .progress.blue .progress-value {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.82) !important;
  background: #161828 !important;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue,
  .dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue,
  .tab-content-item.stats .progress-wrapper .progress.blue {
    animation: none;
    transition: none;
  }
}

.match-page-inner .tab-content-item.stats .progress-state-item,
.dynamic-content-area-wrap .tab-content-item.stats .progress-state-item,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item {
  margin-bottom: 14px;
}

.match-page-inner .tab-content-item.stats .progress-state-item:last-child,
.dynamic-content-area-wrap .tab-content-item.stats .progress-state-item:last-child,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item:last-child {
  margin-bottom: 0;
}

.match-page-inner .tab-content-item.stats .progress-state-item .text,
.dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text {
  margin-bottom: 8px;
  font-size: 12px;
}

.match-page-inner .tab-content-item.stats .progress-state-item .text span:first-child,
.match-page-inner .tab-content-item.stats .progress-state-item .text span:last-child,
.dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text span:first-child,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text span:first-child,
.dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text span:last-child,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text span:last-child {
  min-width: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.match-page-inner .tab-content-item.stats .progress-state-item .text .title,
.dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text .title,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text .title {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 12px;
}

.match-page-inner .tab-content-item.stats .line-progress,
.dynamic-content-area-wrap .tab-content-item.stats .line-progress,
.ajax-details-wrapper .tab-content-item.stats .line-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.match-page-inner .tab-content-item.stats .line-progress .value,
.dynamic-content-area-wrap .tab-content-item.stats .line-progress .value,
.ajax-details-wrapper .tab-content-item.stats .line-progress .value {
  height: 6px;
  border-radius: 999px;
  background: #39DBBF;
}

.match-page-inner .tab-content-item.stats .line-progress.lost .value,
.dynamic-content-area-wrap .tab-content-item.stats .line-progress.lost .value,
.ajax-details-wrapper .tab-content-item.stats .line-progress.lost .value {
  background: #9b7ec8;
}

.match-page-inner .tab-content-item.stats .pd-15-row,
.dynamic-content-area-wrap .tab-content-item.stats .pd-15-row,
.ajax-details-wrapper .tab-content-item.stats .pd-15-row {
  margin-left: -5px;
  margin-right: -5px;
}

.match-page-inner .tab-content-item.stats .pd-15-row > [class*="col-"],
.dynamic-content-area-wrap .tab-content-item.stats .pd-15-row > [class*="col-"],
.ajax-details-wrapper .tab-content-item.stats .pd-15-row > [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

html.light .match-page-inner .tab-content-item.stats .match-stats-block,
html.light .dynamic-content-area-wrap .tab-content-item.stats .match-stats-block,
.ajax-details-wrapper .tab-content-item.stats .match-stats-block {
  background: #ffffff;
  border-color: rgba(14, 16, 25, 0.08);
  box-shadow: 0 2px 12px rgba(14, 16, 25, 0.06);
}

html.light .match-page-inner .tab-content-item.stats .section-title,
html.light .dynamic-content-area-wrap .tab-content-item.stats .section-title,
.ajax-details-wrapper .tab-content-item.stats .section-title {
  color: #1a9b84;
}

html.light .match-page-inner .tab-content-item.stats .progress-wrapper,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper {
  border-bottom-color: rgba(14, 16, 25, 0.08);
}

html.light .match-page-inner .tab-content-item.stats .progress-wrapper .team-item.team-a,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .team-item.team-a,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .team-item.team-a {
  color: #1a9b84;
}

html.light .match-page-inner .tab-content-item.stats .progress-wrapper .team-item.team-b,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .team-item.team-b,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .team-item.team-b {
  color: #7c5cad;
}

html.light .match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue,
html.light .tab-content-item.stats .progress-wrapper .progress.blue {
  --poss-away: #8b6cbc;
  background:
    conic-gradient(
      from -90deg,
      #1a9b84 0,
      #1a9b84 calc(var(--poss-pct, 0) * 1%),
      var(--poss-away) calc(var(--poss-pct, 0) * 1%),
      var(--poss-away) 100%
    ) !important;
}

html.light .match-page-inner .tab-content-item.stats .progress-wrapper .progress.blue .progress-value,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-wrapper .progress.blue .progress-value,
.ajax-details-wrapper .tab-content-item.stats .progress-wrapper .progress.blue .progress-value {
  background: #f4f6fb !important;
  color: #5c6275 !important;
  box-shadow: inset 0 0 0 1px rgba(14, 16, 25, 0.06);
}

html.light .match-page-inner .tab-content-item.stats .progress-state-item .text span:first-child,
html.light .match-page-inner .tab-content-item.stats .progress-state-item .text span:last-child,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text span:first-child,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text span:first-child,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text span:last-child,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text span:last-child {
  color: #0E1019;
}

html.light .match-page-inner .tab-content-item.stats .progress-state-item .text .title,
html.light .dynamic-content-area-wrap .tab-content-item.stats .progress-state-item .text .title,
.ajax-details-wrapper .tab-content-item.stats .progress-state-item .text .title {
  color: #8b92a8;
}

html.light .match-page-inner .tab-content-item.stats .line-progress,
html.light .dynamic-content-area-wrap .tab-content-item.stats .line-progress,
.ajax-details-wrapper .tab-content-item.stats .line-progress {
  background: rgba(14, 16, 25, 0.08);
}

html.light .match-page-inner .tab-content-item.stats .line-progress .value,
html.light .dynamic-content-area-wrap .tab-content-item.stats .line-progress .value,
.ajax-details-wrapper .tab-content-item.stats .line-progress .value {
  background: #1a9b84;
}

html.light .match-page-inner .tab-content-item.stats .line-progress.lost .value,
html.light .dynamic-content-area-wrap .tab-content-item.stats .line-progress.lost .value,
.ajax-details-wrapper .tab-content-item.stats .line-progress.lost .value {
  background: #8b6cbc;
}

@media (min-width: 768px) {
  .match-page-inner .tab-content-item.stats > .small-container {
    max-width: 720px;
    margin: 0 auto;
  }

  .match-page-inner .tab-content-item.stats .match-stats-block,
  .dynamic-content-area-wrap .tab-content-item.stats .match-stats-block,
.ajax-details-wrapper .tab-content-item.stats .match-stats-block {
    padding: 20px 20px 18px;
  }

  .profile-page-header + .inner-page-content .match-page-inner .tab-content-item.stats.active,
  .profile-page-header + section.inner-page-content .match-page-inner .tab-content-item.stats.active {
    padding-top: 4px;
  }
}

/* عناوين الأقسام داخل تابات المباراة */
.match-page-inner .match-block-item > .section-title,
.dynamic-content-area-wrap .match-block-item > .section-title,
.ajax-details-wrapper .match-block-item > .section-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #39DBBF;
}

html.light .match-page-inner .match-block-item > .section-title,
html.light .dynamic-content-area-wrap .match-block-item > .section-title,
html.light .ajax-details-wrapper .match-block-item > .section-title {
  color: #1a9b84;
}

/* ─── روابط الفيديو السريعة (أهداف / ملخص / …) ─── */
.match-page-inner .match-block-item > .section-title + .match-quick-links.row,
.dynamic-content-area-wrap .match-block-item > .section-title + .match-quick-links.row,
.ajax-details-wrapper .match-block-item > .section-title + .match-quick-links.row {
  margin-top: 2px;
}

.match-page-inner .match-quick-links.row,
.dynamic-content-area-wrap .match-quick-links.row,
.ajax-details-wrapper .match-quick-links.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.match-page-inner .match-quick-links.row > [class*="col-"],
.dynamic-content-area-wrap .match-quick-links.row > [class*="col-"],
.ajax-details-wrapper .match-quick-links.row > [class*="col-"] {
  flex: 1 1 calc(33.333% - 7px);
  min-width: 100px;
  max-width: 100%;
  padding: 0;
  width: auto;
}

.match-page-inner .match-quick-link,
.dynamic-content-area-wrap .match-quick-link,
.ajax-details-wrapper .match-quick-link {
  height: auto;
  min-height: 92px;
  padding: 16px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 34, 52, 0.95) 0%, rgba(22, 25, 40, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.match-page-inner .match-quick-link svg,
.dynamic-content-area-wrap .match-quick-link svg,
.ajax-details-wrapper .match-quick-link svg {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  flex-shrink: 0;
}

.match-page-inner .match-quick-link span,
.dynamic-content-area-wrap .match-quick-link span,
.ajax-details-wrapper .match-quick-link span {
  display: block;
  padding: 0 4px;
  word-break: break-word;
}

.match-page-inner .match-quick-link:hover,
.dynamic-content-area-wrap .match-quick-link:hover,
.ajax-details-wrapper .match-quick-link:hover {
  color: #39DBBF;
  border-color: rgba(57, 219, 191, 0.32);
  box-shadow: 0 6px 22px rgba(57, 219, 191, 0.14);
  transform: translateY(-2px);
}

.match-page-inner .match-quick-link:active,
.dynamic-content-area-wrap .match-quick-link:active,
.ajax-details-wrapper .match-quick-link:active {
  transform: translateY(0) scale(0.98);
}

html.light .match-page-inner .match-quick-link,
html.light .dynamic-content-area-wrap .match-quick-link,
html.light .ajax-details-wrapper .match-quick-link {
  background: #ffffff;
  border-color: rgba(14, 16, 25, 0.08);
  box-shadow: 0 2px 12px rgba(14, 16, 25, 0.06);
  color: #5c6275;
}

html.light .match-page-inner .match-quick-link:hover,
html.light .dynamic-content-area-wrap .match-quick-link:hover,
html.light .ajax-details-wrapper .match-quick-link:hover {
  color: #1a9b84;
  border-color: rgba(26, 155, 132, 0.28);
  box-shadow: 0 6px 18px rgba(26, 155, 132, 0.1);
}

@media (max-width: 575px) {
  .match-page-inner .match-quick-links.row > [class*="col-"],
  .dynamic-content-area-wrap .match-quick-links.row > [class*="col-"],
  .ajax-details-wrapper .match-quick-links.row > [class*="col-"] {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .match-page-inner .match-quick-link,
  .dynamic-content-area-wrap .match-quick-link,
  .ajax-details-wrapper .match-quick-link {
    min-height: 84px;
    padding: 14px 8px 10px;
    font-size: 10px;
  }
}

/* ─── أهم الأحداث / كل الأحداث (mini-events & full-events) ─── */
.match-page-inner .tab-area,
.dynamic-content-area-wrap .tab-area,
.ajax-details-wrapper .tab-area {
  margin-top: 2px;
}

.match-page-inner .tab-area > .inline-tabs-wrapper,
.dynamic-content-area-wrap .tab-area > .inline-tabs-wrapper,
.ajax-details-wrapper .tab-area > .inline-tabs-wrapper {
  margin-bottom: 12px;
}

.match-page-inner .tab-content-item.mini-events.active,
.match-page-inner .tab-content-item.full-events.active,
.dynamic-content-area-wrap .tab-content-item.mini-events.active,
.dynamic-content-area-wrap .tab-content-item.full-events.active,
.ajax-details-wrapper .tab-content-item.mini-events.active,
.ajax-details-wrapper .tab-content-item.full-events.active {
  display: block;
  margin-top: 0;
}

.match-page-inner .tab-content-item.mini-events .match-events-wrap,
.match-page-inner .tab-content-item.full-events .match-events-wrap,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-events-wrap,
.dynamic-content-area-wrap .tab-content-item.full-events .match-events-wrap,
.ajax-details-wrapper .tab-content-item.mini-events .match-events-wrap,
.ajax-details-wrapper .tab-content-item.full-events .match-events-wrap,
.match-page-inner .tab-area .match-events-wrap,
.dynamic-content-area-wrap .tab-area .match-events-wrap,
.ajax-details-wrapper .tab-area .match-events-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 34, 52, 0.95) 0%, rgba(22, 25, 40, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.match-page-inner .tab-content-item.mini-events .match-event-item,
.match-page-inner .tab-content-item.full-events .match-event-item,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item,
.match-page-inner .tab-area .match-event-item,
.dynamic-content-area-wrap .tab-area .match-event-item,
.ajax-details-wrapper .tab-area .match-event-item {
  min-height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease;
}

.match-page-inner .tab-content-item.mini-events .match-event-item:last-child,
.match-page-inner .tab-content-item.full-events .match-event-item:last-child,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item:last-child,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item:last-child,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item:last-child,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item:last-child,
.match-page-inner .tab-area .match-event-item:last-child,
.dynamic-content-area-wrap .tab-area .match-event-item:last-child,
.ajax-details-wrapper .tab-area .match-event-item:last-child {
  border-bottom: none;
}

.match-page-inner .tab-content-item.mini-events .match-event-item:hover,
.match-page-inner .tab-content-item.full-events .match-event-item:hover,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item:hover,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item:hover,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item:hover,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item:hover,
.match-page-inner .tab-area .match-event-item:hover,
.dynamic-content-area-wrap .tab-area .match-event-item:hover,
.ajax-details-wrapper .tab-area .match-event-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.match-page-inner .tab-content-item.mini-events .match-event-item.bg,
.match-page-inner .tab-content-item.full-events .match-event-item.bg,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.bg,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.bg,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.bg,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.bg,
.match-page-inner .tab-area .match-event-item.bg {
  background: rgba(255, 255, 255, 0.04);
}

.match-page-inner .tab-content-item.mini-events .match-event-item.goal:hover,
.match-page-inner .tab-content-item.full-events .match-event-item.goal:hover,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.goal:hover,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.goal:hover,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.goal:hover,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.goal:hover,
.match-page-inner .tab-area .match-event-item.goal:hover {
  background: rgba(57, 219, 191, 0.08);
}

.match-page-inner .tab-content-item.mini-events .match-event-item .time,
.match-page-inner .tab-content-item.full-events .match-event-item .time,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .time,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .time,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item .time,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item .time,
.match-page-inner .tab-area .match-event-item .time {
  width: 34px;
  height: 34px;
  margin: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.match-page-inner .tab-content-item.mini-events .match-event-item.goal .time,
.match-page-inner .tab-content-item.full-events .match-event-item.goal .time,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.goal .time,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.goal .time,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.goal .time,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.goal .time,
.match-page-inner .tab-area .match-event-item.goal .time {
  border-color: rgba(57, 219, 191, 0.35);
  background: rgba(57, 219, 191, 0.14);
  color: #39DBBF;
}

.match-page-inner .tab-content-item.mini-events .match-event-item.goal-x .time,
.match-page-inner .tab-content-item.full-events .match-event-item.goal-x .time,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.goal-x .time,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.goal-x .time,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.goal-x .time,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.goal-x .time,
.match-page-inner .tab-area .match-event-item.goal-x .time {
  border-color: rgba(252, 77, 77, 0.35);
  background: rgba(252, 77, 77, 0.12);
  color: #ff8a8a;
}

.match-page-inner .tab-content-item.mini-events .match-event-item .time::before,
.match-page-inner .tab-content-item.full-events .match-event-item .time::before,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .time::before,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .time::before,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item .time::before,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item .time::before,
.match-page-inner .tab-area .match-event-item .time::before {
  display: none;
}

.match-page-inner .tab-content-item.mini-events .match-event-item .t-side span,
.match-page-inner .tab-content-item.full-events .match-event-item .t-side span,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .t-side span,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .t-side span,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item .t-side span,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item .t-side span,
.match-page-inner .tab-area .match-event-item .t-side span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.match-page-inner .tab-content-item.mini-events .match-event-item .t-side span.subtitle,
.match-page-inner .tab-content-item.full-events .match-event-item .t-side span.subtitle,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .t-side span.subtitle,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .t-side span.subtitle,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item .t-side span.subtitle,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item .t-side span.subtitle,
.match-page-inner .tab-area .match-event-item .t-side span.subtitle {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match,
.match-page-inner .tab-content-item.full-events .match-event-item.start-end-match,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match,
.match-page-inner .tab-area .match-event-item.start-end-match,
.match-page-inner .tab-content-item.mini-events .match-event-item.bg.start-end-match,
.match-page-inner .tab-content-item.full-events .match-event-item.bg.start-end-match,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.bg.start-end-match,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.bg.start-end-match,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.bg.start-end-match,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.bg.start-end-match,
.match-page-inner .tab-area .match-event-item.bg.start-end-match {
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
}

.match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match .title,
.match-page-inner .tab-content-item.full-events .match-event-item.start-end-match .title,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match .title,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match .title,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match .title,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match .title,
.match-page-inner .tab-area .match-event-item.start-end-match .title {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match svg,
.match-page-inner .tab-content-item.full-events .match-event-item.start-end-match svg,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match svg,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match svg,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match svg,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match svg,
.match-page-inner .tab-area .match-event-item.start-end-match svg {
  opacity: 0.55;
}

.match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match .m-result,
.match-page-inner .tab-content-item.full-events .match-event-item.start-end-match .m-result,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match .m-result,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match .m-result,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match .m-result,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match .m-result,
.match-page-inner .tab-area .match-event-item.start-end-match .m-result {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match,
html.light .match-page-inner .tab-content-item.full-events .match-event-item.start-end-match,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match,
html.light .match-page-inner .tab-area .match-event-item.start-end-match,
html.light .match-page-inner .tab-content-item.mini-events .match-event-item.bg.start-end-match,
html.light .match-page-inner .tab-content-item.full-events .match-event-item.bg.start-end-match,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.bg.start-end-match,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.bg.start-end-match,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item.bg.start-end-match,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item.bg.start-end-match,
html.light .match-page-inner .tab-area .match-event-item.bg.start-end-match {
  background: rgba(14, 16, 25, 0.03);
  color: #7a8199;
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match .title,
html.light .match-page-inner .tab-content-item.full-events .match-event-item.start-end-match .title,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match .title,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match .title,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match .title,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match .title,
html.light .match-page-inner .tab-area .match-event-item.start-end-match .title {
  color: #6b7289;
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item.start-end-match .m-result,
html.light .match-page-inner .tab-content-item.full-events .match-event-item.start-end-match .m-result,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.start-end-match .m-result,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.start-end-match .m-result,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item.start-end-match .m-result,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item.start-end-match .m-result,
html.light .match-page-inner .tab-area .match-event-item.start-end-match .m-result {
  color: #3d4354;
}

.match-page-inner .tab-content-item.mini-events .match-event-item object.video-icon,
.match-page-inner .tab-content-item.full-events .match-event-item object.video-icon,
.dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item object.video-icon,
.dynamic-content-area-wrap .tab-content-item.full-events .match-event-item object.video-icon,
.ajax-details-wrapper .tab-content-item.mini-events .match-event-item object.video-icon,
.ajax-details-wrapper .tab-content-item.full-events .match-event-item object.video-icon {
  opacity: 0.85;
}

html.light .match-page-inner .tab-content-item.mini-events .match-events-wrap,
html.light .match-page-inner .tab-content-item.full-events .match-events-wrap,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-events-wrap,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-events-wrap,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-events-wrap,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-events-wrap,
html.light .match-page-inner .tab-area .match-events-wrap {
  background: #ffffff;
  border-color: rgba(14, 16, 25, 0.08);
  box-shadow: 0 2px 12px rgba(14, 16, 25, 0.06);
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item,
html.light .match-page-inner .tab-content-item.full-events .match-event-item,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item,
html.light .match-page-inner .tab-area .match-event-item {
  border-bottom-color: rgba(14, 16, 25, 0.06);
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item .time,
html.light .match-page-inner .tab-content-item.full-events .match-event-item .time,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .time,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .time,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item .time,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item .time,
html.light .match-page-inner .tab-area .match-event-item .time {
  color: #0E1019;
  background: rgba(14, 16, 25, 0.05);
  border-color: rgba(14, 16, 25, 0.08);
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item.goal .time,
html.light .match-page-inner .tab-content-item.full-events .match-event-item.goal .time,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item.goal .time,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item.goal .time,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item.goal .time,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item.goal .time,
html.light .match-page-inner .tab-area .match-event-item.goal .time {
  color: #1a9b84;
  background: rgba(26, 155, 132, 0.1);
  border-color: rgba(26, 155, 132, 0.22);
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item .t-side span,
html.light .match-page-inner .tab-content-item.full-events .match-event-item .t-side span,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .t-side span,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .t-side span,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item .t-side span,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item .t-side span,
html.light .match-page-inner .tab-area .match-event-item .t-side span {
  color: #2a2f3d;
}

html.light .match-page-inner .tab-content-item.mini-events .match-event-item .t-side span.subtitle,
html.light .match-page-inner .tab-content-item.full-events .match-event-item .t-side span.subtitle,
html.light .dynamic-content-area-wrap .tab-content-item.mini-events .match-event-item .t-side span.subtitle,
html.light .dynamic-content-area-wrap .tab-content-item.full-events .match-event-item .t-side span.subtitle,
html.light .ajax-details-wrapper .tab-content-item.mini-events .match-event-item .t-side span.subtitle,
html.light .ajax-details-wrapper .tab-content-item.full-events .match-event-item .t-side span.subtitle,
html.light .match-page-inner .tab-area .match-event-item .t-side span.subtitle {
  color: #8b92a8;
}

/* ─── أقسام الصفحة (match-block-item) — تباعد موحّد ─── */
.match-page-inner .match-block-item,
.dynamic-content-area-wrap .match-block-item,
.ajax-details-wrapper .match-block-item {
  margin-bottom: 16px;
}

.match-page-inner .match-block-item:last-child,
.dynamic-content-area-wrap .match-block-item:last-child,
.ajax-details-wrapper .match-block-item:last-child {
  margin-bottom: 0;
}

.match-page-inner .match-block-item.pt-2,
.dynamic-content-area-wrap .match-block-item.pt-2,
.ajax-details-wrapper .match-block-item.pt-2 {
  padding-top: 6px;
}

.match-page-inner .match-block-item > .section-title + .teams-stats-wrap,
.dynamic-content-area-wrap .match-block-item > .section-title + .teams-stats-wrap,
.ajax-details-wrapper .match-block-item > .section-title + .teams-stats-wrap,
.match-page-inner .match-block-item > .section-title + .match-events-wrap,
.dynamic-content-area-wrap .match-block-item > .section-title + .match-events-wrap,
.ajax-details-wrapper .match-block-item > .section-title + .match-events-wrap {
  margin-top: 0;
}

/* ─── ملخص الإحصائيات المصغّر (teams-stats-wrap) — تاب التفاصيل/الأحداث ─── */
.match-page-inner .teams-stats-wrap,
.dynamic-content-area-wrap .teams-stats-wrap,
.ajax-details-wrapper .teams-stats-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 14px 12px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 34, 52, 0.95) 0%, rgba(22, 25, 40, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.match-page-inner .teams-stats-wrap .team-item,
.dynamic-content-area-wrap .teams-stats-wrap .team-item,
.ajax-details-wrapper .teams-stats-wrap .team-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.match-page-inner .teams-stats-wrap .team-item.team-a .progress,
.dynamic-content-area-wrap .teams-stats-wrap .team-item.team-a .progress,
.ajax-details-wrapper .teams-stats-wrap .team-item.team-a .progress {
  --poss-fill: #39DBBF;
  --poss-track: rgba(255, 255, 255, 0.14);
}

.match-page-inner .teams-stats-wrap .team-item.team-b,
.dynamic-content-area-wrap .teams-stats-wrap .team-item.team-b,
.ajax-details-wrapper .teams-stats-wrap .team-item.team-b {
  flex-direction: row-reverse;
}

.match-page-inner .teams-stats-wrap .team-item.team-b .progress,
.dynamic-content-area-wrap .teams-stats-wrap .team-item.team-b .progress,
.ajax-details-wrapper .teams-stats-wrap .team-item.team-b .progress {
  --poss-fill: #9b7ec8;
  --poss-track: rgba(255, 255, 255, 0.14);
}

.match-page-inner .teams-stats-wrap .team-item .progress,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress {
  --poss-pct: 0;
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  line-height: 1;
  margin: 0 !important;
  border-radius: 50%;
  box-shadow: none !important;
  background: none !important;
  overflow: hidden;
  transition: --poss-pct 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* إطار SCSS القديم (:after) — يغطي الحلقة */
.match-page-inner .teams-stats-wrap .team-item .progress::after,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress::after,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress::after {
  display: none !important;
  content: none !important;
}

/* حلقة النسبة — طبقة منفصلة حتى لا يغطيها progress-value */
.match-page-inner .teams-stats-wrap .team-item .progress::before,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress::before,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  background:
    conic-gradient(
      from -90deg,
      var(--poss-fill) 0,
      var(--poss-fill) calc(var(--poss-pct, 0) * 1%),
      var(--poss-track) calc(var(--poss-pct, 0) * 1%),
      var(--poss-track) 100%
    );
  -webkit-mask: radial-gradient(circle, transparent 20px, #000 22px);
          mask: radial-gradient(circle, transparent 20px, #000 22px);
  transition: background 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.match-page-inner .teams-stats-wrap .team-item .progress > span,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress > span,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress > span {
  display: none !important;
}

.match-page-inner .teams-stats-wrap .team-item .progress .progress-bar,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress .progress-bar,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress .progress-bar {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.match-page-inner .teams-stats-wrap .team-item .progress .progress-value,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress .progress-value,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress .progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #161828 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: transparent;
  line-height: 1;
}

.match-page-inner .teams-stats-wrap .team-item .progress .progress-value img,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .progress .progress-value img,
.ajax-details-wrapper .teams-stats-wrap .team-item .progress .progress-value img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.match-page-inner .teams-stats-wrap .team-item .percent,
.dynamic-content-area-wrap .teams-stats-wrap .team-item .percent,
.ajax-details-wrapper .teams-stats-wrap .team-item .percent {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.match-page-inner .teams-stats-wrap .team-item.team-a .percent,
.dynamic-content-area-wrap .teams-stats-wrap .team-item.team-a .percent,
.ajax-details-wrapper .teams-stats-wrap .team-item.team-a .percent {
  color: #39DBBF;
}

.match-page-inner .teams-stats-wrap .team-item.team-b .percent,
.dynamic-content-area-wrap .teams-stats-wrap .team-item.team-b .percent,
.ajax-details-wrapper .teams-stats-wrap .team-item.team-b .percent {
  color: #b49ae8;
}

.match-page-inner .teams-stats-wrap .stats-text-wrap,
.dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap,
.ajax-details-wrapper .teams-stats-wrap .stats-text-wrap {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 auto;
  padding: 0 4px;
}

.match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item,
.dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item,
.ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item:first-child,
.dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item:first-child,
.ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item:first-child {
  margin-top: 0;
}

.match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item:last-child,
.dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item:last-child,
.ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item:last-child {
  margin-bottom: 0;
}

.match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item .title,
.dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item .title,
.ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item .title {
  flex: 0 0 auto;
  min-width: 72px;
  max-width: 120px;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item > span:not(.title),
.dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item > span:not(.title),
.ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item > span:not(.title) {
  flex: 0 0 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

html.light .match-page-inner .teams-stats-wrap,
html.light .dynamic-content-area-wrap .teams-stats-wrap,
html.light .ajax-details-wrapper .teams-stats-wrap {
  background: #ffffff;
  border-color: rgba(14, 16, 25, 0.08);
  box-shadow: 0 2px 12px rgba(14, 16, 25, 0.06);
}

html.light .match-page-inner .teams-stats-wrap .team-item.team-a .progress,
html.light .dynamic-content-area-wrap .teams-stats-wrap .team-item.team-a .progress,
html.light .ajax-details-wrapper .teams-stats-wrap .team-item.team-a .progress {
  --poss-fill: #1a9b84;
  --poss-track: rgba(14, 16, 25, 0.1);
}

html.light .match-page-inner .teams-stats-wrap .team-item.team-b .progress,
html.light .dynamic-content-area-wrap .teams-stats-wrap .team-item.team-b .progress,
html.light .ajax-details-wrapper .teams-stats-wrap .team-item.team-b .progress {
  --poss-fill: #8b6cbc;
  --poss-track: rgba(14, 16, 25, 0.1);
}

html.light .match-page-inner .teams-stats-wrap .team-item .progress .progress-value,
html.light .dynamic-content-area-wrap .teams-stats-wrap .team-item .progress .progress-value,
html.light .ajax-details-wrapper .teams-stats-wrap .team-item .progress .progress-value {
  background: #f4f5f8 !important;
}

html.light .match-page-inner .teams-stats-wrap .team-item .percent,
html.light .dynamic-content-area-wrap .teams-stats-wrap .team-item .percent,
html.light .ajax-details-wrapper .teams-stats-wrap .team-item .percent {
  color: #2a2f3d;
}

html.light .match-page-inner .teams-stats-wrap .team-item.team-a .percent,
html.light .dynamic-content-area-wrap .teams-stats-wrap .team-item.team-a .percent,
html.light .ajax-details-wrapper .teams-stats-wrap .team-item.team-a .percent {
  color: #1a9b84;
}

html.light .match-page-inner .teams-stats-wrap .team-item.team-b .percent,
html.light .dynamic-content-area-wrap .teams-stats-wrap .team-item.team-b .percent,
html.light .ajax-details-wrapper .teams-stats-wrap .team-item.team-b .percent {
  color: #7a5cad;
}

html.light .match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item,
html.light .dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item,
html.light .ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item {
  color: #2a2f3d;
}

html.light .match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item .title,
html.light .dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item .title,
html.light .ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item .title {
  color: #8b92a8;
}

/* موبايل — صفحة المباراة: ملاصقة للحواف (إلغاء padding الـ container + bleed الجدول) */
@media (max-width: 767px) {
  .profile-page-header + .inner-page-content > .container,
  .profile-page-header + section.inner-page-content > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .profile-page-header + .inner-page-content .match-page-inner,
  .profile-page-header + section.inner-page-content .match-page-inner,
  .profile-page-header + .inner-page-content .small-container,
  .profile-page-header + section.inner-page-content .small-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .match-page-inner .match-teams-rank,
  .match-page-inner .rank-group-wrapper,
  .match-page-inner .tab-content-item .ranking-table,
  .match-page-inner .match-block-item .ranking-table {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  .match-page-inner .match-teams-rank {
    padding: 8px 10px 14px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .match-page-inner .rank-group-wrapper .ranking-table {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .match-page-inner .match-events-wrap,
  .match-page-inner .teams-stats-wrap,
  .match-page-inner .tab-content-item.stats .match-stats-block {
    border-radius: 0;
  }

  .match-page-inner .match-block-item > .section-title {
    padding-inline: 14px;
  }

  .match-page-inner .inline-tabs-wrapper,
  .match-page-inner .tab-area > .inline-tabs-wrapper {
    padding-inline: 10px;
  }

  .match-page-inner .match-quick-links.row {
    padding-inline: 10px;
    box-sizing: border-box;
  }

  .match-page-inner .teams-stats-wrap,
  .dynamic-content-area-wrap .teams-stats-wrap,
  .ajax-details-wrapper .teams-stats-wrap {
    padding: 10px 6px;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .match-page-inner .teams-stats-wrap .team-item,
  .dynamic-content-area-wrap .teams-stats-wrap .team-item,
  .ajax-details-wrapper .teams-stats-wrap .team-item {
    gap: 4px;
    min-width: 0;
  }

  .match-page-inner .teams-stats-wrap .team-item .percent,
  .dynamic-content-area-wrap .teams-stats-wrap .team-item .percent,
  .ajax-details-wrapper .teams-stats-wrap .team-item .percent {
    display: none;
  }

  .match-page-inner .match-events-wrap,
  .match-page-inner .match-quick-links.row,
  .match-page-inner .match-block-item {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 575px) {
  .match-page-inner .teams-stats-wrap,
  .dynamic-content-area-wrap .teams-stats-wrap,
  .ajax-details-wrapper .teams-stats-wrap {
    padding: 10px 4px;
    gap: 2px;
  }

  .match-page-inner .teams-stats-wrap .team-item .progress,
  .dynamic-content-area-wrap .teams-stats-wrap .team-item .progress,
  .ajax-details-wrapper .teams-stats-wrap .team-item .progress {
    width: 48px;
    height: 48px;
  }

  .match-page-inner .teams-stats-wrap .team-item .progress::before,
  .dynamic-content-area-wrap .teams-stats-wrap .team-item .progress::before,
  .ajax-details-wrapper .teams-stats-wrap .team-item .progress::before {
    -webkit-mask: radial-gradient(circle, transparent 18px, #000 20px);
            mask: radial-gradient(circle, transparent 18px, #000 20px);
  }

  .match-page-inner .teams-stats-wrap .team-item .progress .progress-value,
  .dynamic-content-area-wrap .teams-stats-wrap .team-item .progress .progress-value,
  .ajax-details-wrapper .teams-stats-wrap .team-item .progress .progress-value {
    width: 30px;
    height: 30px;
  }

  .match-page-inner .teams-stats-wrap .team-item .percent,
  .dynamic-content-area-wrap .teams-stats-wrap .team-item .percent,
  .ajax-details-wrapper .teams-stats-wrap .team-item .percent {
    font-size: 11px;
  }

  .match-page-inner .teams-stats-wrap .stats-text-wrap .stats-text-item .title,
  .dynamic-content-area-wrap .teams-stats-wrap .stats-text-wrap .stats-text-item .title,
  .ajax-details-wrapper .teams-stats-wrap .stats-text-wrap .stats-text-item .title {
    min-width: 60px;
    font-size: 10px;
  }
}

/* بث مباشر — فيديو يوتيوب بعرض كامل بدون إطار */
.match-live-block .section-title {
  margin-bottom: 10px;
}

.match-live-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.match-live-embed__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
