/* ==========================================================================
   Kora cards + RTL chrome — light default, Night via body.Night
   ========================================================================== */

:root {
  --kora-bg: #edf1f7;
  --kora-header: #ffffff;
  --kora-card: #ffffff;
  --kora-head: #f6f8fc;
  --kora-border: #d5dde8;
  --kora-border-soft: #e4eaf3;
  --kora-text: #1e2430;
  --kora-muted: #5a6576;
  --kora-logo-bg: #ffffff;
  --kora-red: #b51818;
  --kora-red-d: #8f1212;
  --kora-red-l: #d21f1f;
  --kora-accent: var(--kora-red);
  --kora-live: #d21f1f;
  --kora-soon: #0a9c3a;
  --kora-idle: #3a63c2;
  --kora-ended: #8b95a5;
  --kora-yes: #3a63c2;
  --kora-tod: var(--kora-red);
  --kora-tom: #c98600;
  --kora-announce: color-mix(in srgb, var(--kora-red) 12%, #f4f6fa);
  --kora-announce-text: color-mix(in srgb, var(--kora-red-d) 78%, #2b303b);
  --kora-radius: 10px;
  --kora-gap: 12px;
  --kora-logo: 58px;
  --kora-shadow: 0 2px 10px -4px rgba(18, 28, 48, .12);
  --kora-shadow-hover: 0 10px 28px -10px rgba(18, 28, 48, .22);
  --kora-content: 1120px;
}

body.Night {
  --kora-bg: #0c0e16;
  --kora-header: #171b28;
  --kora-card: #171b28;
  --kora-head: #12151f;
  --kora-border: #262c3b;
  --kora-border-soft: #20263a;
  --kora-text: #e9edf5;
  --kora-muted: #a9b3c4;
  --kora-logo-bg: #ffffff;
  --kora-announce: color-mix(in srgb, var(--kora-red) 32%, #0c0e16);
  --kora-announce-text: color-mix(in srgb, var(--kora-red) 55%, #ffffff);
  --kora-shadow: 0 8px 24px -10px rgba(0, 0, 0, .55);
  --kora-shadow-hover: 0 16px 40px -14px rgba(0, 0, 0, .65);
}

.kora-matches-container.kora-theme-dark,
body.Night .kora-matches-container {
  --kora-card: #171b28;
  --kora-head: #12151f;
  --kora-border: #262c3b;
  --kora-border-soft: #20263a;
  --kora-text: #e9edf5;
  --kora-muted: #a9b3c4;
  --kora-shadow: 0 8px 24px -10px rgba(0, 0, 0, .55);
  --kora-shadow-hover: 0 16px 40px -14px rgba(0, 0, 0, .65);
}

body {
  background:
    radial-gradient(1200px 420px at 50% -80px, color-mix(in srgb, var(--kora-red) 8%, transparent), transparent 70%),
    linear-gradient(180deg, #f5f7fb 0%, var(--kora-bg) 220px);
  color: var(--kora-text);
  padding-bottom: 0 !important;
  overflow-x: hidden;
}
body.Night {
  background:
    radial-gradient(1000px 380px at 50% -60px, color-mix(in srgb, var(--kora-red) 14%, transparent), transparent 72%),
    linear-gradient(180deg, #10131c 0%, var(--kora-bg) 240px);
}

.container,
.apc-hdr-inner,
.apc-page-wrap {
  max-width: var(--kora-content) !important;
}

/* --------------------------------------------------------------------------
   Header — night left, logo center, menu right
   -------------------------------------------------------------------------- */
.apc-header {
  background: color-mix(in srgb, var(--kora-header) 92%, transparent) !important;
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--kora-border-soft) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset !important;
  position: relative !important;
  top: auto !important;
}
body.Night .apc-header {
  box-shadow: none !important;
}
.apc-hdr-inner {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  direction: ltr;
  min-height: 60px;
  height: auto !important;
  padding: 7px 14px !important;
  gap: 10px;
  justify-content: unset !important;
}
.apc-desk-nav { display: none !important; }
.apc-logo {
  justify-self: center;
  direction: rtl;
}
.apc-logo a,
.kora-brand {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  max-width: 200px;
  width: auto;
  padding: 6px 14px;
  background: linear-gradient(180deg, var(--kora-red-l) 0%, var(--kora-red) 52%, var(--kora-red-d) 100%) !important;
  border-radius: 10px;
  color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.22) inset,
    0 8px 20px -10px color-mix(in srgb, var(--kora-red) 65%, transparent);
  text-decoration: none !important;
  line-height: 1.12;
  letter-spacing: .15px;
  box-sizing: border-box;
}
.apc-logo-icon { display: none; }
.apc-logo-text,
.kora-brand .site-name {
  color: #fff !important;
  font-size: 18.5px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
}
.kora-brand .site-url,
.apc-logo .site-url {
  display: block;
  color: rgba(255,255,255,.8) !important;
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 2px;
  opacity: .95;
}

.apc-dark-btn,
.apc-ham {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 11px !important;
  cursor: pointer;
  padding: 0 !important;
  flex-direction: row !important;
  gap: 0 !important;
  transition: transform .18s ease, filter .18s ease;
}
.apc-dark-btn:hover,
.apc-ham:hover { transform: translateY(-1px); filter: brightness(1.05); }
.apc-dark-btn {
  background: #232833 !important;
  color: #fff !important;
  justify-self: start;
}
.apc-dark-btn svg {
  width: 22px;
  height: 22px;
}
.apc-dark-btn .ic-sun { fill: none; }
.apc-dark-btn .ic-sun circle { fill: currentColor; }
.apc-dark-btn .ic-moon { display: none; fill: currentColor; }
body.Night .apc-dark-btn .ic-sun { display: none; }
body.Night .apc-dark-btn .ic-moon { display: block; }
body.Night .apc-dark-btn { background: #3a4254 !important; }

.apc-ham {
  background: var(--kora-red) !important;
  color: #fff !important;
  justify-self: end;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--kora-red) 70%, transparent);
}
.apc-ham svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.apc-ham span { display: none !important; }

.apc-mob-drawer {
  background: var(--kora-header) !important;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  z-index: 2000;
  transition: right .28s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#apc-mob-cb:checked ~ .apc-mob-drawer { right: 0; }
.apc-overlay-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1999;
  cursor: pointer;
}
#apc-mob-cb:checked ~ .apc-overlay-bg { display: block; }
.apc-drawer-top { background: var(--kora-red) !important; color: #fff; }
.apc-mob-menu li a:hover {
  background: var(--kora-red) !important;
  color: #fff !important;
}

@media (min-width: 900px) {
  .apc-hdr-inner { grid-template-columns: 44px minmax(0, 1fr) 44px; min-height: 68px; padding: 8px 16px !important; }
  .apc-dark-btn, .apc-ham { width: 44px !important; height: 44px !important; border-radius: 11px !important; }
  .apc-dark-btn svg, .apc-ham svg { width: 22px; height: 22px; }
  .kora-brand { min-width: 148px; max-width: 220px; padding: 7px 16px; border-radius: 11px; }
  .kora-brand .site-name, .apc-logo-text { font-size: 19px !important; }
  .kora-brand .site-url { font-size: 10.5px; }
}

.kora-announce {
  background: var(--kora-announce) !important;
  color: var(--kora-announce-text) !important;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .15px;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--kora-red) 14%, var(--kora-border-soft));
}
.kora-announce a { color: inherit; text-decoration: none; }

.apc-hero { display: none !important; }

.kora-matches-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 900px) {
  .kora-matches-panel {
    background: #fff;
    border: 1px solid var(--kora-border-soft);
    border-radius: 16px;
    box-shadow: 0 12px 36px -22px rgba(20, 30, 60, .28);
    padding: 20px 22px 24px;
    margin: 20px 0 30px;
  }
  body.Night .kora-matches-panel {
    background: var(--kora-header);
    border-color: var(--kora-border);
    box-shadow: 0 12px 36px -20px rgba(0, 0, 0, .55);
  }
  .kora-matches-panel .albaflex {
    padding: 0;
    gap: var(--kora-gap);
  }
  .kora-matches-panel .kora-matches-container {
    margin: 0;
  }
}

.kora-day-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 14px 0 12px;
  width: 100%;
}
@media (min-width: 900px) {
  .kora-matches-panel .kora-day-wrap {
    margin: 0 0 18px;
  }
  .kora-day-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .kora-day-wrap .kora-day-title {
    width: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 9px 20px !important;
  }
  .kora-day-wrap .apc-tabs,
  .kora-day-wrap ul.nav-tabs,
  .kora-day-wrap ul.apc-tabs {
    width: min(400px, 46%) !important;
    max-width: 460px !important;
    flex: 0 0 auto;
    margin: 0 !important;
  }
}
.kora-day-title,
.apc-sec-title {
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--kora-red), var(--kora-red-d)) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 6px 14px -8px color-mix(in srgb, var(--kora-red) 60%, transparent);
  text-align: center;
}

.apc-tabs,
ul.nav-tabs,
ul.apc-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  grid-auto-flow: column;
  gap: 8px !important;
  margin: 0 0 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: none !important;
  list-style: none;
  float: none !important;
  flex-wrap: nowrap !important;
}
.apc-tabs li,
ul.nav-tabs li { margin: 0 !important; float: none !important; width: auto !important; }
.apc-tabs a,
.apc-tabs button,
ul.nav-tabs li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  height: 40px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: 0 !important;
  color: #fff !important;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px -4px rgba(0,0,0,.22) !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform .16s ease, filter .16s ease;
}
.apc-tabs > a:nth-child(1),
.apc-tabs > button:nth-child(1),
.apc-tabs > li:nth-child(1) a,
.apc-tabs > li:nth-child(1) button,
.apc-tabs .Yes a,
.apc-tabs .Yes button,
.apc-tabs a[data-day="yesterday"],
.apc-tabs button[data-day="yesterday"],
ul.nav-tabs li.Yes a {
  background: linear-gradient(135deg, var(--kora-yes), #3457b8) !important;
}
.apc-tabs > a:nth-child(2),
.apc-tabs > button:nth-child(2),
.apc-tabs > li:nth-child(2) a,
.apc-tabs > li:nth-child(2) button,
.apc-tabs .Tod a,
.apc-tabs .Tod button,
.apc-tabs a[data-day="today"],
.apc-tabs button[data-day="today"],
ul.nav-tabs li.Tod a {
  background: linear-gradient(135deg, var(--kora-red), var(--kora-red-d)) !important;
}
.apc-tabs > a:nth-child(3),
.apc-tabs > button:nth-child(3),
.apc-tabs > li:nth-child(3) a,
.apc-tabs > li:nth-child(3) button,
.apc-tabs .Tom a,
.apc-tabs .Tom button,
.apc-tabs a[data-day="tomorrow"],
.apc-tabs button[data-day="tomorrow"],
ul.nav-tabs li.Tom a {
  background: linear-gradient(135deg, var(--kora-tom), color-mix(in srgb, var(--kora-tom) 70%, #8a5a00)) !important;
}
.apc-tabs a:hover,
.apc-tabs button:hover,
ul.nav-tabs li a:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.apc-tabs a.apc-active,
.apc-tabs button.apc-active,
ul.nav-tabs li a.apc-active {
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 1px;
  filter: brightness(1.05);
  box-shadow: 0 5px 14px -4px rgba(0,0,0,.32) !important;
}

.apc-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--kora-text);
  margin: 8px 0 10px;
  padding: 0 2px;
}
.apc-section-live { color: var(--kora-live); }
.apc-section-upcoming { color: var(--kora-text); }
.apc-section-finished { color: var(--kora-muted); }

.kora-sites-wrap,
div.kora-sites-wrap {
  background: transparent !important;
  border-top: 0 !important;
}
.apc-site-card {
  background: var(--kora-card) !important;
  border-color: var(--kora-border) !important;
  border-radius: 14px !important;
}
.apc-site-card:hover { border-color: var(--kora-red) !important; }
.apc-sc-btn,
.apc-site-card .apc-sc-btn {
  background: var(--kora-red) !important;
  color: #fff !important;
  border-color: var(--kora-red) !important;
}

/* News grid — screenshot 1 */
.kora-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}
.kora-news-head span {
  background: linear-gradient(135deg, var(--kora-red), var(--kora-red-d));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--kora-red) 65%, transparent);
}
.kora-news-more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--kora-red, var(--green));
  text-decoration: none;
}
.kora-news-more:hover { text-decoration: underline; }
.kora-news-meta {
  display: block;
  font-size: 11px;
  color: var(--kora-muted, #55606f);
  padding: 0 10px 12px;
  text-align: center;
  margin-top: -6px;
}
.kora-news-archive-wrap { padding: 18px 0 28px; }
.kora-news-archive-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
  color: var(--kora-text);
  text-align: center;
}
.kora-news-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.kora-news-pager a,
.kora-news-pager span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--kora-border, #dbe6f5);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--kora-text);
  text-decoration: none;
}
.apc-article-feat {
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--kora-border, #dbe6f5);
}
.apc-article-feat img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.kora-home-news { margin-top: 6px; }
.kora-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.kora-news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--kora-shadow);
  border: 1px solid var(--kora-border-soft);
  color: var(--kora-text);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kora-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kora-shadow-hover);
}
body.Night .kora-news-card {
  background: var(--kora-card);
  border-color: var(--kora-border);
}
.kora-news-card img,
.kora-news-thumb {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  background: linear-gradient(145deg, #3d4a63, #1b2436);
  display: block;
}
.kora-news-card h3 {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 12px 10px 14px;
  line-height: 1.45;
  margin: 0;
}


@media (max-width: 720px) {
  .kora-news-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .apc-hdr-inner {
    padding: 6px 10px !important;
    gap: 6px;
    min-height: 52px;
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  }
  .apc-logo { min-width: 0; overflow: hidden; justify-self: center; width: 100%; }
  .apc-dark-btn, .apc-ham {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    flex-shrink: 0;
    z-index: 2;
  }
  .apc-dark-btn svg, .apc-ham svg { width: 18px; height: 18px; }
  .kora-brand {
    min-width: 0 !important;
    width: auto;
    max-width: 78%;
    margin-inline: auto;
    padding: 5px 10px;
    border-radius: 9px;
    box-sizing: border-box;
  }
  .kora-brand .site-name, .apc-logo-text { font-size: 15px !important; }
  .kora-brand .site-url { font-size: 9.5px; }
  .kora-day-wrap { margin: 12px 0 10px; gap: 10px; }
  .kora-day-title, .apc-sec-title {
    font-size: 12.5px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
  }
  .apc-tabs,
  ul.nav-tabs,
  ul.apc-tabs {
    gap: 5px !important;
    margin: 0 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .apc-tabs a, .apc-tabs button, ul.nav-tabs li a, ul.nav-tabs li button {
    font-size: 11.5px !important;
    height: 36px !important;
    padding: 0 2px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
  }
  .container { padding-left: 10px !important; padding-right: 10px !important; max-width: 100% !important; }
  .kora-matches-container { width: 100%; max-width: 100%; box-sizing: border-box; }
  .kora-matches-container .kora-match-card { max-width: 100%; box-sizing: border-box; }
}

.sl-seo-wrap,
.sl-seo-wrap.sl-alt {
  background: var(--kora-bg) !important;
}
.sl-why-card,
.sl-card-w,
.sl-team-card {
  background: var(--kora-card) !important;
  border-color: var(--kora-border) !important;
}
.sl-bar { background: var(--kora-accent) !important; }

/* --------------------------------------------------------------------------
   Match list
   -------------------------------------------------------------------------- */
.kora-matches-container {
  display: grid;
  gap: var(--kora-gap);
  direction: rtl;
  margin: 0 0 24px;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.kora-matches-container .match-container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  text-align: center;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.kora-matches-container .right-team,
.kora-matches-container .left-team,
.kora-matches-container .match-center {
  width: auto !important;
  float: none !important;
  overflow: visible;
  min-height: 0 !important;
}
.kora-matches-container .team-name { width: auto !important; }
.kora-matches-container .team-logo { overflow: visible; }
.kora-matches-container .team-logo img {
  margin: 0 !important;
  filter: none !important;
  transform: none !important;
}

.kora-matches-container .kora-match-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--kora-card);
  border: 1px solid var(--kora-border);
  border-radius: var(--kora-radius);
  box-shadow: var(--kora-shadow);
  text-decoration: none !important;
  color: var(--kora-text) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kora-matches-container .kora-match-card:hover,
.kora-matches-container .kora-match-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--kora-shadow-hover);
  border-color: color-mix(in srgb, var(--kora-accent) 40%, var(--kora-border));
}
.kora-matches-container .kora-match-card.is-locked {
  cursor: not-allowed;
}
.kora-matches-container .kora-match-card.is-locked .kora-card-main {
  cursor: not-allowed;
  opacity: .6;
}
.kora-matches-container .kora-match-card.is-locked:hover,
.kora-matches-container .kora-match-card.is-locked:focus-visible {
  transform: none;
  box-shadow: var(--kora-shadow);
}

.kora-matches-container .kora-match-card::before {
  content: '';
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--kora-idle);
  opacity: .95;
  z-index: 2;
}
.kora-matches-container .kora-match-card.is-live::before { background: var(--kora-live); }
.kora-matches-container .kora-match-card.is-soon::before { background: var(--kora-soon); }
.kora-matches-container .kora-match-card.is-not-started::before { background: var(--kora-idle); }
.kora-matches-container .kora-match-card.is-ended::before { background: var(--kora-ended); }

.kora-matches-container .match-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--kora-head);
  border-bottom: 1px solid var(--kora-border-soft);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--kora-muted);
  letter-spacing: .1px;
}
.kora-matches-container .match-league,
.kora-matches-container .match-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kora-matches-container .match-channel {
  margin-inline-start: auto;
  color: var(--kora-accent);
  font-weight: 600;
}
.kora-matches-container .match-league::before,
.kora-matches-container .match-channel::before {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.kora-matches-container .match-league::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E");
}
.kora-matches-container .match-channel::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='15' rx='2'/%3E%3Cpolyline points='17 2 12 7 7 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='15' rx='2'/%3E%3Cpolyline points='17 2 12 7 7 2'/%3E%3C/svg%3E");
}

.kora-matches-container .kora-card-main {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}
.kora-matches-container .kora-match-card .match-container,
.kora-matches-container .match-body {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px !important;
}

.kora-matches-container .right-team,
.kora-matches-container .left-team {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.kora-matches-container .team-logo {
  width: var(--kora-logo) !important;
  height: var(--kora-logo) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--kora-logo-bg) !important;
  border: 1px solid var(--kora-border) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(16, 21, 31, .18);
  padding: 0 !important;
  margin: 0 auto !important;
  transition: transform .22s ease;
}
.kora-matches-container .team-logo img,
.kora-matches-container .team-logo svg {
  width: 68% !important;
  height: 68% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
  border-radius: 0 !important;
}
.kora-matches-container .team-logo-fallback {
  font-size: 18px;
  font-weight: 800;
  color: #445;
}
.kora-matches-container .kora-match-card:hover .team-logo {
  transform: scale(1.07);
}
.kora-matches-container .team-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  text-align: center;
  color: var(--kora-text) !important;
  max-width: 140px;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.kora-matches-container .match-center {
  display: flex !important;
  justify-content: center;
  align-items: center !important;
}
.kora-matches-container .match-center-box,
.kora-matches-container .match-timing {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 7px !important;
  min-width: 108px;
  text-align: center;
  padding: 0 !important;
  margin: 0 !important;
}
.kora-matches-container .match-score,
.kora-matches-container .result {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1;
  letter-spacing: 1.5px !important;
  color: var(--kora-text) !important;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  margin: 0 !important;
}
.kora-matches-container .kora-match-card.is-not-started .match-score,
.kora-matches-container .kora-match-card.is-soon .match-score,
.kora-matches-container .kora-match-card.is-not-started .result,
.kora-matches-container .kora-match-card.is-soon .result {
  font-size: 19px !important;
  opacity: .35;
}
.kora-matches-container .match-time,
.kora-matches-container .match-time-display {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kora-muted) !important;
  font-variant-numeric: tabular-nums;
}

.kora-matches-container .match-status,
.kora-matches-container .date {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 3px 11px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.55;
  color: #fff !important;
  background: var(--kora-idle) !important;
  white-space: nowrap;
  border: 0 !important;
  margin: 0 !important;
  letter-spacing: .2px;
}
.kora-matches-container .match-status.status-not-started,
.kora-matches-container .date.comming-badge { background: var(--kora-idle) !important; }
.kora-matches-container .match-status.status-soon,
.kora-matches-container .date.soon { background: var(--kora-soon) !important; }
.kora-matches-container .match-status.status-ended,
.kora-matches-container .date.end-badge { background: var(--kora-ended) !important; }
.kora-matches-container .match-status.status-live,
.kora-matches-container .date.live {
  background: var(--kora-live) !important;
  animation: koraLivePulse 1.8s ease-out infinite;
  font-size: 11.5px !important;
  color: #fff !important;
}
.kora-matches-container .match-status.status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: koraBlink 1.1s ease-in-out infinite;
}

@keyframes koraLivePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kora-live) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--kora-live) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kora-live) 0%, transparent); }
}
@keyframes koraBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.kora-matches-container .kora-live-cta {
  display: none !important;
}

.kora-matches-container .kora-match-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 17, .42);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity .22s ease;
}
.kora-matches-container .kora-match-card:hover::after {
  opacity: 1;
}
.kora-matches-container .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.8);
  transition: opacity .22s ease, transform .28s cubic-bezier(.34, 1.45, .64, 1);
  z-index: 7;
  pointer-events: none;
}
.kora-matches-container .play-button::before {
  content: '';
  width: 0;
  height: 0;
  margin-inline-start: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #10151f;
}
.kora-matches-container .kora-match-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.kora-matches-container .match-info,
.kora-matches-container .overlay-match,
.kora-matches-container .text-match {
  display: none !important;
}

.kora-matches-container .no-matches-card {
  padding: 40px 16px;
  text-align: center;
  color: var(--kora-muted);
  background: var(--kora-card);
  border: 1px solid var(--kora-border);
  border-radius: var(--kora-radius);
}

@media (max-width: 600px) {
  .kora-matches-container { --kora-logo: 46px; --kora-gap: 10px; --kora-radius: 10px; }
  .kora-matches-container .match-head {
    padding: 7px 10px;
    font-size: 10.5px;
    gap: 8px;
  }
  .kora-matches-container .match-league,
  .kora-matches-container .match-channel { max-width: 48%; }
  .kora-matches-container .kora-match-card .match-container { padding: 12px 8px 10px !important; gap: 4px; }
  .kora-matches-container .team-name { font-size: 11.5px !important; max-width: 90px; }
  .kora-matches-container .match-center-box { min-width: 88px; gap: 5px; }
  .kora-matches-container .match-score,
  .kora-matches-container .result { font-size: 21px !important; }
  .kora-matches-container .play-button { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .kora-matches-container *,
  .kora-matches-container *::before,
  .kora-matches-container *::after {
    animation: none !important;
    transition: none !important;
  }
  .kora-matches-container .kora-match-card:hover { transform: none; }
}

/* ==========================================================================
   Single match / article / page — official broadcast layout
   ========================================================================== */
#main.section,
.main.section {
  margin-top: 12px !important;
  margin-bottom: 28px;
}
.coMatch {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  border-radius: 0 !important;
}

.sl-match-hero {
  background:
    radial-gradient(900px 280px at 80% -40%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(145deg, var(--kora-red-d) 0%, var(--kora-red) 55%, var(--kora-red-d) 100%) !important;
  border-radius: 14px !important;
  padding: 22px 18px 18px !important;
  margin-bottom: 14px !important;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--kora-red-d) 70%, #000);
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--kora-red) 55%, transparent);
}
.sl-match-hero::before,
.sl-match-hero::after { display: none !important; }
.sl-match-league {
  text-align: center;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.82) !important;
  letter-spacing: .4px !important;
  text-transform: none !important;
  margin-bottom: 14px !important;
}
.sl-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sl-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sl-team-logo {
  width: 76px !important;
  height: 76px !important;
  background: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  border: 2px solid rgba(255,255,255,.55);
}
.sl-team-logo img {
  width: 68% !important;
  height: 68% !important;
  object-fit: contain;
}
.sl-team-name {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-align: center;
  line-height: 1.35;
  text-shadow: none !important;
  max-width: 140px;
}
.sl-vs-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 96px;
}
.sl-score {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: 2px !important;
  direction: ltr;
  line-height: 1;
  text-shadow: none !important;
  font-variant-numeric: tabular-nums;
}
.sl-match-time {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #fff !important;
  direction: ltr;
  line-height: 1;
}
.sl-status-badge {
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  letter-spacing: .2px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.sl-status-badge.live,
.sl-status-badge.upcoming.live {
  background: #fff !important;
  color: var(--kora-live) !important;
}
.sl-status-badge.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--kora-live);
  animation: koraBlink 1.1s ease-in-out infinite;
}
.sl-status-badge.soon {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45) !important;
}
.sl-status-badge.upcoming {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.4) !important;
}
.sl-status-badge.end {
  background: rgba(0,0,0,.28) !important;
  color: rgba(255,255,255,.88) !important;
  border: 0 !important;
}

.blogpost,
.blog-posts,
.blog-post.hentry.item-post {
  background: transparent;
  box-shadow: none;
  border: 0;
}
/* سلسلة آباء البث: ممنوع القصّ (overflow/radius) */
.blogpost,
.blogpost .blog-posts,
.blogpost .item-post-wrap,
.blogpost .blog-post.hentry.item-post,
.blogpost .posts-body,
.blogpost .posts-content,
.blogpost #postsacs,
#postsacs {
  overflow: visible !important;
}
.blogpost {
  background: var(--kora-card);
  border: 1px solid var(--kora-border-soft);
  border-radius: 14px;
  box-shadow: var(--kora-shadow);
  padding: 18px 18px 20px;
  margin-bottom: 20px;
}
body.Night .blogpost {
  background: var(--kora-card);
  border-color: var(--kora-border);
}
.postTimestamp,
.posts-title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.post-title,
.posts-title .post-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  color: var(--kora-text) !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
.posts-body,
.posts-content,
#postsacs {
  color: var(--kora-text);
  font-size: 14.5px;
  line-height: 1.85;
}
.posts-content p,
#postsacs > p {
  color: var(--kora-muted) !important;
  margin: 0 0 14px !important;
  line-height: 1.85 !important;
  font-size: 14.5px !important;
}
.posts-content strong,
#postsacs strong { color: var(--kora-text); font-weight: 800; }

.blogpost .box-title,
.blog-post .box-title {
  margin: 22px 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.blogpost .box-title h2,
.blog-post .box-title h2,
.section-title-matches {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--kora-text) !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  background: var(--kora-head) !important;
  border: 1px solid var(--kora-border-soft) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
}
.blogpost .box-title h2::before,
.blog-post .box-title h2::before {
  content: '' !important;
  width: 3px !important;
  height: 16px !important;
  background: var(--kora-red) !important;
  border-radius: 2px !important;
  flex-shrink: 0;
}

.sl-match-info-card {
  margin: 18px 0 !important;
  background: var(--kora-card) !important;
  border: 1px solid var(--kora-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.sl-match-info-card .sl-info-row,
.sl-info-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--kora-border-soft) !important;
  background: transparent !important;
}
.sl-match-info-card .sl-info-row:last-child,
.sl-info-row:last-child { border-bottom: 0 !important; }
.sl-info-row > span:first-child { opacity: .7; width: 1.2em; text-align: center; }
.sl-info-row > span:nth-child(2) {
  font-weight: 700 !important;
  min-width: 110px !important;
  color: var(--kora-muted) !important;
  font-size: 12.5px !important;
}
.sl-info-row > span:nth-child(3) {
  color: var(--kora-text) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

.sl-stream-msg {
  text-align: center;
  padding: 16px 14px;
  border-radius: 10px;
  margin: 16px 0;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.sl-stream-msg.is-warn {
  background: color-mix(in srgb, var(--kora-live) 10%, #fff);
  color: color-mix(in srgb, var(--kora-live) 70%, #3a1010);
  border-color: color-mix(in srgb, var(--kora-live) 25%, transparent);
}
body.Night .sl-stream-msg.is-warn {
  background: color-mix(in srgb, var(--kora-live) 18%, #171b28);
  color: #ffc9c9;
}
.sl-stream-msg.is-info {
  background: var(--kora-head);
  color: var(--kora-muted);
  border-color: var(--kora-border-soft);
}
/*
 * غلاف البث — نسبة 16:9 حقيقية + هامش ثابت لشريط تحكم البلاير (تكبير/ملء الشاشة).
 * السبب في تغيير الطريقة القديمة (ارتفاع ثابت 500px على كل المقاسات):
 * على الموبايل يصبح العرض ~340px لكن الارتفاع يفضل 500px، فتتحول المساحة
 * لصندوق طويل وضيق لا يطابق نسبة الفيديو (16:9)، فيظهر الفيديو نفسه صغير
 * ومقصوص من الجوانب داخل هذا الصندوق، وتختفي أزرار التكبير لأنها بتترسم
 * برة المساحة المرئية الفعلية للفيديو.
 * الحل: نخلي ارتفاع الغلاف = نسبة العرض (56.25% = 16:9) + هامش ثابت بالبكسل
 * لشريط التحكم، فيبقى الفيديو بنفس نسبته الطبيعية على أي عرض شاشة،
 * والهامش الثابت يحمي الأزرار من القصّ.
 */
:root {
  --sl-stream-ratio: 56.25%;   /* 16:9 */
  --sl-stream-controls: 46px;  /* مساحة إضافية لشريط تحكم البلاير */
}
.sl-stream-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-top: calc(var(--sl-stream-ratio) + var(--sl-stream-controls)) !important;
  margin: 12px 0 16px;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-radius: 8px;
  overflow: visible !important;
  background: #0c0e16;
  box-shadow: none;
  transform: none !important;
  zoom: 1;
  isolation: isolate;
  z-index: 2;
}
.sl-stream-wrap iframe,
.blogpost iframe.sl-stream-iframe,
#postsacs iframe.sl-stream-iframe,
.blogpost .sl-stream-wrap iframe,
#postsacs .sl-stream-wrap iframe,
iframe.sl-stream-iframe,
#postsacs iframe.cf,
iframe.cf {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0c0e16;
  box-shadow: none !important;
  transform: none !important;
  zoom: 1 !important;
  object-fit: unset !important;
  vertical-align: top;
}
/* توافق قديم إن وُجد iframe بدون غلاف */
.blogpost > iframe:not(.sl-stream-iframe),
#postsacs > iframe:not(.sl-stream-iframe),
#postsacs iframe:not(.sl-stream-iframe):not(.cf) {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 220px !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 8px !important;
  margin: 12px 0 !important;
  background: #0c0e16;
  box-shadow: none !important;
  transform: none !important;
}

.sl-watch-btn-wrap { text-align: center; margin: 16px 0; }
.sl-watch-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--kora-live), color-mix(in srgb, var(--kora-live) 70%, #7a1010)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  padding: 12px 26px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--kora-live) 65%, transparent) !important;
  transition: transform .16s ease, filter .16s ease;
}
.sl-watch-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff !important;
}

.apc-share-box {
  margin: 22px 0 4px !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid var(--kora-border-soft) !important;
}
.apc-share-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--kora-muted);
  margin-bottom: 10px;
  letter-spacing: .2px;
}
.apc-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.apc-share-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  flex: 1;
  min-width: 96px;
  transition: transform .15s ease, opacity .15s ease;
}
.apc-share-btns a:hover { opacity: .9; transform: translateY(-1px); color: #fff !important; }

/* Generic pages + news articles */
.apc-page-wrap {
  max-width: var(--kora-content) !important;
  margin: 16px auto 28px !important;
  padding: 0 16px !important;
}
.apc-page-box {
  background: var(--kora-card) !important;
  border-radius: 14px !important;
  box-shadow: var(--kora-shadow) !important;
  border: 1px solid var(--kora-border-soft) !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
}
.apc-page-hero {
  background: linear-gradient(135deg, var(--kora-red-d), var(--kora-red)) !important;
  padding: 24px 18px 20px !important;
  text-align: center;
  color: #fff !important;
}
.apc-page-hero h1 {
  font-size: 21px !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
  line-height: 1.45 !important;
  color: #fff !important;
}
.apc-page-hero .apc-site-badge {
  display: inline-block;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.4) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.apc-page-btn-row {
  display: flex;
  justify-content: center;
  padding: 16px 14px 8px;
  gap: 10px;
}
.apc-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kora-red) !important;
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 10px !important;
  transition: filter .16s ease, transform .16s ease;
}
.apc-live-btn:hover { filter: brightness(1.06); color: #fff !important; transform: translateY(-1px); }
.apc-page-content {
  padding: 18px 18px 24px !important;
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  color: var(--kora-text) !important;
}
.apc-page-content p {
  margin-bottom: 14px !important;
  color: var(--kora-muted) !important;
}
.apc-page-content h2,
.apc-page-content h3 {
  border-right: 3px solid var(--kora-red) !important;
  padding-right: 10px !important;
  margin: 18px 0 10px !important;
  font-weight: 800 !important;
  color: var(--kora-text) !important;
  line-height: 1.45 !important;
}
.apc-page-content h2 { font-size: 17px !important; }
.apc-page-content h3 { font-size: 15px !important; }

@media (max-width: 600px) {
  .sl-match-hero { padding: 16px 10px 14px !important; border-radius: 12px !important; }
  .sl-team-logo { width: 62px !important; height: 62px !important; }
  .sl-team-name { font-size: 12px !important; max-width: 100px; }
  .sl-score { font-size: 26px !important; }
  .sl-match-time { font-size: 20px !important; }
  .sl-vs-box { min-width: 78px; }
  .blogpost { padding: 14px 12px 16px; border-radius: 12px; }
  .post-title, .posts-title .post-title { font-size: 16.5px !important; }
  :root {
    --sl-stream-controls: 42px; /* شريط تحكم أصغر شوية على الموبايل */
  }
  .sl-stream-wrap {
    overflow: visible !important;
    border-radius: 8px !important;
  }
  /* موبايل: الارتفاع بيتبع عرض الشاشة (16:9) + هامش الأزرار، مش رقم ثابت */
  .sl-stream-wrap iframe,
  .blogpost iframe.sl-stream-iframe,
  #postsacs iframe.sl-stream-iframe,
  iframe.sl-stream-iframe,
  #postsacs iframe.cf,
  iframe.cf {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
    position: absolute !important;
    display: block !important;
  }
  .blogpost > iframe:not(.sl-stream-iframe),
  #postsacs iframe:not(.sl-stream-iframe) {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    border-radius: 8px !important;
  }
  .apc-page-hero h1 { font-size: 18px !important; }
  .apc-page-content { padding: 14px 12px 18px !important; }
  .apc-share-btns a { min-width: 70px; font-size: 12px; padding: 8px 8px; }
}





/* تصغير حجم الفريم ليحتويه الشاشة بالكامل بدون قص */
.sl-stream-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    padding-top: calc(56.25% + 40px) !important; /* نسبة 16:9 + شريط التحكم */
    margin: 15px auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.sl-stream-wrap iframe,
.blogpost > iframe.sl-stream-iframe,
#postsacs > iframe.sl-stream-iframe,
iframe.sl-stream-iframe,
iframe.cf {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* للمقاسات الصغيرة جدا */
@media (max-width: 768px) {
    .sl-stream-wrap {
        width: 100% !important;
        padding-top: calc(56.25% + 45px) !important; 
        border-radius: 6px !important;
    }
}

/* ========================================================================== 
   LIVEHD CLEAN SINGLE v3.2 — mobile-first white match page
   Matches the approved reference: stadium card, exactly two text paragraphs,
   info card, share buttons, tags, compact related matches.
   ========================================================================== */

/* ---------- Header ---------- */
.apc-header{
  background:#fff !important;
  border-bottom:1px solid #eceff3 !important;
  box-shadow:0 2px 10px rgba(16,24,40,.05) !important;
  position:relative !important;
  top:auto !important;
}
.apc-hdr-inner{
  max-width:1120px !important;
  min-height:72px !important;
  height:72px !important;
  margin:0 auto !important;
  padding:8px 16px !important;
  display:grid !important;
  grid-template-columns:minmax(96px,1fr) auto minmax(96px,1fr) !important;
  align-items:center !important;
  gap:12px !important;
  direction:ltr !important;
}
.apc-hdr-actions{
  justify-self:start;
  display:flex;
  align-items:center;
  gap:9px;
}
.apc-ham,.apc-search-btn{
  width:42px !important;
  height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #e3e7ed !important;
  border-radius:11px !important;
  background:#fff !important;
  color:#101828 !important;
  box-shadow:0 2px 8px rgba(16,24,40,.04) !important;
  cursor:pointer;
}
.apc-ham svg,.apc-search-btn svg{width:22px;height:22px;}
.apc-logo{
  justify-self:center !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:1px !important;
  direction:rtl !important;
  min-width:128px;
}
.apc-logo a.kora-brand,
.apc-logo .kora-brand{
  min-width:0 !important;
  max-width:190px !important;
  width:auto !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:#111827 !important;
}
.apc-logo .kora-brand img{max-height:40px !important;width:auto !important;object-fit:contain !important;}
.apc-logo .site-name,.apc-logo .apc-logo-text{
  font-size:25px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:#101828 !important;
}
.apc-logo-tagline{
  display:block;
  color:#98a2b3;
  font-size:10.5px;
  line-height:1.2;
  white-space:nowrap;
}
.apc-live-head{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:104px;
  height:44px;
  padding:0 15px;
  border-radius:11px;
  background:#e5182a !important;
  color:#fff !important;
  font-size:13.5px;
  font-weight:800;
  direction:rtl;
  box-shadow:0 7px 16px -11px rgba(229,24,42,.8);
}
.apc-live-head:hover{color:#fff !important;filter:brightness(1.03);}
.apc-live-wave{font-size:17px;line-height:1;}
.apc-search-panel{
  display:none;
  max-width:720px;
  margin:0 auto;
  padding:0 16px 10px;
}
#apc-search-cb:checked ~ .apc-search-panel{display:block;}
.apc-search-form{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  align-items:center;
  direction:rtl;
}
.apc-search-form input{
  width:100%;height:42px;border:1px solid #dfe4ea;border-radius:9px;padding:0 13px;background:#fff;color:#111827;font-family:inherit;font-size:13px;
}
.apc-search-form button{
  height:42px;border:0;border-radius:9px;background:#b51818;color:#fff;padding:0 17px;font-family:inherit;font-weight:800;cursor:pointer;
}
.apc-search-close{width:42px;height:42px;border:1px solid #e3e7ed;border-radius:9px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#667085;background:#fff;}
.apc-fixed-menu{margin-top:8px !important;border-top:1px solid rgba(0,0,0,.06) !important;padding-top:8px !important;}

/* ---------- White single page ---------- */
body.single-post{
  background:#fff !important;
  color:#101828 !important;
}
body.single-post.Night{background:#fff !important;color:#101828 !important;}
body.single-post .kora-announce{display:none !important;}
body.single-post #main.section,
body.single-post .main.section{margin-top:14px !important;margin-bottom:24px !important;}
body.single-post .sl-single-container{max-width:900px !important;padding:0 14px !important;}
body.single-post .coMatch{margin-bottom:14px !important;}

/* ---------- Stadium match hero ---------- */
body.single-post .sl-match-hero{
  background:
    linear-gradient(90deg,rgba(48,0,0,.78),rgba(92,0,0,.54),rgba(48,0,0,.78)),
    url('../img/b.webp') center 58%/cover no-repeat !important;
  border:1px solid #8b1118 !important;
  border-radius:15px !important;
  box-shadow:0 8px 22px -16px rgba(70,0,0,.55) !important;
  padding:14px 20px 15px !important;
  margin:0 !important;
  min-height:248px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
body.single-post .sl-match-league{
  width:max-content;
  max-width:90%;
  margin:0 auto 11px !important;
  padding:5px 13px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:8px;
  background:rgba(0,0,0,.28);
  color:#fff !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.35;
  backdrop-filter:blur(3px);
}
body.single-post .sl-teams-row{gap:12px !important;}
body.single-post .sl-team{gap:8px !important;}
body.single-post .sl-team-logo{
  width:92px !important;height:92px !important;
  border-radius:50% !important;
  border:4px solid #fff !important;
  background:#fff !important;
  box-shadow:0 5px 18px rgba(0,0,0,.28) !important;
  padding:0 !important;
}
body.single-post .sl-team-logo img{width:100% !important;height:100% !important;object-fit:contain !important;border-radius:50%;}
body.single-post .sl-team-name{font-size:18px !important;font-weight:900 !important;color:#fff !important;max-width:170px;}
body.single-post .sl-vs-box{min-width:160px !important;gap:7px !important;}
body.single-post .sl-score{font-size:43px !important;letter-spacing:1px !important;color:#fff !important;}
body.single-post .sl-status-badge{
  min-width:112px;
  justify-content:center;
  padding:5px 14px !important;
  border-radius:8px !important;
  background:#d91d2b !important;
  border:1px solid rgba(255,255,255,.2) !important;
  color:#fff !important;
  font-size:12px !important;
}
body.single-post .sl-status-badge.live::before{background:#fff !important;}
body.single-post .sl-hero-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  margin-top:1px;
  color:#fff;
  font-size:12px;
  line-height:1.45;
  direction:rtl;
}

/* ---------- Article card: exactly the two template paragraphs ---------- */
body.single-post .blogpost{
  background:#fff !important;
  border:1px solid #e4e7ec !important;
  border-radius:14px !important;
  box-shadow:0 4px 18px rgba(16,24,40,.055) !important;
  padding:17px 18px 18px !important;
  margin:0 0 18px !important;
  overflow:visible !important;
}
body.single-post.Night .blogpost,
body.single-post.Night .sl-match-info-card{background:#fff !important;border-color:#e4e7ec !important;}
body.single-post .postTimestamp,body.single-post .posts-title{margin:0 0 10px !important;}
body.single-post .post-title{
  font-size:21px !important;
  line-height:1.5 !important;
  font-weight:900 !important;
  color:#111827 !important;
  margin:0 !important;
  text-align:right;
}
body.single-post .posts-content,
body.single-post #postsacs{color:#252b36 !important;font-size:16px !important;line-height:2 !important;}
body.single-post .posts-content p,
body.single-post #postsacs > p{
  color:#2c3440 !important;
  font-size:16px !important;
  line-height:2 !important;
  margin:0 0 15px !important;
  text-align:right;
}
body.single-post .posts-content strong,
body.single-post #postsacs strong{color:#111827 !important;font-weight:800 !important;}
body.single-post .sl-content-subtitle{margin:15px 0 7px !important;}
body.single-post .sl-content-subtitle h2{
  padding:0 11px 0 0 !important;
  border:0 !important;
  border-right:4px solid #a20f17 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#111827 !important;
  box-shadow:none !important;
  font-size:18px !important;
  line-height:1.55 !important;
}
body.single-post .sl-content-subtitle h2::before{display:none !important;}

/* ---------- Embedded stream stays inside article ---------- */
body.single-post .sl-stream-wrap{margin:14px 0 10px !important;border-radius:11px !important;background:#0a0d12 !important;box-shadow:0 5px 16px rgba(16,24,40,.10) !important;}
body.single-post .sl-stream-wrap iframe{border-radius:11px !important;}
body.single-post .sl-fullscreen-btn{
  width:100%;max-width:320px;height:42px;margin:0 auto 15px;display:flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid #dfe4ea;border-radius:9px;background:#fff;color:#344054;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;
}

/* ---------- Match info card ---------- */
/* عنوان بطاقة المباراة يأخذ نفس شكل ترويسة الفقرة تمامًا */
body.single-post .sl-card-title{margin:15px 0 7px !important;}
body.single-post .sl-card-title h2{
  padding:0 11px 0 0 !important;
  border:0 !important;
  border-right:4px solid #a20f17 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#111827 !important;
  box-shadow:none !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.55 !important;
  white-space:normal !important;
}
body.single-post .sl-card-title h2::before,
body.single-post .sl-card-title h2::after{display:none !important;content:none !important;}
body.single-post .sl-match-info-card{
  margin:0 0 12px !important;
  background:#fff !important;
  border:1px solid #dfe4ea !important;
  border-radius:11px !important;
  box-shadow:none !important;
}
body.single-post .sl-match-info-card .sl-info-row{
  display:grid !important;
  grid-template-columns:26px 118px 1fr !important;
  align-items:center !important;
  gap:7px !important;
  padding:9px 12px !important;
  min-height:43px;
  border-bottom:1px solid #eaecf0 !important;
  direction:rtl;
}
body.single-post .sl-info-row > span:first-child{width:26px !important;color:#111827;opacity:1 !important;font-size:16px;text-align:center;}
body.single-post .sl-info-row > span:nth-child(2){
  min-width:0 !important;color:#344054 !important;font-size:13px !important;font-weight:700 !important;text-align:right;
}
body.single-post .sl-info-row > span:nth-child(3){
  color:#111827 !important;font-size:13.5px !important;font-weight:600 !important;text-align:right;
}

/* ---------- Share ---------- */
body.single-post .apc-share-box{
  margin:10px 0 0 !important;
  padding:12px 0 0 !important;
  border-top:1px solid #eaecf0 !important;
}
body.single-post .apc-share-label{font-size:14px !important;font-weight:900 !important;color:#111827 !important;margin:0 0 9px !important;}
body.single-post .apc-share-btns{display:grid !important;grid-template-columns:repeat(4,1fr) !important;gap:8px !important;}
body.single-post .apc-share-btns a{height:42px !important;min-width:0 !important;border-radius:8px !important;font-size:13px !important;font-weight:700 !important;padding:0 8px !important;box-shadow:none !important;}
body.single-post .apc-share-fb{background:#1677ea !important;}
body.single-post .apc-share-tw{background:#0c1118 !important;}
body.single-post .apc-share-wa{background:#16c45b !important;}
body.single-post .apc-share-tg{background:#1da9df !important;}
body.single-post .sl-x-icon{font-size:19px;line-height:1;}

/* ---------- Tags ---------- */
body.single-post .sl-tags-section{margin-top:12px;padding:12px 0 0;border-top:1px solid #eaecf0;}
body.single-post .sl-inline-heading{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:900;color:#111827;margin-bottom:8px;}
body.single-post .post-tags-wrap{margin:0 !important;}
body.single-post .post-tags{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  margin:0 !important;
  padding:0 !important;
}
body.single-post .post-tags li{float:none !important;margin:0 !important;padding:0 !important;}
body.single-post .post-tags li a{
  display:inline-flex !important;align-items:center !important;min-height:32px !important;padding:4px 12px !important;
  border-radius:999px !important;background:#f2f4f7 !important;border:1px solid #eaecf0 !important;color:#344054 !important;
  font-size:12px !important;font-weight:600 !important;white-space:nowrap !important;
}

/* ---------- Related matches / real slider ---------- */
body.single-post .sl-related-wrap{margin:16px 0 0 !important;padding:0 !important;overflow:visible !important;}
body.single-post .sl-related-head{display:flex;align-items:center;justify-content:flex-start;margin:0 0 9px;}
body.single-post .sl-related-head h2{font-size:17px;line-height:1.4;font-weight:900;color:#111827;margin:0;}
body.single-post .sl-related-slider{position:relative;padding:0 30px;}
body.single-post .sl-related-grid{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:9px !important;
  overflow-x:auto !important;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:1px 0 5px !important;
  margin:0 !important;
  background:transparent !important;
  direction:rtl;
  touch-action:pan-x pan-y;
}
body.single-post .sl-related-grid::-webkit-scrollbar{display:none;}
body.single-post .apc-related-card{
  display:block;
  flex:0 0 calc((100% - 27px)/4);
  min-width:0;
  padding:9px 8px 10px;
  border:1px solid #e3e7ed;
  border-radius:10px;
  background:#fff;
  color:#111827 !important;
  box-shadow:none;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
body.single-post .sl-related-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:30px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #e3e7ed;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(16,24,40,.08);
  transition:.18s ease;
}
body.single-post .sl-related-prev{right:0;}
body.single-post .sl-related-next{left:0;}
body.single-post .sl-related-nav:hover{background:#f7f8fa;color:#e5182a;border-color:#d0d5dd;}
body.single-post .sl-related-nav:focus-visible{outline:2px solid #e5182a;outline-offset:2px;}
body.single-post .apc-related-league{
  min-height:28px;
  color:#667085;
  font-size:10.5px;
  font-weight:600;
  line-height:1.35;
  text-align:center;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
body.single-post .apc-related-teams{display:grid;grid-template-columns:1fr 48px 1fr;gap:5px;align-items:center;margin-top:6px;direction:rtl;}
body.single-post .apc-related-team{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;}
body.single-post .apc-related-team img{width:30px;height:30px;object-fit:contain;border-radius:50%;background:#fff;}
body.single-post .apc-related-team span{font-size:10px;font-weight:700;color:#344054;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.single-post .apc-related-mid{display:flex;flex-direction:column;align-items:center;gap:4px;}
body.single-post .apc-related-mid strong{font-size:11px;color:#111827;direction:ltr;}
body.single-post .apc-related-mid em{font-style:normal;font-size:9.5px;font-weight:800;background:#e5182a;color:#fff;border-radius:999px;padding:2px 8px;}
body.single-post footer,body.single-post .apc-footer{margin-top:18px;}

@media (max-width:700px){
  .apc-hdr-inner{
    height:64px !important;min-height:64px !important;
    grid-template-columns:86px minmax(118px,1fr) 88px !important;
    padding:6px 10px !important;gap:5px !important;
  }
  .apc-ham,.apc-search-btn{width:37px !important;height:37px !important;border-radius:9px !important;}
  .apc-ham svg,.apc-search-btn svg{width:20px;height:20px;}
  .apc-hdr-actions{gap:7px;}
  .apc-logo .kora-brand img{max-height:31px !important;max-width:128px !important;}
  .apc-logo .site-name,.apc-logo .apc-logo-text{font-size:21px !important;}
  .apc-logo-tagline{font-size:8.7px;}
  .apc-live-head{min-width:86px;height:38px;padding:0 9px;border-radius:9px;font-size:12px;gap:5px;}
  .apc-live-wave{font-size:14px;}

  body.single-post .sl-single-container{padding:0 10px !important;}
  body.single-post .sl-match-hero{min-height:214px;padding:12px 10px !important;border-radius:13px !important;}
  body.single-post .sl-match-league{font-size:11.5px !important;margin-bottom:9px !important;padding:4px 10px;}
  body.single-post .sl-team-logo{width:72px !important;height:72px !important;border-width:3px !important;}
  body.single-post .sl-team-name{font-size:14px !important;max-width:105px;}
  body.single-post .sl-vs-box{min-width:105px !important;gap:5px !important;}
  body.single-post .sl-score{font-size:34px !important;}
  body.single-post .sl-status-badge{min-width:92px;padding:4px 9px !important;font-size:10.5px !important;}
  body.single-post .sl-hero-meta{font-size:10.5px;line-height:1.35;}

  body.single-post .blogpost{padding:14px 12px 15px !important;border-radius:12px !important;}
  body.single-post .post-title{font-size:18px !important;line-height:1.55 !important;}
  body.single-post .posts-content,body.single-post #postsacs,
  body.single-post .posts-content p,body.single-post #postsacs > p{font-size:14.2px !important;line-height:1.95 !important;}
  body.single-post .sl-content-subtitle h2,body.single-post .sl-card-title h2{font-size:16px !important;padding-right:9px !important;}
  body.single-post .sl-match-info-card .sl-info-row{grid-template-columns:24px 94px 1fr !important;padding:8px 9px !important;min-height:41px;}
  body.single-post .sl-info-row > span:nth-child(2){font-size:12.5px !important;}
  body.single-post .sl-info-row > span:nth-child(3){font-size:12.8px !important;}
  body.single-post .apc-share-btns{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:6px !important;}
  body.single-post .apc-share-btns a{height:39px !important;font-size:11.5px !important;padding:0 4px !important;gap:4px !important;}
  body.single-post .apc-share-btns a svg{width:16px;height:16px;}
  body.single-post .sl-related-slider{padding:0 24px;}
  body.single-post .sl-related-grid{gap:8px !important;}
  body.single-post .apc-related-card{flex:0 0 168px;}
  body.single-post .sl-related-nav{width:25px;height:40px;border-radius:9px;font-size:23px;}
}

@media (max-width:390px){
  .apc-hdr-inner{grid-template-columns:79px minmax(108px,1fr) 79px !important;}
  .apc-ham,.apc-search-btn{width:35px !important;height:35px !important;}
  .apc-live-head{min-width:77px;padding:0 7px;font-size:11.3px;}
  .apc-logo-tagline{display:none;}
  body.single-post .sl-team-logo{width:66px !important;height:66px !important;}
  body.single-post .sl-team-name{font-size:13px !important;}
  body.single-post .sl-vs-box{min-width:96px !important;}
  body.single-post .sl-score{font-size:31px !important;}
  body.single-post .sl-hero-meta{font-size:10px;}
  body.single-post .apc-share-btns a{font-size:0 !important;}
  body.single-post .apc-share-btns a svg,body.single-post .apc-share-btns .sl-x-icon{font-size:18px !important;width:18px;height:18px;}
  body.single-post .apc-related-card{flex-basis:158px;}
}

/* ==========================================================================
   LiveHD7 look — matches list (tabs, filters, cards) + match page touches
   ========================================================================== */
:root{
  --lh-red:#d71f27;
  --lh-red-d:#b3161d;
  --lh-blue:#2f5bd3;
  --lh-text:#111827;
  --lh-muted:#667085;
  --lh-border:#e6e9ef;
  --lh-soft:#f3f5f8;
}

/* ---------- Panel ---------- */
body .kora-matches-panel{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important;}
body .kora-day-wrap{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:14px !important;margin:14px 0 18px !important;}
body .kora-day-wrap .screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* ---------- Day tabs (أمس / اليوم / غدا) ---------- */
body .kora-day-wrap ul.apc-tabs{
  display:grid !important;grid-template-columns:repeat(3,1fr) !important;gap:0 !important;
  width:100% !important;max-width:100% !important;margin:0 !important;padding:4px !important;
  background:var(--lh-soft) !important;border:1px solid var(--lh-border) !important;border-radius:999px !important;
  list-style:none !important;box-shadow:none !important;
}
body .kora-day-wrap ul.apc-tabs li{margin:0 !important;padding:0 !important;float:none !important;width:auto !important;border:0 !important;background:none !important;}
body .kora-day-wrap ul.apc-tabs li a{
  display:flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;
  height:44px !important;padding:0 10px !important;border-radius:999px !important;border:0 !important;
  background:transparent !important;color:#475467 !important;font-size:15px !important;font-weight:700 !important;
  box-shadow:none !important;text-decoration:none !important;transition:background .2s,color .2s;
}
body .kora-day-wrap ul.apc-tabs li a:hover{color:var(--lh-red) !important;}
body .kora-day-wrap ul.apc-tabs li a.apc-active{
  background:var(--lh-red) !important;color:#fff !important;box-shadow:0 6px 16px -6px rgba(215,31,39,.6) !important;
}
body .kora-day-wrap ul.apc-tabs li a::before,body .kora-day-wrap ul.apc-tabs li a::after{display:none !important;}

/* ---------- Filter bar (كل البطولات | بتوقيت مصر) ---------- */
.lh-filter-bar{display:flex;align-items:center;gap:12px;}
.lh-filter-sep{width:1px;height:28px;background:var(--lh-border);flex:0 0 auto;}
.lh-league-filter,
.lh-filter-bar .apc-tz-dd{flex:1 1 0;min-width:0;}
.lh-league-filter{
  position:relative;display:flex;align-items:center;gap:8px;height:46px;padding:0 14px;
  background:#fff;border:1px solid var(--lh-border);border-radius:12px;color:var(--lh-text);
  box-shadow:0 2px 8px rgba(16,24,40,.04);cursor:pointer;
}
.lh-league-filter select{
  flex:1;min-width:0;height:100%;border:0;background:transparent;font-family:inherit;font-size:14px;font-weight:700;
  color:var(--lh-text);outline:0;cursor:pointer;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left center;background-size:16px;padding-left:22px;
}
.lh-filter-bar .apc-tz-dd{display:block !important;}
.lh-filter-bar #apc-tz-btn{
  width:100%;height:46px;justify-content:space-between;padding:0 14px !important;
  border:1px solid var(--lh-border) !important;border-radius:12px !important;background:#fff !important;
  font-size:14px !important;font-weight:700;color:var(--lh-text);box-shadow:0 2px 8px rgba(16,24,40,.04);
}
.lh-filter-bar #apc-tz-btn-flag{order:-1;}
.lh-filter-bar #apc-tz-menu{inset-inline-end:auto !important;inset-inline-start:0;width:100%;}

/* ---------- Section header ---------- */
body .kora-matches-container .apc-section-header{
  display:flex !important;align-items:center !important;gap:8px !important;margin:6px 0 14px !important;
  padding:0 12px 0 0 !important;border:0 !important;border-right:4px solid var(--lh-red) !important;border-radius:0 !important;
  background:transparent !important;box-shadow:none !important;color:var(--lh-text) !important;
  font-size:20px !important;font-weight:900 !important;line-height:1.4 !important;
}
body .kora-matches-container .apc-section-header .apc-sec-icon{font-size:18px;}

/* ---------- Match card ---------- */
body .kora-matches-container{--kora-logo:64px;}
body .kora-matches-container .kora-match-card{
  background:#fff !important;border:1px solid var(--lh-border) !important;border-radius:16px !important;
  box-shadow:0 3px 14px rgba(16,24,40,.06) !important;margin:0 0 14px !important;overflow:hidden;
}
body .kora-matches-container .kora-match-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px -10px rgba(16,24,40,.22) !important;}
body .kora-matches-container .kora-match-card::after{display:none !important;}
body .kora-matches-container .kora-match-card::before{
  inset-block:0 !important;inset-inline-start:0 !important;width:4px !important;border-radius:0 !important;
  background:var(--lh-red) !important;opacity:1 !important;
}
body .kora-matches-container .kora-match-card.is-friendly::before{background:var(--lh-blue) !important;}
body .kora-matches-container .kora-card-main{position:relative;display:block;}

body .kora-matches-container .match-head{
  display:flex !important;align-items:center !important;padding:12px 16px 4px !important;
  background:transparent !important;border:0 !important;font-size:12.5px !important;color:var(--lh-muted) !important;
}
body .kora-matches-container .match-league:has(svg)::before,
body .kora-matches-container .match-channel:has(svg)::before{display:none !important;content:none !important;}
body .kora-matches-container .match-league{color:#475467 !important;font-weight:600 !important;gap:6px !important;}
body .kora-matches-container .match-channel{color:var(--lh-red-d) !important;font-weight:700 !important;gap:6px !important;margin-inline-start:auto !important;}
body .kora-matches-container .match-channel::before,
body .kora-matches-container .match-channel svg{color:var(--lh-red);}

body .kora-matches-container .kora-match-card .match-container{
  grid-template-columns:1fr auto 1fr !important;padding:6px 16px 16px !important;gap:8px !important;
}
body .kora-matches-container .team-logo{
  width:var(--kora-logo) !important;height:var(--kora-logo) !important;background:#fff !important;
  border:1px solid #eef0f4 !important;box-shadow:0 4px 14px rgba(16,24,40,.12) !important;
}
body .kora-matches-container .team-logo img{width:100% !important;height:100% !important;border-radius:50% !important;object-fit:cover;}
body .kora-matches-container .kora-match-card:hover .team-logo{transform:none;}
body .kora-matches-container .team-name{font-size:15px !important;font-weight:800 !important;color:var(--lh-text) !important;}

body .kora-matches-container .match-center-box{gap:6px !important;min-width:104px;}
body .kora-matches-container .match-status{
  padding:4px 14px !important;border-radius:8px !important;font-size:12px !important;font-weight:800 !important;
  background:#e3efff !important;color:#1565c0 !important;border:1px solid #b9d4fb !important;animation:none !important;
}
body .kora-matches-container .kora-match-card .match-status.status-not-started{background:#e3efff !important;color:#1565c0 !important;border-color:#b9d4fb !important;}
body .kora-matches-container .kora-match-card .match-status.status-soon{background:#fff1dd !important;color:#b45309 !important;border-color:#fcd9a8 !important;}
body .kora-matches-container .kora-match-card .match-status.status-live{background:var(--lh-red) !important;color:#fff !important;border-color:var(--lh-red) !important;}
body .kora-matches-container .kora-match-card .match-status.status-ended{background:#eceff3 !important;color:#344054 !important;border-color:#d7dce3 !important;}
body.Night .kora-matches-container .kora-match-card .match-status.status-not-started{background:#1e6fd9 !important;color:#fff !important;border-color:#1e6fd9 !important;}
body.Night .kora-matches-container .kora-match-card .match-status.status-soon{background:#d97706 !important;color:#fff !important;border-color:#d97706 !important;}
body.Night .kora-matches-container .kora-match-card .match-status.status-ended{background:#4b5563 !important;color:#f3f4f6 !important;border-color:#4b5563 !important;}
body .kora-matches-container .match-score{font-size:26px !important;font-weight:900 !important;color:var(--lh-text) !important;letter-spacing:4px !important;}
body .kora-matches-container .kora-match-card.is-not-started .match-score,
body .kora-matches-container .kora-match-card.is-soon .match-score{font-size:26px !important;opacity:1 !important;}
body .kora-matches-container .match-time{font-size:14px !important;font-weight:600 !important;color:var(--lh-muted) !important;}

body .kora-matches-container .play-button{display:none !important;}

@media (max-width:600px){
  body .kora-matches-container{--kora-logo:52px;}
  body .kora-matches-container .kora-match-card .match-container{padding:4px 10px 14px !important;}
  body .kora-matches-container .team-name{font-size:13px !important;max-width:92px;}
  body .kora-matches-container .match-score{font-size:22px !important;}
  body .kora-matches-container .kora-match-card.is-not-started .match-score,
  body .kora-matches-container .kora-match-card.is-soon .match-score{font-size:22px !important;}
  body .kora-matches-container .match-center-box{min-width:86px;}
  body .kora-matches-container .match-head{padding:10px 12px 2px !important;font-size:11.5px !important;}
  body .kora-day-wrap ul.apc-tabs li a{height:40px !important;font-size:14px !important;}
  .lh-league-filter,.lh-filter-bar #apc-tz-btn{height:42px;font-size:13px !important;}
  .lh-league-filter select{font-size:13px;}
  body .kora-matches-container .apc-section-header{font-size:18px !important;}
}

/* ---------- Match page touches ---------- */
body.single-post .sl-hero-meta span{display:inline-flex;align-items:center;gap:6px;}
body.single-post .sl-card-title h2{display:flex !important;align-items:center;gap:8px;}
body.single-post .sl-card-title h2 svg,
body.single-post .sl-inline-heading svg{color:var(--lh-red);flex:0 0 auto;}
body.single-post .apc-share-label{display:flex !important;align-items:center;gap:8px;}
body.single-post .apc-share-label svg{color:var(--lh-red);}
body.single-post .post-tags li a{
  border-radius:8px !important;background:#fff !important;border:1px solid #e4e7ec !important;
  color:#344054 !important;font-size:12.5px !important;min-height:34px !important;padding:4px 14px !important;
}
body.single-post .post-tags li a:hover{border-color:var(--lh-red) !important;color:var(--lh-red) !important;}

/* ---------- Header: menu+search right, night mode + LIVE left ---------- */
.apc-hdr-inner{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;}
.apc-hdr-actions{justify-self:end !important;display:flex;align-items:center;gap:9px;}
.apc-hdr-tools{justify-self:start;display:flex;align-items:center;gap:9px;}
.apc-mode-btn,.apc-live-badge{
  height:42px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #e3e7ed;border-radius:11px;background:#fff;color:#101828;
  box-shadow:0 2px 8px rgba(16,24,40,.04);cursor:pointer;font-family:inherit;padding:0;
}
.apc-mode-btn{width:42px;}
.apc-mode-btn svg{width:21px;height:21px;}
.apc-mode-btn .apc-ico-sun{display:none;}
body.Night .apc-mode-btn .apc-ico-sun{display:block;color:#f59e0b;}
body.Night .apc-mode-btn .apc-ico-moon{display:none;}
.apc-live-badge{
  gap:6px;padding:0 11px;color:#d71f27 !important;font-size:12.5px;font-weight:900;letter-spacing:.6px;
  direction:ltr;text-decoration:none !important;border-color:#f6c9cc;background:#fff5f5;
}
.apc-live-badge:hover{background:#d71f27;color:#fff !important;border-color:#d71f27;}
.apc-live-dot{position:relative;width:8px;height:8px;border-radius:50%;background:#e5182a;flex:0 0 auto;}
.apc-live-dot::after{
  content:'';position:absolute;inset:-4px;border-radius:50%;background:rgba(229,24,42,.45);
  animation:apcLivePing 1.4s ease-out infinite;
}
.apc-live-badge:hover .apc-live-dot{background:#fff;}
@keyframes apcLivePing{0%{transform:scale(.5);opacity:1}100%{transform:scale(1.6);opacity:0}}
#live{scroll-margin-top:16px;}
@media (max-width:700px){
  .apc-hdr-inner{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;padding:6px 10px !important;gap:6px !important;}
  .apc-hdr-actions,.apc-hdr-tools{gap:6px;}
  .apc-mode-btn{width:37px;height:37px;border-radius:9px;}
  .apc-mode-btn svg{width:19px;height:19px;}
  .apc-live-badge{height:37px;border-radius:9px;padding:0 8px;font-size:11.5px;gap:5px;}
}
@media (max-width:380px){
  .apc-mode-btn{width:34px;height:34px;}
  .apc-live-badge{height:34px;padding:0 6px;font-size:10.5px;}
  .apc-ham,.apc-search-btn{width:34px !important;height:34px !important;}
  .apc-logo{min-width:0 !important;}
  .apc-logo .kora-brand img{max-width:110px !important;}
}
@media (prefers-reduced-motion: reduce){.apc-live-dot::after{animation:none;}}

/* ---------- "مباريات أخرى" slider cards ---------- */
body.single-post .sl-related-slider{padding:0 38px !important;}
body.single-post .sl-related-grid,
body.single-post .albaflex.sl-related-grid{
  display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;
  overflow-x:auto !important;overflow-y:hidden !important;scroll-snap-type:x mandatory;
  gap:10px !important;padding:4px 2px 8px !important;
}
body.single-post .apc-related-card{
  flex:0 0 calc((100% - 30px)/4) !important;
  display:grid !important;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;
  align-items:center;justify-items:center;column-gap:6px;row-gap:6px;
  padding:10px 8px 9px !important;background:#fff !important;border:1px solid #e6e9ef !important;
  border-radius:12px !important;box-shadow:0 3px 10px rgba(16,24,40,.07) !important;
  direction:rtl;text-decoration:none !important;color:#111827 !important;
  transition:transform .18s ease,box-shadow .18s ease;
}
body.single-post .apc-related-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(16,24,40,.25) !important;}
body.single-post .apc-rc-logo{
  width:32px;height:32px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;
  background:#fff;box-shadow:0 1px 5px rgba(16,24,40,.18);
}
body.single-post .apc-rc-logo img{width:100%;height:100%;object-fit:cover;display:block;}
body.single-post .apc-rc-logo i{font-style:normal;font-size:13px;font-weight:800;color:#475467;}
body.single-post .apc-rc-time{font-size:13px;font-weight:900;color:#111827;direction:ltr;line-height:1;white-space:nowrap;}
body.single-post .apc-rc-name{
  font-size:10.5px;font-weight:700;color:#344054;max-width:100%;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.single-post .apc-rc-pill{
  font-style:normal;font-size:10px;font-weight:800;line-height:1.5;padding:1px 9px;border-radius:999px;
  background:#e5182a;color:#fff;white-space:nowrap;
}
body.single-post .apc-related-card.is-upcoming .apc-rc-pill{background:#e3efff;color:#1565c0;}
body.single-post .apc-related-card.is-ended .apc-rc-pill{background:#eceff3;color:#344054;}
body.single-post .sl-related-nav{
  width:34px !important;height:34px !important;border-radius:50% !important;background:#fff !important;
  border:1px solid #e3e7ed !important;color:#111827 !important;font-size:22px !important;font-weight:700;
  box-shadow:0 3px 10px rgba(16,24,40,.12) !important;padding-bottom:3px !important;
}
body.single-post .sl-related-nav:hover{color:#e5182a !important;}
@media (max-width:700px){
  body.single-post .sl-related-slider{padding:0 32px !important;}
  body.single-post .apc-related-card{flex:0 0 calc((100% - 20px)/2.3) !important;}
  body.single-post .sl-related-nav{width:30px !important;height:30px !important;font-size:20px !important;}
}

/* ---------- Header: logo fits between the side buttons ---------- */
.apc-hdr-inner{
  grid-template-columns:minmax(max-content,1fr) minmax(0,auto) minmax(max-content,1fr) !important;
  height:auto !important;min-height:72px !important;
}
.apc-hdr-tools{justify-self:start !important;}
.apc-hdr-actions{justify-self:end !important;}
.apc-logo{min-width:0 !important;max-width:100% !important;}
.apc-logo a.kora-brand,.apc-logo .kora-brand{max-width:100% !important;min-width:0 !important;}
.apc-logo .kora-brand img{max-width:100% !important;height:auto !important;}
.apc-logo .site-name,.apc-logo .apc-logo-text{
  display:block;font-size:clamp(15px,4.4vw,25px) !important;line-height:1.2 !important;
  white-space:normal !important;overflow:visible !important;text-overflow:clip !important;
  overflow-wrap:anywhere;text-align:center;max-width:100%;
}
@media (max-width:700px){
  .apc-hdr-inner{height:auto !important;min-height:60px !important;}
  .apc-logo .kora-brand img{max-height:36px !important;}
}

/* ---------- Header in Night mode ---------- */
body.Night .apc-header{background:#11151c !important;border-bottom-color:#232a35 !important;}
body.Night .apc-logo .site-name,body.Night .apc-logo .apc-logo-text{color:#f3f4f6 !important;}
body.Night .apc-ham,body.Night .apc-search-btn,body.Night .apc-mode-btn{
  background:#1b212b !important;border-color:#2c3542 !important;color:#f3f4f6 !important;
}
body.Night .apc-live-badge{background:#2a1416;border-color:#5c2227;color:#ff5a61 !important;}

/* ---------- Match cards: never blurred / faded ---------- */
body .kora-matches-container .kora-match-card,
body .kora-matches-container .kora-card-main,
body .kora-matches-container .kora-match-card *{filter:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;}
body .kora-matches-container .team-logo img,
body .kora-matches-container .team-logo img.lazy-load{opacity:1 !important;}
body .kora-matches-container .kora-match-card .kora-card-main{opacity:1 !important;}
body .kora-matches-container .kora-match-card.is-locked .kora-card-main{opacity:.88 !important;}
body .kora-matches-container .kora-match-card .match-status{opacity:1 !important;visibility:visible !important;text-indent:0 !important;}

/* ---------- Matches list in Night mode ---------- */
body.Night .kora-matches-container .kora-match-card{background:#161b22 !important;border-color:#2a313c !important;box-shadow:none !important;}
body.Night .kora-matches-container .kora-card-main,
body.Night .kora-matches-container .match-head,
body.Night .kora-matches-container .kora-match-card .match-container{background:transparent !important;border-color:transparent !important;}
body.Night .kora-matches-container .team-name,
body.Night .kora-matches-container .match-container .team-name,
body.Night .kora-matches-container .match-score,
body.Night .kora-matches-container .apc-section-header{color:#f3f4f6 !important;}
body.Night .kora-matches-container .match-league,
body.Night .kora-matches-container .match-time{color:#a8b0bd !important;}
body.Night .kora-matches-container .match-channel{color:#ff6b72 !important;}
body.Night .kora-matches-container .team-logo{border-color:#2a313c !important;}
body.Night .kora-day-wrap ul.apc-tabs{background:#161b22 !important;border-color:#2a313c !important;}
body.Night .kora-day-wrap ul.apc-tabs li a:not(.apc-active){color:#c9ced6 !important;}
body.Night .lh-league-filter,
body.Night .lh-filter-bar #apc-tz-btn{background:#161b22 !important;border-color:#2a313c !important;color:#f3f4f6 !important;}
body.Night .lh-league-filter select{color:#f3f4f6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");}
body.Night .lh-league-filter select option{background:#161b22;color:#f3f4f6;}

/* ==========================================================================
   v3.8 — score-board look: header nav, day head, league strips, ring clock
   ========================================================================== */
:root{
  --ys-teal:#12a17c;
  --ys-teal-d:#0c8465;
  --ys-bg:#f4f6f9;
  --ys-card:#ffffff;
  --ys-line:#e3e7ee;
  --ys-strip:#eceff4;
  --ys-text:#1f2733;
  --ys-muted:#6b7482;
  --ys-ring-off:#e3e9ee;
  --ys-blue:#4f7cff;
}
body.Night{
  --ys-bg:#0e1320;
  --ys-card:#161c2b;
  --ys-line:#232b3d;
  --ys-strip:#1c2335;
  --ys-text:#eef1f6;
  --ys-muted:#98a2b3;
  --ys-ring-off:#2a3346;
}
body{background:var(--ys-bg) !important;}

/* ---------- Header ---------- */
body .apc-header{
  background:var(--ys-card) !important;border-bottom:1px solid var(--ys-line) !important;
  box-shadow:0 1px 3px rgba(16,24,40,.04) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
}
.ys-hdr{
  max-width:var(--kora-content,1120px);margin:0 auto;padding:0 16px;height:68px;
  display:flex;align-items:center;gap:26px;
}
.ys-logo .kora-brand{display:flex;align-items:center;}
.ys-logo .apc-logo-text{font-size:20px !important;font-weight:900 !important;color:var(--ys-text) !important;white-space:nowrap;}
.ys-nav{display:flex;align-items:center;gap:22px;}
.ys-nav a{font-size:14.5px;font-weight:700;color:var(--ys-text);white-space:nowrap;transition:color .15s;}
.ys-nav a:hover,.ys-nav a.is-active{color:var(--ys-teal);}
.ys-search{
  margin-inline-start:auto;display:flex;align-items:center;gap:8px;width:230px;height:42px;padding:0 14px;
  background:#f1f3f7;border-radius:999px;color:var(--ys-muted);
}
.ys-search input{flex:1;min-width:0;border:0;background:transparent;outline:0;font:inherit;font-size:13.5px;color:var(--ys-text);}
.ys-search input::placeholder{color:#9aa3b1;}
.ys-hdr-end{display:flex;align-items:center;gap:8px;}
.ys-mode-btn{
  width:48px;height:42px;border:0;border-radius:13px;background:var(--ys-blue);color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 14px -6px rgba(79,124,255,.7);
}
.ys-mode-btn .apc-ico-sun{display:none;}
body.Night .ys-mode-btn .apc-ico-sun{display:block;}
body.Night .ys-mode-btn .apc-ico-moon{display:none;}
.ys-mob-only{display:none !important;}
body.Night .ys-search{background:#1f2638;}

/* ---------- Day head ---------- */
body .kora-day-wrap.ys-dayhead{
  display:flex !important;flex-direction:row !important;align-items:center !important;justify-content:space-between !important;
  gap:12px !important;margin:26px 0 16px !important;flex-wrap:wrap;
}
.ys-day-title{margin:0;font-size:18px;font-weight:800;color:var(--ys-teal);}
.ys-day-tools{display:flex;align-items:center;gap:12px;color:var(--ys-text);}
.ys-day-arrow{font-size:22px;line-height:1;font-weight:700;color:var(--ys-text);padding:0 2px;}
.ys-day-arrow:hover{color:var(--ys-teal);}
.ys-day-date{font-size:14px;font-weight:800;white-space:nowrap;}
.ys-day-ico{position:relative;display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:var(--ys-text);cursor:pointer;}
.ys-day-ico:hover{color:var(--ys-teal);}
.ys-filter select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit;}
.ys-day-tools .apc-tz-dd #apc-tz-btn{height:32px;padding:0 10px !important;border-radius:999px !important;border:1px solid var(--ys-line) !important;background:var(--ys-card) !important;color:var(--ys-text);font-size:12.5px !important;}

/* ---------- League strip ---------- */
body .ys-board{display:block;}
body .ys-board .ys-league{margin:0 0 22px;}
body .ys-board .ys-league-bar.apc-section-header{
  display:flex !important;align-items:center !important;gap:8px !important;margin:0 0 8px !important;
  padding:8px 12px !important;border:0 !important;border-radius:8px !important;
  background:var(--ys-strip) !important;color:var(--ys-text) !important;box-shadow:none !important;
  font-size:13px !important;font-weight:800 !important;line-height:1.4 !important;
}
.ys-league-ico{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--ys-card);color:var(--ys-teal);}
.ys-league-more{margin-inline-start:auto;color:var(--ys-muted);letter-spacing:1px;font-size:12px;}

/* ---------- Match card ---------- */
body .ys-board .kora-match-card{
  background:var(--ys-card) !important;border:1px solid var(--ys-line) !important;border-radius:10px !important;
  box-shadow:none !important;margin:0 0 8px !important;overflow:hidden;transform:none !important;
}
body .ys-board .kora-match-card::before,
body .ys-board .kora-match-card::after{display:none !important;}
body .ys-board .kora-match-card:hover{border-color:color-mix(in srgb,var(--ys-teal) 45%,var(--ys-line)) !important;box-shadow:0 6px 18px -12px rgba(16,24,40,.35) !important;}
body .ys-board .kora-match-card.is-locked{cursor:default;}

body .ys-board .ys-row{
  display:grid !important;grid-template-columns:minmax(0,1fr) 48px 124px 48px minmax(0,1fr);
  align-items:center;min-height:86px;padding:10px 18px;color:var(--ys-text);text-decoration:none;
}
body .ys-board .ys-team{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;}
body .ys-board .ys-row .team-logo{
  width:40px !important;height:40px !important;border:0 !important;border-radius:0 !important;
  background:transparent !important;box-shadow:none !important;display:flex;align-items:center;justify-content:center;transform:none !important;
}
body .ys-board .ys-row .team-logo img{width:100% !important;height:100% !important;object-fit:contain !important;border-radius:0 !important;}
body .ys-board .ys-row .team-logo-fallback{
  width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--ys-teal) 12%,var(--ys-card));color:var(--ys-teal);font-weight:900;
}
body .ys-board .ys-row .team-name{
  font-size:13px !important;font-weight:700 !important;color:var(--ys-text) !important;line-height:1.35 !important;
  max-width:100% !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;
}
body .ys-board .ys-goal{text-align:center;font-size:22px;font-weight:800;color:var(--ys-text);font-variant-numeric:tabular-nums;}
body .ys-board .ys-center{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;}

body .ys-board .ys-ring{
  --p:0;position:relative;width:56px;height:56px;border-radius:50%;
  background:conic-gradient(var(--ys-teal) calc(var(--p) * 1%),var(--ys-ring-off) 0);
  display:flex;align-items:center;justify-content:center;
}
body .ys-board .ys-ring::before{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--ys-card);}
body .ys-board .is-live .ys-ring::after{
  content:"";position:absolute;top:-3px;left:50%;width:4px;height:9px;border-radius:2px;background:#f5c518;transform:translateX(-50%);
}
body .ys-board .ys-row .ys-clock.match-time{
  position:relative;font-size:13px !important;font-weight:800 !important;color:var(--ys-text) !important;font-variant-numeric:tabular-nums;
  direction:ltr;unicode-bidi:isolate;
}
body .ys-board .kora-match-card .ys-center .ys-sub{
  padding:0 !important;border:0 !important;border-radius:0 !important;background:none !important;
  font-size:11px !important;font-weight:700 !important;color:var(--ys-muted) !important;line-height:1.4 !important;
}
body .ys-board .kora-match-card.is-live .ys-center .ys-sub{color:var(--ys-teal) !important;}
body .ys-board .kora-match-card.is-soon .ys-center .ys-sub{color:#d97706 !important;}
body .ys-board .ys-ch{font-size:10.5px;font-weight:700;color:var(--ys-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;}

body .ys-board .kora-match-card .ys-center .ys-sub::before,
body .ys-board .kora-match-card .ys-center .ys-sub::after{display:none !important;content:none !important;}
body.Night .ys-board .kora-match-card{background:var(--ys-card) !important;border-color:var(--ys-line) !important;}
body.Night .ys-board .kora-match-card .ys-center .ys-sub{background:none !important;border:0 !important;color:var(--ys-muted) !important;}
body.Night .ys-board .kora-match-card.is-live .ys-center .ys-sub{color:var(--ys-teal) !important;}
body.Night .ys-board .kora-match-card.is-soon .ys-center .ys-sub{color:#f59e0b !important;}
body.Night .ys-board .ys-league-bar.apc-section-header{background:var(--ys-strip) !important;color:var(--ys-text) !important;}
body.Night .ys-nav a{color:var(--ys-text);}
body.Night .ys-nav a:hover,body.Night .ys-nav a.is-active{color:var(--ys-teal);}

/* finished: compact single line */
body .ys-board .ys-compact .ys-row{grid-template-columns:minmax(0,1fr) 124px minmax(0,1fr);min-height:54px;padding:8px 18px;}
body .ys-board .ys-compact .ys-team{flex-direction:row;gap:10px;}
body .ys-board .ys-compact .ys-home{flex-direction:row-reverse;justify-content:flex-start;}
body .ys-board .ys-compact .ys-away{justify-content:flex-start;}
body .ys-board .ys-compact .ys-row .team-logo,
body .ys-board .ys-compact .ys-row .team-logo-fallback{width:30px !important;height:30px !important;}
body .ys-board .ys-compact .ys-center{gap:3px;}
body .ys-board .ys-pill{
  min-width:60px;padding:2px 12px;border-radius:999px;background:var(--ys-strip);
  font-size:13px;font-weight:800;color:var(--ys-text);text-align:center;font-variant-numeric:tabular-nums;
}

/* ---------- Mobile ---------- */
@media (max-width:860px){
  .ys-nav,.ys-search{display:none;}
  .ys-mob-only{display:flex !important;}
  .ys-hdr{height:60px;gap:10px;justify-content:space-between;}
  .ys-hdr-end{margin-inline-start:auto;}
  .ys-mode-btn{width:40px;height:38px;border-radius:11px;}
}
@media (max-width:560px){
  body .kora-day-wrap.ys-dayhead{margin:16px 0 12px !important;}
  .ys-day-title{font-size:15.5px;width:100%;}
  .ys-day-tools{width:100%;justify-content:space-between;gap:8px;}
  body .ys-board .ys-row{grid-template-columns:minmax(0,1fr) 30px 88px 30px minmax(0,1fr);padding:10px 8px;min-height:80px;}
  body .ys-board .ys-goal{font-size:19px;}
  body .ys-board .ys-ring{width:50px;height:50px;}
  body .ys-board .ys-row .team-name{font-size:12px !important;}
  body .ys-board .ys-row .team-logo,
  body .ys-board .ys-row .team-logo-fallback{width:34px !important;height:34px !important;}
  body .ys-board .ys-compact .ys-row{grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr);padding:8px;}
  body .ys-board .ys-compact .ys-team{gap:6px;}
  body .ys-board .ys-compact .ys-row .team-logo,
  body .ys-board .ys-compact .ys-row .team-logo-fallback{width:26px !important;height:26px !important;}
}

/* ==========================================================================
   v3.8 — match page (hero, tabs, article, info, share, related)
   ========================================================================== */
html body.single-post,
html body.single-post.Night{background:var(--ys-bg) !important;color:var(--ys-text) !important;}
body.single-post .ys-match{padding-top:18px;}
body.single-post .ys-match .sl-single-container{max-width:var(--kora-content,1120px) !important;}

/* ---------- Hero ---------- */
.ys-hero{
  background:var(--ys-card);border:1px solid var(--ys-line);border-radius:14px;overflow:hidden;margin:0 0 12px;
}
.ys-hero-strip{
  display:flex;align-items:center;gap:8px;padding:10px 16px;background:var(--ys-strip);
  font-size:13.5px;font-weight:800;color:var(--ys-text);
}
.ys-hero-date{margin-inline-start:auto;font-size:12.5px;font-weight:700;color:var(--ys-muted);white-space:nowrap;}
.ys-hero-body{
  display:grid;grid-template-columns:minmax(0,1fr) 64px 150px 64px minmax(0,1fr);align-items:center;
  padding:28px 24px 22px;
  background:
    radial-gradient(420px 160px at 50% 0,color-mix(in srgb,var(--ys-teal) 9%,transparent),transparent 70%),
    var(--ys-card);
}
.ys-hero-team{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;}
.ys-hero-logo{width:84px;height:84px;display:flex;align-items:center;justify-content:center;}
.ys-hero-logo img{width:100%;height:100%;object-fit:contain;}
.ys-hero-logo .team-logo-fallback{
  width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--ys-teal) 12%,var(--ys-card));color:var(--ys-teal);font-size:30px;font-weight:900;
}
.ys-hero-name{font-size:17px;font-weight:800;color:var(--ys-text);text-align:center;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ys-hero-goal{text-align:center;font-size:38px;font-weight:900;color:var(--ys-text);font-variant-numeric:tabular-nums;line-height:1;}
.ys-hero-center{display:flex;flex-direction:column;align-items:center;gap:8px;}
.ys-ring{
  --p:0;position:relative;width:56px;height:56px;border-radius:50%;
  background:conic-gradient(var(--ys-teal) calc(var(--p) * 1%),var(--ys-ring-off) 0);
  display:flex;align-items:center;justify-content:center;
}
.ys-ring::before{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--ys-card);}
.ys-ring .ys-clock{position:relative;font-weight:800;color:var(--ys-text);font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;}
.ys-ring-lg{width:92px;height:92px;}
.ys-ring-lg::before{inset:5px;}
.ys-ring-lg .ys-clock{font-size:20px;}
.ys-hero.is-live .ys-ring-lg::after{
  content:"";position:absolute;top:-4px;left:50%;width:5px;height:12px;border-radius:3px;background:#f5c518;transform:translateX(-50%);
}
.ys-hero.is-end .ys-ring-lg{background:conic-gradient(var(--ys-muted) 100%,var(--ys-ring-off) 0);}
.ys-hero-sub{font-size:13px;font-weight:800;color:var(--ys-muted);}
.ys-hero.is-live .ys-hero-sub{color:var(--ys-teal);}
.ys-hero.is-soon .ys-hero-sub{color:#d97706;}
.ys-hero-meta{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:12px 16px 16px;border-top:1px solid var(--ys-line);
}
.ys-hero-meta span{
  display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--ys-strip);
  font-size:12.5px;font-weight:700;color:var(--ys-text);
}
.ys-hero-meta svg{color:var(--ys-teal);flex:0 0 auto;}

/* ---------- Section tabs ---------- */
.ys-tabs{
  display:flex;gap:4px;margin:0 0 14px;padding:4px;background:var(--ys-card);border:1px solid var(--ys-line);border-radius:12px;
  overflow-x:auto;scrollbar-width:none;
}
.ys-tabs::-webkit-scrollbar{display:none;}
.ys-tabs a{
  flex:1 1 0;min-width:max-content;text-align:center;padding:9px 14px;border-radius:9px;
  font-size:14px;font-weight:800;color:var(--ys-muted);white-space:nowrap;transition:background .15s,color .15s;
}
.ys-tabs a:hover{color:var(--ys-teal);}
.ys-tabs a.is-active{background:var(--ys-teal);color:#fff;}

/* ---------- Article card ---------- */
body.single-post .ys-match .blogpost{
  background:var(--ys-card) !important;border:1px solid var(--ys-line) !important;border-radius:14px !important;
  box-shadow:none !important;padding:20px 22px !important;
}
body.single-post .ys-match .post-title{color:var(--ys-text) !important;font-size:20px !important;}
body.single-post .ys-match .posts-content,
body.single-post .ys-match #postsacs,
body.single-post .ys-match .posts-content p,
body.single-post .ys-match #postsacs > p{color:color-mix(in srgb,var(--ys-text) 88%,var(--ys-muted)) !important;font-size:15px !important;}
body.single-post .ys-match .posts-content strong,
body.single-post .ys-match #postsacs strong{color:var(--ys-text) !important;}
body.single-post .ys-match .sl-content-subtitle h2,
body.single-post .ys-match .sl-card-title h2{
  border-right-color:var(--ys-teal) !important;color:var(--ys-text) !important;font-size:17px !important;
  display:flex !important;align-items:center;gap:8px;
}
body.single-post .ys-match .sl-card-title h2 svg{color:var(--ys-teal);}

/* stream */
.ys-stream-head{
  display:flex;align-items:center;gap:8px;margin:16px 0 0;padding:10px 14px;border-radius:11px 11px 0 0;
  background:var(--ys-strip);font-size:14px;font-weight:800;color:var(--ys-text);
}
.ys-live-dot{width:9px;height:9px;border-radius:50%;background:#e02424;box-shadow:0 0 0 4px rgba(224,36,36,.18);}
body.single-post .ys-match .ys-stream-head + .sl-stream-wrap{margin-top:0 !important;border-radius:0 0 11px 11px !important;}
body.single-post .ys-match .ys-stream-head + .sl-stream-wrap iframe{border-radius:0 0 11px 11px !important;}
body.single-post .ys-match .sl-fullscreen-btn{
  border-color:var(--ys-line);background:var(--ys-card);color:var(--ys-text);border-radius:999px;
}
body.single-post .ys-match .sl-fullscreen-btn:hover{border-color:var(--ys-teal);color:var(--ys-teal);}

/* info card */
body.single-post .ys-match .sl-match-info-card{
  background:var(--ys-card) !important;border:1px solid var(--ys-line) !important;border-radius:12px !important;overflow:hidden;
}
body.single-post .ys-match .sl-match-info-card .sl-info-row{border-bottom-color:var(--ys-line) !important;}
body.single-post .ys-match .sl-match-info-card .sl-info-row:nth-child(odd){background:color-mix(in srgb,var(--ys-strip) 55%,transparent);}
body.single-post .ys-match .sl-match-info-card .sl-info-row:last-child{border-bottom:0 !important;}
body.single-post .ys-match .sl-info-row > span:nth-child(2){color:var(--ys-muted) !important;}
body.single-post .ys-match .sl-info-row > span:nth-child(3){color:var(--ys-text) !important;font-weight:800 !important;}

/* share + tags */
body.single-post .ys-match .apc-share-box,
body.single-post .ys-match .sl-tags-section{border-top-color:var(--ys-line) !important;}
body.single-post .ys-match .apc-share-label,
body.single-post .ys-match .sl-inline-heading{color:var(--ys-text) !important;}
body.single-post .ys-match .apc-share-btns a{border-radius:999px !important;color:#fff !important;}
body.single-post .ys-match .post-tags li a{background:var(--ys-strip) !important;border-color:var(--ys-line) !important;color:var(--ys-text) !important;}
body.single-post .ys-match .post-tags li a:hover{border-color:var(--ys-teal) !important;color:var(--ys-teal) !important;}

/* related */
body.single-post .ys-match .sl-related-head h2{color:var(--ys-text);font-size:16px;}
body.single-post .ys-match .apc-related-card{
  background:var(--ys-card) !important;border:1px solid var(--ys-line) !important;border-radius:10px !important;box-shadow:none !important;
}
body.single-post .ys-match .apc-related-card:hover{border-color:color-mix(in srgb,var(--ys-teal) 45%,var(--ys-line)) !important;transform:none;}
body.single-post .ys-match .apc-rc-logo{background:transparent;box-shadow:none;border-radius:0;}
body.single-post .ys-match .apc-rc-logo img{object-fit:contain;}
body.single-post .ys-match .apc-rc-time,
body.single-post .ys-match .apc-rc-name{color:var(--ys-text);}
body.single-post .ys-match .apc-rc-pill{background:color-mix(in srgb,var(--ys-teal) 14%,var(--ys-card));color:var(--ys-teal);}
body.single-post .ys-match .apc-related-card.is-upcoming .apc-rc-pill{background:var(--ys-strip);color:var(--ys-muted);}
body.single-post .ys-match .apc-related-card.is-ended .apc-rc-pill{background:var(--ys-strip);color:var(--ys-text);}
body.single-post .ys-match .sl-related-nav{background:var(--ys-card) !important;border-color:var(--ys-line) !important;color:var(--ys-text) !important;box-shadow:none !important;}
body.single-post .ys-match .sl-related-nav:hover{color:var(--ys-teal) !important;border-color:var(--ys-teal) !important;}

/* night: undo legacy white article */
body.single-post.Night .ys-match .blogpost,
body.single-post.Night .ys-match .sl-match-info-card{background:var(--ys-card) !important;border-color:var(--ys-line) !important;}

@media (max-width:640px){
  body.single-post .ys-match{padding-top:12px;}
  .ys-hero-body{grid-template-columns:minmax(0,1fr) 36px 96px 36px minmax(0,1fr);padding:20px 10px 16px;}
  .ys-hero-logo,.ys-hero-logo .team-logo-fallback{width:60px;height:60px;}
  .ys-hero-logo .team-logo-fallback{font-size:22px;}
  .ys-hero-name{font-size:13.5px;}
  .ys-hero-goal{font-size:28px;}
  .ys-ring-lg{width:74px;height:74px;}
  .ys-ring-lg .ys-clock{font-size:16px;}
  .ys-hero-sub{font-size:11.5px;}
  .ys-hero-strip{padding:9px 12px;font-size:12.5px;}
  .ys-hero-meta{gap:6px;padding:10px 10px 12px;}
  .ys-hero-meta span{font-size:11.5px;padding:4px 10px;}
  .ys-tabs a{font-size:13px;padding:8px 10px;}
  body.single-post .ys-match .blogpost{padding:14px 12px !important;}
}

/* =====================================================
   v3.9 — أقسام الأخبار والترتيب والانتقالات
   ===================================================== */
.ys-league-links{margin-inline-start:auto;display:flex;gap:14px;font-size:12.5px;font-weight:700;}
.ys-league-links a{color:var(--ys-muted) !important;}
.ys-league-links a:hover{color:var(--ys-teal) !important;}

body .ys-page{max-width:var(--kora-content,1120px);margin:24px auto 40px;padding:0 16px;display:flex;flex-direction:column;gap:16px;color:var(--ys-text);}
body .ys-page a{text-decoration:none;}
body .ys-page img{max-width:none;}
.ys-card-panel{background:var(--ys-card);border:1px solid var(--ys-line);border-radius:14px;overflow:hidden;}
.ys-phead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--ys-line);}
.ys-phead>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
body .ys-page .ys-phead h1{margin:0 !important;font-size:22px !important;font-weight:900 !important;color:var(--ys-text) !important;border:0 !important;padding:0 !important;background:none !important;}
.ys-phead-sub{font-size:13px;font-weight:700;color:var(--ys-muted);}
.ys-pbody{padding:16px 18px 20px;}
.ys-sec-head{display:flex;align-items:center;gap:8px;margin:20px 0 12px;}
.ys-sec-head:first-child{margin-top:0;}
body .ys-page .ys-sec-head h2{margin:0 !important;padding:0 0 0 0 !important;font-size:16px !important;font-weight:800 !important;color:var(--ys-text) !important;border:0 !important;background:none !important;}
.ys-sec-head h2::before{content:"";display:inline-block;width:4px;height:16px;border-radius:2px;background:var(--ys-teal);margin-inline-end:8px;vertical-align:-2px;}
.ys-count{min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--ys-strip);color:var(--ys-muted);font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;}
.ys-empty{margin:0;padding:30px 18px;text-align:center;color:var(--ys-muted);font-weight:700;}
.ys-fallback{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--ys-strip);color:var(--ys-muted);font-style:normal;font-weight:800;font-size:13px;flex:none;}

/* entity grid (بطولات / هدافون) */
.ys-ent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;}
.ys-ent{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--ys-line);border-radius:12px;background:var(--ys-card);color:var(--ys-text) !important;transition:border-color .15s,transform .15s;}
a.ys-ent:hover{border-color:var(--ys-teal);transform:translateY(-1px);}
.ys-ent-rank{flex:none;width:26px;height:26px;border-radius:8px;background:var(--ys-strip);color:var(--ys-muted);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;}
.ys-ent img{width:38px;height:38px;object-fit:contain;flex:none;}
.ys-ent img.is-photo{border-radius:50%;object-fit:cover;background:var(--ys-strip);}
.ys-ent-lines{display:flex;flex-direction:column;min-width:0;flex:1;}
.ys-ent-lines strong{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ys-ent-lines small{font-size:12px;color:var(--ys-muted);}
.ys-ent-count{font-size:18px;font-weight:900;color:var(--ys-teal);}

/* رأس البطولة */
.ys-ent-head{display:flex;align-items:center;gap:16px;padding:18px;}
.ys-ent-head img{width:72px;height:72px;object-fit:contain;}
.ys-eyebrow{margin:0 0 2px;font-size:12.5px;font-weight:700;color:var(--ys-muted);}
body .ys-page .ys-ent-head h1{margin:0 !important;font-size:24px !important;font-weight:900 !important;color:var(--ys-text) !important;border:0 !important;padding:0 !important;background:none !important;}
.ys-back{display:inline-block;margin-top:6px;font-size:12.5px;font-weight:700;color:var(--ys-teal) !important;}

.ys-ptabs{display:flex;gap:4px;padding:0 12px;border-bottom:1px solid var(--ys-line);overflow-x:auto;}
.ys-ptabs button{border:0;background:none;font:inherit;font-size:14px;font-weight:800;color:var(--ys-muted);padding:14px 12px;border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap;}
.ys-ptabs button.is-active{color:var(--ys-teal);border-bottom-color:var(--ys-teal);}
.ys-tab-panel{padding:16px 18px 20px;}

/* جدول الترتيب */
.ys-table-wrap{overflow-x:auto;border:1px solid var(--ys-line);border-radius:12px;}
body .ys-page table.ys-table{width:100%;border-collapse:collapse !important;margin:0 !important;font-size:13.5px;background:none !important;border:0 !important;}
body .ys-page .ys-table th,body .ys-page .ys-table td{padding:10px 8px !important;text-align:center !important;border:0 !important;border-bottom:1px solid var(--ys-line) !important;background:none !important;color:var(--ys-text) !important;white-space:nowrap;}
body .ys-page .ys-table thead th{background:var(--ys-strip) !important;color:var(--ys-muted) !important;font-size:12px;font-weight:800;}
body .ys-page .ys-table tbody tr:last-child td{border-bottom:0 !important;}
body .ys-page .ys-table tbody tr:hover td{background:color-mix(in srgb,var(--ys-teal) 6%,transparent) !important;}
body .ys-page .ys-table .ys-col-team{text-align:start !important;width:100%;}
.ys-col-rank span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:7px;font-weight:800;background:var(--z,transparent);color:inherit;}
.ys-col-rank[style] span{color:#fff;}
.ys-tteam{display:flex;align-items:center;gap:10px;font-weight:700;}
.ys-tteam img{width:24px;height:24px;object-fit:contain;}
.ys-col-pts b{font-weight:900;color:var(--ys-teal);}

/* الانتقالات */
.ys-tr-list{display:flex;flex-direction:column;border:1px solid var(--ys-line);border-radius:12px;overflow:hidden;}
.ys-tr{display:grid;grid-template-columns:42px minmax(120px,1fr) minmax(0,2fr) 120px;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid var(--ys-line);}
.ys-tr:last-child{border-bottom:0;}
.ys-tr:hover{background:color-mix(in srgb,var(--ys-teal) 5%,transparent);}
.ys-tr-photo img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--ys-strip);display:block;}
.ys-tr-player{display:flex;flex-direction:column;min-width:0;}
.ys-tr-player strong{font-size:14.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ys-tr-player small{font-size:12px;color:var(--ys-muted);direction:ltr;text-align:right;}
.ys-tr-route{display:flex;align-items:center;gap:10px;min-width:0;}
.ys-club{display:flex;align-items:center;gap:7px;min-width:0;flex:1;font-size:13px;font-weight:700;}
.ys-club img{width:22px;height:22px;object-fit:contain;flex:none;}
.ys-club span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ys-tr-arrow{flex:none;color:var(--ys-teal);display:flex;}
.ys-tr-tag{display:flex;flex-direction:column;align-items:flex-end;text-align:left;}
.ys-tr-tag b{font-size:13.5px;font-weight:900;color:var(--ys-teal);direction:ltr;}
.ys-tr-tag small{font-size:11.5px;color:var(--ys-muted);}
.ys-pager{display:flex;justify-content:center;gap:10px;margin-top:18px;}
.ys-btn{display:inline-flex;align-items:center;height:40px;padding:0 20px;border-radius:999px;background:var(--ys-teal);color:#fff !important;font-weight:800;font-size:14px;}
.ys-btn:hover{background:var(--ys-teal-d,#0e8a69);}

/* الأخبار */
.ys-news-hero{display:grid;grid-template-columns:1.35fr 1fr;border:1px solid var(--ys-line);border-radius:14px;overflow:hidden;color:var(--ys-text) !important;}
.ys-news-img{display:block;overflow:hidden;background:var(--ys-strip);aspect-ratio:16/9;}
.ys-news-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s;}
.ys-news-hero:hover img,.ys-news-card:hover img{transform:scale(1.04);}
.ys-news-body{display:flex;flex-direction:column;gap:8px;padding:14px;min-width:0;}
.ys-news-hero .ys-news-body{justify-content:center;padding:20px 22px;}
body .ys-page .ys-news-hero h2{margin:0 !important;font-size:22px !important;line-height:1.5 !important;font-weight:900 !important;color:var(--ys-text) !important;border:0 !important;padding:0 !important;background:none !important;}
.ys-news-body small{font-size:13px;line-height:1.7;color:var(--ys-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.ys-news-body time{font-size:12px;font-weight:700;color:var(--ys-teal);}
.ys-news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;}
.ys-news-card{display:flex;flex-direction:column;border:1px solid var(--ys-line);border-radius:12px;overflow:hidden;background:var(--ys-card);color:var(--ys-text) !important;transition:border-color .15s;}
.ys-news-card:hover{border-color:var(--ys-teal);}
.ys-news-card strong{font-size:14.5px;line-height:1.6;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.ys-news-card small{-webkit-line-clamp:2;}
.ys-source{margin:18px 0 0;font-size:12px;color:var(--ys-muted);text-align:center;}
.ys-source a{color:var(--ys-teal) !important;}

body.Night .ys-page,body.Night .ys-page .ys-news-hero h2,body.Night .ys-page .ys-phead h1,body.Night .ys-page .ys-ent-head h1,body.Night .ys-page .ys-sec-head h2{color:var(--ys-text) !important;}

@media (max-width:760px){
  .ys-news-hero{grid-template-columns:1fr;}
  body .ys-page .ys-news-hero h2{font-size:18px !important;}
  .ys-tr{grid-template-columns:42px minmax(0,1fr) auto;row-gap:8px;}
  .ys-tr-route{grid-column:1 / -1;order:4;padding-inline-start:56px;}
  .ys-league-links{gap:10px;font-size:12px;}
  body .ys-page .ys-table .ys-col-x{display:none;}
}
@media (max-width:560px){
  body .ys-page{padding:0 10px;margin-top:14px;gap:12px;}
  .ys-phead,.ys-pbody,.ys-tab-panel{padding-inline:12px;}
  .ys-ent-grid,.ys-news-grid{grid-template-columns:1fr;}
  .ys-ent-head img{width:56px;height:56px;}
  body .ys-page .ys-table th,body .ys-page .ys-table td{padding:9px 5px !important;font-size:12.5px;}
}
/* =====================================================
   v3.9 — تبويبات صفحة المباراة
   ===================================================== */
.ys-tabs button{
  flex:1 1 0;min-width:max-content;text-align:center;padding:9px 14px;border-radius:9px;border:0;background:none;cursor:pointer;
  font:inherit;font-size:14px;font-weight:800;color:var(--ys-muted);white-space:nowrap;transition:background .15s,color .15s;
}
.ys-tabs button:hover{color:var(--ys-teal);}
.ys-tabs button.is-active{background:var(--ys-teal);color:#fff;}
[data-ys-panel][hidden],[data-ys-side-panel][hidden]{display:none !important;}
body.single-post .ys-match h1.ys-match-h1{margin:0 0 12px !important;padding:0 !important;border:0 !important;background:none !important;font-size:16px !important;line-height:1.6 !important;font-weight:800 !important;color:var(--ys-text) !important;}
.ys-mpanel-live .ys-stream-head{margin-top:0;}
.ys-mcard{background:var(--ys-card);border:1px solid var(--ys-line);border-radius:14px;padding:16px 18px;margin:0 0 14px;color:var(--ys-text);}
.ys-mcard .ys-sec-head h2{margin:0 !important;padding:0 !important;font-size:16px !important;font-weight:800 !important;color:var(--ys-text) !important;border:0 !important;background:none !important;}
.ys-mcard .ys-empty{padding:22px 10px;}
body.single-post .ys-match .ys-mpanel .blogpost{margin-top:0 !important;}

.ys-info-rows{display:flex;flex-direction:column;border:1px solid var(--ys-line);border-radius:12px;overflow:hidden;}
.ys-info-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid var(--ys-line);font-size:14px;}
.ys-info-row:last-child{border-bottom:0;}
.ys-info-row:nth-child(even){background:color-mix(in srgb,var(--ys-strip) 55%,transparent);}
.ys-info-row span{color:var(--ys-muted);font-weight:700;}
.ys-info-row strong{font-weight:800;text-align:left;}
.ys-info-row.is-head{background:var(--ys-strip) !important;}
.ys-info-row.is-head strong{color:var(--ys-muted);}

.ys-h2h{padding:4px 0;}
.ys-h2h-bar{display:grid;gap:4px;height:10px;}
.ys-h2h-bar i{display:block;border-radius:999px;}
.ys-h2h-bar .home,.ys-h2h-legend .home::before{background:var(--ys-teal);}
.ys-h2h-bar .draw,.ys-h2h-legend .draw::before{background:#9aa3b1;}
.ys-h2h-bar .away,.ys-h2h-legend .away::before{background:var(--ys-blue);}
.ys-h2h-legend{display:flex;justify-content:space-between;margin-top:10px;font-size:13px;font-weight:800;}
.ys-h2h-legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline-end:6px;}

.ys-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.ys-form-team{border:1px solid var(--ys-line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;}
.ys-form-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.ys-form-name{display:flex;align-items:center;gap:8px;font-size:14px;}
.ys-form-name img{width:26px;height:26px;object-fit:contain;}
.ys-form-tally{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--ys-muted);}
.ys-form-tally b{font-size:13px;margin-inline-start:6px;}
.ys-form-tally .win{color:#16a34a;}.ys-form-tally .draw{color:#9aa3b1;}.ys-form-tally .lose{color:#e02424;}
.ys-form-dots{display:flex;gap:6px;}
.ys-form-dots i{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:12px;font-weight:800;color:#fff;background:#9aa3b1;}
.ys-form-dots i.win{background:#16a34a;}.ys-form-dots i.lose{background:#e02424;}

.ys-seg{display:flex;gap:4px;padding:4px;margin:0 0 14px;background:var(--ys-strip);border-radius:12px;}
.ys-seg button{flex:1;border:0;background:none;border-radius:9px;padding:9px 10px;font:inherit;font-size:14px;font-weight:800;color:var(--ys-muted);cursor:pointer;}
.ys-seg button.is-active{background:var(--ys-card);color:var(--ys-teal);box-shadow:0 1px 3px rgba(16,24,40,.08);}
.ys-lineup-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font-size:15px;}
.ys-lineup-head span{font-size:12.5px;font-weight:800;color:var(--ys-teal);background:color-mix(in srgb,var(--ys-teal) 12%,transparent);padding:4px 10px;border-radius:999px;}
.ys-pitch{position:relative;aspect-ratio:68/100;max-width:480px;margin:0 auto 6px;border-radius:14px;overflow:hidden;
  background:repeating-linear-gradient(180deg,#1f9d6b 0 10%,#1b9163 10% 20%);}
.ys-pitch-lines{position:absolute;inset:10px;border:2px solid rgba(255,255,255,.55);border-radius:6px;}
.ys-pitch-lines::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:2px solid rgba(255,255,255,.55);}
.ys-pitch-lines::after{content:"";position:absolute;left:50%;top:50%;width:22%;aspect-ratio:1;border:2px solid rgba(255,255,255,.55);border-radius:50%;transform:translate(-50%,-50%);}
.ys-pp{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3px;width:78px;z-index:1;}
.ys-pp-shirt{position:relative;display:flex;}
.ys-pp-shirt img,.ys-pp-shirt .ys-fallback{width:36px !important;height:36px !important;border-radius:50%;object-fit:cover;background:#fff;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.25);}
.ys-pp-rate{position:absolute;top:-6px;inset-inline-end:-14px;font-size:10px;font-weight:800;line-height:1;padding:3px 4px;border-radius:6px;background:#f59e0b;color:#fff;direction:ltr;}
.ys-pp-rate.good{background:#16a34a;}.ys-pp-rate.great,.ys-pp-rate.top{background:#2563eb;}.ys-pp-rate.bad,.ys-pp-rate.low{background:#e02424;}
.ys-pp em{font-style:normal;font-size:11px;font-weight:800;color:#fff;text-align:center;line-height:1.3;max-width:78px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.5);}
.ys-squad{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;}
.ys-squad-card{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--ys-line);border-radius:10px;}
.ys-squad-card img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:var(--ys-strip);}
.ys-squad-num{margin-inline-start:auto;font-size:14px;font-weight:900;color:var(--ys-muted);}
.ys-mcard .ys-news-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));}

body .ys-mcard .ys-table tbody tr.is-hl td{background:color-mix(in srgb,var(--ys-teal) 12%,transparent) !important;font-weight:800;}
.ys-mcard .ys-table-wrap + .ys-sec-head{margin-top:18px;}
body .ys-mcard table.ys-table{width:100%;border-collapse:collapse !important;margin:0 !important;font-size:13.5px;background:none !important;border:0 !important;}
body .ys-mcard .ys-table th,body .ys-mcard .ys-table td{padding:10px 8px !important;text-align:center !important;border:0 !important;border-bottom:1px solid var(--ys-line) !important;background:none;color:var(--ys-text) !important;white-space:nowrap;}
body .ys-mcard .ys-table thead th{background:var(--ys-strip) !important;color:var(--ys-muted) !important;font-size:12px;font-weight:800;}
body .ys-mcard .ys-table tbody tr:last-child td{border-bottom:0 !important;}
body .ys-mcard .ys-table .ys-col-team{text-align:start !important;width:100%;}

@media (max-width:640px){
  .ys-mcard{padding:12px;}
  .ys-form{grid-template-columns:1fr;}
  .ys-pp{width:62px;}
  .ys-pp em{font-size:10px;max-width:62px;}
  .ys-pp-shirt img,.ys-pp-shirt .ys-fallback{width:30px !important;height:30px !important;}
  .ys-tabs button{font-size:13px;padding:8px 10px;}
  body .ys-mcard .ys-table .ys-col-x{display:none;}
  body .ys-mcard .ys-table th,body .ys-mcard .ys-table td{padding:9px 5px !important;font-size:12.5px;}
}
/* =====================================================
   v3.9.1 — تنسيق صفحة المباراة مثل yascores
   ===================================================== */
.ys-match{
  --ym-surface:#fff;--ym-surface-2:#f5f6fb;--ym-surface-3:#eceff7;--ym-line:#e5e8f1;
  --ym-text:#0e1019;--ym-text-2:#3d4259;--ym-muted:#707488;
  --ym-accent:#16ae94;--ym-live:#ff3f57;--ym-gold:#ffb800;--ym-red:#e5384f;--ym-green:#22c58b;
  --ys-card:var(--ym-surface);--ys-line:var(--ym-line);--ys-strip:var(--ym-surface-2);--ys-text:var(--ym-text);--ys-muted:var(--ym-muted);--ys-teal:var(--ym-accent);
}
body.Night .ys-match{
  --ym-surface:#171a26;--ym-surface-2:#1e2231;--ym-surface-3:#262b3c;--ym-line:#262b3a;
  --ym-text:#e9ebf4;--ym-text-2:#a9afc6;--ym-muted:#757a90;
}
body .ys-match .screen-reader-text,body .ys-match h1.ys-match-h1.screen-reader-text{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;white-space:nowrap !important;margin:0 !important;padding:0 !important;}

/* ---------- Hero ---------- */
.ys-mhero{position:relative;overflow:hidden;margin:0 0 14px;background:var(--ym-surface);border:1px solid var(--ym-line);border-radius:16px;color:var(--ym-text);}
.ys-mhero::before{content:"";position:absolute;inset:0 0 auto;height:190px;pointer-events:none;
  background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--ym-accent) 16%,transparent),transparent 70%);}
.ys-mhero.is-live::before{background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--ym-live) 14%,transparent),transparent 70%);}
.ys-mhero > *{position:relative;}
.ys-mhero-top{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:10px;padding:12px 12px 0;}
.ys-hero-tool{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:50%;
  border:1px solid var(--ym-line);background:var(--ym-surface-2);color:var(--ym-text-2) !important;cursor:pointer;transition:color .15s,border-color .15s;}
.ys-hero-tool:hover,.ys-hero-tool.is-done{color:var(--ym-accent) !important;border-color:var(--ym-accent);}
.ys-hero-champ{justify-self:center;display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 14px;border-radius:999px;
  background:var(--ym-surface-2);font-size:12.5px;font-weight:800;color:var(--ym-text);white-space:nowrap;overflow:hidden;}
.ys-hero-champ > span:last-child{overflow:hidden;text-overflow:ellipsis;}
.ys-hero-champ .ys-league-ico{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  background:color-mix(in srgb,var(--ym-accent) 14%,transparent);color:var(--ym-accent);}

.ys-scoreboard{display:grid;grid-template-columns:1fr minmax(120px,auto) 1fr;align-items:center;gap:12px;padding:22px 16px 18px;}
.ys-score-team{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;text-align:center;}
.ys-score-team strong{font-size:15px;font-weight:800;line-height:1.4;color:var(--ym-text);max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.ys-score-team img,.ys-score-team .team-logo-fallback{width:68px !important;height:68px !important;box-sizing:border-box;padding:6px;border-radius:50%;object-fit:contain;background:var(--ym-surface-2);}
.ys-score-team .team-logo-fallback{display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;color:var(--ym-muted);}
.ys-score-center{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;}
.ys-status{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--ym-surface);border:1px solid var(--ym-line);
  font-size:11px;font-weight:800;color:var(--ym-text-2);}
.ys-status.is-live{color:var(--ym-live);border-color:color-mix(in srgb,var(--ym-live) 40%,transparent);}
.ys-status.is-live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ym-live);animation:ysPulse 1.4s ease-in-out infinite;}
@keyframes ysPulse{0%,100%{opacity:1;transform:scale(1);}50%{opacity:.35;transform:scale(.7);}}
.ys-kickoff{font-size:18px;font-weight:800;color:var(--ym-text);}
.ys-score-value{display:flex;align-items:center;gap:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:40px;font-weight:800;line-height:1;color:var(--ym-text);}
.ys-score-value i{font-style:normal;font-size:26px;color:var(--ym-muted);}
.ys-mhero.is-live .ys-score-value{color:var(--ym-live);}
.ys-score-min{font-size:12px;font-weight:800;color:var(--ym-live);}
.ys-countdown{display:flex;gap:6px;direction:ltr;flex-direction:row-reverse;}
.ys-countdown[hidden],.ys-countdown [hidden]{display:none !important;}
.ys-countdown > span{min-width:42px;padding:6px 4px;border-radius:8px;background:var(--ym-surface-2);display:flex;flex-direction:column;align-items:center;gap:2px;}
.ys-countdown b{font-size:15px;font-weight:800;line-height:1.1;color:var(--ym-text);}
.ys-countdown small{font-size:10px;font-weight:700;color:var(--ym-muted);}
.ys-mhero-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;padding:0 16px 16px;font-size:12px;font-weight:700;color:var(--ym-text-2);}
.ys-mhero-meta span{display:inline-flex;align-items:center;gap:6px;}
.ys-mhero-meta svg{color:var(--ym-muted);flex:0 0 auto;}

/* ---------- Tabs card ---------- */
.ys-match .ys-mtabs{background:var(--ym-surface);border:1px solid var(--ym-line);border-radius:16px;overflow:hidden;margin:0 0 14px;color:var(--ym-text);}
.ys-match .ys-tabs{justify-content:center;gap:0;margin:0;padding:0 6px;background:none;border:0;border-bottom:1px solid var(--ym-line);border-radius:0;}
.ys-match .ys-tabs button{flex:0 0 auto;height:44px;padding:0 12px;border-radius:0;background:none !important;font-size:12.5px;font-weight:800;color:var(--ym-muted);
  border-bottom:2px solid transparent;margin-bottom:-1px;}
.ys-match .ys-tabs button:hover{color:var(--ym-text);}
.ys-match .ys-tabs button.is-active{color:var(--ym-accent);border-bottom-color:var(--ym-accent);}
.ys-match .ys-mpanel{padding:16px;}
.ys-match .ys-mcard{background:none;border:0;border-radius:0;padding:0;margin:0 0 20px;}
.ys-match .ys-mcard:last-child{margin-bottom:0;}
.ys-match .ys-mcard .ys-sec-head{margin:20px 0 10px;padding:0;}
.ys-match .ys-mcard .ys-sec-head:first-child{margin-top:0;}
.ys-match .ys-mcard .ys-sec-head h2::before{display:none;}
.ys-match .ys-mcard .ys-sec-head h2{font-size:14px !important;}
body.single-post .ys-match .ys-mpanel .blogpost{background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;margin:0 !important;}
body.single-post .ys-match .ys-mpanel .blogpost .posts-content{padding:0 !important;}

.ys-match .ys-info-rows{display:grid;gap:6px;border:0;border-radius:0;overflow:visible;}
.ys-match .ys-info-row{min-height:46px;box-sizing:border-box;padding:10px 14px;border:0;border-radius:8px;background:var(--ym-surface-2) !important;font-size:12px;transition:color .15s;}
.ys-match .ys-info-row span{color:var(--ym-muted);font-weight:700;font-size:12px;}
.ys-match .ys-info-row strong{font-size:12px;font-weight:800;color:var(--ym-text);}
.ys-match .ys-info-row:hover strong{color:var(--ym-accent);}

.ys-match .ys-form{grid-template-columns:1fr;gap:8px;}
.ys-match .ys-form-team{padding:12px 14px;border-radius:12px;background:var(--ym-surface-2);border:1px solid var(--ym-line);}
.ys-match .ys-form-dots i{width:20px;height:20px;border-radius:50%;font-size:10px;}
.ys-match .ys-form-dots i.win{background:var(--ym-green);}
.ys-match .ys-form-dots i.lose{background:var(--ym-red);}
.ys-match .ys-form-dots i.draw{background:var(--ym-gold);color:#1a1300;}
.ys-match .ys-form-tally .win{color:var(--ym-green);}.ys-match .ys-form-tally .lose{color:var(--ym-red);}.ys-match .ys-form-tally .draw{color:var(--ym-gold);}
.ys-match .ys-h2h-bar .home,.ys-match .ys-h2h-legend .home::before{background:var(--ym-accent);}

@media (max-width:640px){
  .ys-scoreboard{gap:8px;padding:18px 10px 14px;grid-template-columns:1fr minmax(104px,auto) 1fr;}
  .ys-score-team strong{font-size:13px;}
  .ys-score-team img,.ys-score-team .team-logo-fallback{width:54px !important;height:54px !important;}
  .ys-score-value{font-size:30px;gap:8px;}
  .ys-score-value i{font-size:20px;}
  .ys-kickoff{font-size:16px;}
  .ys-countdown{gap:4px;}
  .ys-countdown > span{min-width:34px;padding:5px 2px;}
  .ys-countdown b{font-size:13px;}
  .ys-match .ys-tabs{justify-content:flex-start;}
  .ys-match .ys-tabs button{font-size:11.5px;padding:0 10px;}
  .ys-match .ys-mpanel{padding:12px;}
}
/* ---------- v3.9.2 — الأحداث والإحصائيات والفيديوهات ---------- */
.ys-hero-champ img{width:20px;height:20px;object-fit:contain;flex:0 0 auto;}
.ys-hero-champ-text{display:flex;align-items:baseline;gap:6px;overflow:hidden;}
.ys-hero-champ-text > span{overflow:hidden;text-overflow:ellipsis;}
.ys-hero-champ-text small{font-size:11px;font-weight:700;color:var(--ym-muted);}

.ys-match .ys-seg{background:var(--ym-surface-2);}
.ys-match .ys-seg button.is-active{background:var(--ym-surface);color:var(--ym-accent);}
.ys-timeline{display:flex;flex-direction:column;gap:8px;}
.ys-timeline.is-imp .ys-tl-row[data-imp="0"]{display:none;}
.ys-tl-system{display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:800;color:var(--ym-muted);}
.ys-tl-system::before,.ys-tl-system::after{content:"";flex:1;border-top:1px dashed var(--ym-line);}
.ys-tl-system span{padding:4px 12px;border-radius:999px;background:var(--ym-surface-2);}
.ys-tl-row{display:grid;grid-template-columns:1fr 46px 1fr;align-items:center;gap:8px;}
.ys-tl-min{justify-self:center;min-width:40px;padding:4px 6px;border-radius:999px;text-align:center;font-size:11.5px;font-weight:800;direction:ltr;background:var(--ym-surface-2);color:var(--ym-text-2);}
.ys-tl-cell{display:flex;min-width:0;}
.ys-tl-cell:first-child{justify-content:flex-end;}
.ys-tl-cell:last-child{justify-content:flex-start;}
.ys-ev-card{display:flex;align-items:center;gap:10px;max-width:100%;padding:9px 12px;border-radius:10px;background:var(--ym-surface-2);border:1px solid var(--ym-line);}
.ys-ev-body{display:flex;flex-direction:column;gap:2px;min-width:0;}
.ys-ev-title{font-size:11px;font-weight:800;color:var(--ym-muted);}
.ys-ev-player,.ys-ev-note{font-size:12.5px;font-weight:800;color:var(--ym-text);}
.ys-ev-detail{font-size:11px;font-weight:700;color:var(--ym-muted);}
.ys-ev-detail.is-in{color:var(--ym-green);}
.ys-ev-detail.is-in::before{content:"▲ ";font-size:9px;}
.ys-ev-detail.is-out{color:var(--ym-red);}
.ys-ev-detail.is-out::before{content:"▼ ";font-size:9px;}
.ys-ev-detail.is-assist::before{content:"صناعة: ";}
.ys-ev-ico{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:13px;background:var(--ym-surface);}
.ys-ev-ico.goal::before{content:"⚽";}
.ys-ev-ico.yellow::before,.ys-ev-ico.red::before,.ys-ev-ico.second-yellow::before{content:"";width:10px;height:14px;border-radius:2px;background:var(--ym-gold);}
.ys-ev-ico.red::before{background:var(--ym-red);}
.ys-ev-ico.sub::before{content:"⇅";font-weight:900;color:var(--ym-accent);}
.ys-ev-ico.miss::before,.ys-ev-ico:not(.goal):not(.yellow):not(.red):not(.second-yellow):not(.sub)::before{content:"!";font-weight:900;color:var(--ym-red);}
.ys-ev-card.tone-goal{border-color:color-mix(in srgb,var(--ym-green) 45%,transparent);}
.ys-ev-video{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--ym-accent);color:#fff !important;}

.ys-stats-teams{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;font-size:13px;}
.ys-stats-teams span{display:flex;align-items:center;gap:8px;}
.ys-stats-teams img{width:28px;height:28px;object-fit:contain;}
.ys-poss{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:var(--ym-surface-2);}
.ys-poss-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;font-size:12px;font-weight:800;color:var(--ym-muted);}
.ys-poss-head b{font-size:16px;color:var(--ym-text);}
.ys-poss-bar{display:flex;height:10px;border-radius:999px;overflow:hidden;background:#4f7cff;}
.ys-poss-bar .home{background:var(--ym-accent);}
.ys-poss-bar .away{flex:1;}
.ys-stat-list{display:grid;gap:6px;}
.ys-stat-row{padding:10px 14px;border-radius:8px;background:var(--ym-surface-2);}
.ys-stat-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;}
.ys-stat-top span{font-weight:700;color:var(--ym-muted);text-align:center;}
.ys-stat-top b{min-width:32px;font-size:13px;font-weight:800;color:var(--ym-text);}
.ys-stat-top b:last-child{text-align:left;}
.ys-stat-row.lead-home .ys-stat-top b:first-child{color:var(--ym-accent);}
.ys-stat-row.lead-away .ys-stat-top b:last-child{color:#4f7cff;}
.ys-stat-bars{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px;}
.ys-stat-bars span{height:6px;border-radius:999px;background:var(--ym-surface-3);display:flex;overflow:hidden;}
.ys-stat-bars .home{justify-content:flex-start;}
.ys-stat-bars .away{justify-content:flex-end;}
.ys-stat-bars .home i{background:var(--ym-accent);border-radius:999px;}
.ys-stat-bars .away i{background:#4f7cff;border-radius:999px;}

.ys-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;}
.ys-video{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:10px;background:var(--ym-surface-2);border:1px solid var(--ym-line);font-size:13px;font-weight:800;color:var(--ym-text) !important;transition:border-color .15s;}
.ys-video:hover{border-color:var(--ym-accent);}
.ys-video i{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--ym-accent);color:#fff;}

@media (max-width:640px){
  .ys-tl-row{grid-template-columns:1fr 40px 1fr;gap:6px;}
  .ys-ev-card{padding:8px;gap:7px;}
  .ys-ev-player,.ys-ev-note{font-size:11.5px;}
}
/* =====================================================
   v3.10 — الرئيسية مثل yascores + شريط التنقل السفلي
   ===================================================== */
.ys-home-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start;margin:16px 0;}
.ys-hpanel{background:var(--ym-surface);border:1px solid var(--ym-line);border-radius:16px;overflow:hidden;color:var(--ym-text);}
.ys-hpanel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--ym-line);}
.ys-hpanel-head h1,.ys-hpanel-head h2{margin:0 !important;padding:0 !important;border:0 !important;background:none !important;font-size:18px !important;font-weight:800 !important;line-height:1.4 !important;color:var(--ym-text) !important;}
.ys-head-sub{display:block;margin-top:2px;font-size:12px;font-weight:700;color:var(--ym-muted);}
.ys-board-toolbar{display:flex;align-items:center;gap:8px;}
.ys-live-toggle{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--ym-line);background:var(--ym-surface-2);font:inherit;font-size:12px;font-weight:800;color:var(--ym-text-2);cursor:pointer;}
.ys-live-count{min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--ym-live);color:#fff;font-size:11px;}
.ys-live-toggle.is-active{border-color:var(--ym-live);color:var(--ym-live);}
.ys-date-nav{display:flex;align-items:center;height:34px;border:1px solid var(--ym-line);border-radius:999px;background:var(--ym-surface-2);overflow:hidden;}
.ys-date-nav a{display:flex;align-items:center;justify-content:center;height:100%;padding:0 10px;font-size:12px;font-weight:800;color:var(--ym-text) !important;}
.ys-date-nav a:first-child,.ys-date-nav a:last-child{font-size:20px;line-height:1;color:var(--ym-muted) !important;}
.ys-date-nav a:hover{color:var(--ym-accent) !important;}
.ys-chip-row{display:flex;gap:6px;padding:10px 16px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--ym-line);}
.ys-chip-row::-webkit-scrollbar{display:none;}
.ys-chip{display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;border:1px solid var(--ym-line);background:var(--ym-surface);font:inherit;font-size:12px;font-weight:800;color:var(--ym-text-2) !important;cursor:pointer;white-space:nowrap;}
.ys-chip:hover{border-color:var(--ym-accent);}
.ys-chip.is-active{background:var(--ym-accent);border-color:var(--ym-accent);color:#fff !important;}
.ys-board-body{padding:4px 12px 12px;}
.ys-champ-block{margin-top:10px;border:1px solid var(--ym-line);border-radius:12px;overflow:hidden;}
.ys-champ-block[hidden],.ys-mrow[hidden],.ys-board-empty[hidden]{display:none !important;}
.ys-champ-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:var(--ym-surface-2);}
.ys-champ-title{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:800;color:var(--ym-text) !important;}
.ys-champ-title img,.ys-champ-title .ys-fallback{width:22px !important;height:22px !important;object-fit:contain;flex:0 0 auto;}
.ys-champ-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ys-champ-links,.ys-champ-block .ys-league-links{display:flex;gap:10px;flex:0 0 auto;}
.ys-champ-links a,.ys-champ-block .ys-league-links a{font-size:11.5px;font-weight:700;color:var(--ym-muted) !important;}
.ys-champ-links a:hover{color:var(--ym-accent) !important;}
.ys-mrow{display:grid;grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);align-items:center;gap:8px;min-height:54px;padding:8px 12px;border-top:1px solid var(--ym-line);color:var(--ym-text) !important;transition:background .15s;}
.ys-mrow:hover{background:var(--ym-surface-2);}
.ys-mteam{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:700;}
.ys-mteam.home{justify-content:flex-end;}
.ys-mteam.away{justify-content:flex-start;}
.ys-mname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ys-mteam img,.ys-mteam .ys-fallback{width:26px !important;height:26px !important;object-fit:contain;flex:0 0 auto;}
.ys-mscore{min-width:18px;text-align:center;font-size:15px;font-weight:800;}
.ys-mrow.is-live .ys-mscore{color:var(--ym-live);}
.ys-mcenter{display:flex;flex-direction:column;align-items:center;gap:3px;}
.ys-kick{padding:4px 10px;border-radius:999px;background:var(--ym-surface-2);font-size:12px;font-weight:800;white-space:nowrap;}
.ys-mstatus{font-size:11px;font-weight:800;color:var(--ym-muted);}
.ys-mstatus.is-live{display:inline-flex;align-items:center;gap:5px;color:var(--ym-live);}
.ys-mstatus.is-live::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ym-live);animation:ysPulse 1.4s ease-in-out infinite;}
.ys-mstream{font-style:normal;font-size:9.5px;font-weight:800;line-height:1.6;color:#fff;background:var(--ym-live);padding:0 7px;border-radius:999px;white-space:nowrap;}
.ys-board-empty{padding:28px 10px;text-align:center;color:var(--ym-muted);font-weight:700;}

.ys-side-stack{display:flex;flex-direction:column;gap:16px;position:sticky;top:84px;}
.ys-hpanel-body{padding:14px 16px;}
.ys-hpanel .ys-sec-head{margin:16px 0 10px;}
.ys-hpanel .ys-sec-head h2{margin:0 !important;padding:0 !important;border:0 !important;background:none !important;font-size:14px !important;font-weight:800 !important;color:var(--ym-text) !important;}
.ys-hpanel .ys-sec-head h2::before{display:none;}
.ys-hnews-hero{display:block;border-radius:12px;overflow:hidden;background:var(--ym-surface-2);color:var(--ym-text) !important;}
.ys-hnews-hero .ys-news-img{display:block;}
.ys-hnews-hero .ys-news-img img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.ys-hnews-hero .ys-news-body{display:flex;flex-direction:column;gap:4px;padding:10px 12px 12px;}
.ys-hnews-hero strong{font-size:15px;font-weight:800;line-height:1.6;}
.ys-hnews-hero small{font-size:12px;line-height:1.7;color:var(--ym-text-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.ys-hnews-hero time,.ys-hnews-item time{font-size:11px;font-weight:700;color:var(--ym-accent);}
.ys-hnews-list{display:grid;gap:8px;}
.ys-hnews-item{display:flex;align-items:center;gap:10px;padding:6px;border-radius:10px;color:var(--ym-text) !important;transition:background .15s;}
.ys-hnews-item:hover{background:var(--ym-surface-2);}
.ys-hnews-item .ys-news-img{flex:0 0 96px;}
.ys-hnews-item .ys-news-img img{display:block;width:96px;height:64px;border-radius:8px;object-fit:cover;}
.ys-hnews-item .ys-news-body{display:flex;flex-direction:column;gap:4px;min-width:0;}
.ys-hnews-item strong{font-size:12.5px;font-weight:800;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.ys-hnews-item small{display:none;}

.ys-page-match{padding-top:16px;}

.ys-tabbar{display:none;}
@media (max-width:900px){
  .ys-home-grid{grid-template-columns:1fr;}
  .ys-side-stack{position:static;}
  .ys-tabbar{position:fixed;inset:auto 0 0 0;z-index:999;display:grid;grid-template-columns:repeat(5,1fr);height:62px;padding-bottom:env(safe-area-inset-bottom);
    background:var(--ys-card);border-top:1px solid var(--ys-line);box-shadow:0 -4px 16px rgba(16,24,40,.06);}
  .ys-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10.5px;font-weight:800;color:var(--ys-muted) !important;}
  .ys-tabbar a.is-active{color:var(--ys-teal) !important;}
  .ys-tabbar a.is-active svg{stroke-width:2.2;}
  body{padding-bottom:calc(62px + env(safe-area-inset-bottom)) !important;}
}
@media (max-width:560px){
  .ys-home-grid{margin:10px 0;gap:12px;}
  .ys-hpanel-head{padding:12px;}
  .ys-board-toolbar{width:100%;justify-content:space-between;}
  .ys-chip-row{padding:8px 12px;}
  .ys-board-body{padding:2px 8px 8px;}
  .ys-mrow{grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr);gap:6px;padding:8px;}
  .ys-mteam{font-size:12px;gap:6px;}
  .ys-mteam img,.ys-mteam .ys-fallback{width:22px !important;height:22px !important;}
  .ys-kick{font-size:11px;padding:3px 8px;}
}
/* ---------- v3.11 — الهيدر والشعار بنمط yascores ---------- */
body .apc-header{position:sticky;top:0;z-index:90;background:color-mix(in srgb,var(--ys-card) 92%,transparent) !important;backdrop-filter:blur(14px) !important;-webkit-backdrop-filter:blur(14px) !important;}
body .apc-header .kora-brand{display:inline-flex !important;flex-direction:row !important;align-items:center !important;gap:8px !important;white-space:nowrap;}
.ys-brand-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;border-radius:50%;overflow:hidden;border:1px solid var(--ys-line);}
.ys-brand-icon svg{display:block;width:100%;height:100%;}
body .apc-header .ys-brand-text{font-size:19px !important;font-weight:800 !important;line-height:1 !important;color:var(--ys-text) !important;letter-spacing:0;}
body .ys-nav a{position:relative;font-weight:900 !important;}
body .ys-nav a.is-active{color:#16ae94 !important;background:transparent !important;}
body .ys-nav a.is-active::after{content:"";position:absolute;inset-inline:8px;bottom:-2px;height:2px;border-radius:999px;background:#16ae94;}
@media (max-width:900px){
  .ys-brand-icon{width:36px;height:36px;}
  body .apc-header .ys-brand-text{font-size:17px !important;font-weight:900 !important;}
}
/* ---------- v3.12 — صفحة الخبر ---------- */
.ys-article{overflow:hidden;}
.ys-article-hero{display:block;width:100%;height:auto;max-height:520px;aspect-ratio:16/9;object-fit:cover;}
.ys-article-in{padding:20px 24px 26px;}
body .ys-page .ys-article h1{margin:0 0 10px !important;padding:0 !important;border:0 !important;background:none !important;font-size:24px !important;line-height:1.6 !important;font-weight:800 !important;color:var(--ys-text) !important;}
.ys-article-meta{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-size:12.5px;font-weight:700;color:var(--ys-muted);}
.ys-article-meta a{padding:3px 10px;border-radius:999px;background:color-mix(in srgb,var(--ys-teal) 12%,transparent);color:var(--ys-teal) !important;}
.ys-article-body{font-size:16px;line-height:2;color:var(--ys-text);}
.ys-article-body p{margin:0 0 14px;}
.ys-article-body h2,.ys-article-body h3{margin:20px 0 10px;font-size:18px;font-weight:800;color:var(--ys-text);}
.ys-article-body ul{margin:0 0 14px;padding-inline-start:22px;}
.ys-article-body blockquote{margin:0 0 14px;padding:10px 16px;border-inline-start:3px solid var(--ys-teal);background:var(--ys-strip);border-radius:8px;}
.ys-article-body img{display:block;max-width:100%;height:auto;margin:14px auto;border-radius:10px;}
body.Night .ys-page .ys-article h1{color:var(--ys-text) !important;}
@media (max-width:560px){
  .ys-article-in{padding:14px 14px 18px;}
  body .ys-page .ys-article h1{font-size:19px !important;}
  .ys-article-body{font-size:15px;}
}
/* ---------- v3.13 — فوتر الحقوق فقط ---------- */
body .lh-footer{display:block;margin:28px 0 0;padding:16px 12px;background:var(--ys-card,#fff);border-top:1px solid var(--ys-line,#e3e7ee);text-align:center;font-size:13px;line-height:1.7}
body .lh-footer .apc-ft-copy{margin:0;padding:0;border:0;color:var(--ys-muted,#6b7482);font-size:13px;font-weight:600}
body.Night .lh-footer{background:var(--ys-card,#161c2b);border-top-color:var(--ys-line,#232b3d)}
body.Night .lh-footer .apc-ft-copy{color:var(--ys-muted,#98a2b3)}
/* ---------- v3.14 — قائمة الموبايل: بيضاء وتنزل لتحت الهيدر ---------- */
body .apc-mob-drawer{
  position:absolute !important;top:100% !important;left:0 !important;right:0 !important;
  width:auto !important;height:auto !important;max-height:0;overflow:hidden;
  background:#fff !important;z-index:2000;
  border-bottom:1px solid #e5e7eb;box-shadow:0 14px 24px -14px rgba(16,24,40,.28);
  visibility:hidden;transition:max-height .28s ease,visibility 0s linear .28s !important;
}
body #apc-mob-cb:checked ~ .apc-mob-drawer{max-height:420px;visibility:visible;transition:max-height .28s ease,visibility 0s !important;}
body .apc-mob-drawer .apc-mob-menu{margin:0 !important;padding:6px 0 !important;border-top:0 !important;list-style:none;}
body .apc-mob-drawer .apc-mob-menu li a{
  display:block;padding:14px 20px;font-size:15px;font-weight:800;color:#101828 !important;
  border-bottom:1px solid #f0f2f5;background:transparent;
}
body .apc-mob-drawer .apc-mob-menu li:last-child a{border-bottom:0;}
body .apc-mob-drawer .apc-mob-menu li a:hover,
body .apc-mob-drawer .apc-mob-menu li a:active{background:#f5f7fa !important;color:#16ae94 !important;}
/* الطبقة المعتمة تغطي الصفحة تحت الهيدر فقط، والضغط عليها يقفل القائمة */
body .apc-overlay-bg{position:absolute !important;top:100% !important;left:0 !important;right:0 !important;bottom:auto !important;inset:auto 0 auto 0 !important;height:100vh;background:rgba(16,24,40,.35) !important;z-index:1999;}
body.Night .apc-mob-drawer{background:var(--ys-card,#161c2b) !important;border-bottom-color:var(--ys-line,#232b3d);}
body.Night .apc-mob-drawer .apc-mob-menu li a{color:var(--ys-text,#eef1f6) !important;border-bottom-color:var(--ys-line,#232b3d);}
body.Night .apc-mob-drawer .apc-mob-menu li a:hover,
body.Night .apc-mob-drawer .apc-mob-menu li a:active{background:var(--ys-strip,#1c2335) !important;color:#16ae94 !important;}
@media (min-width:861px){
  body .apc-mob-drawer,body .apc-overlay-bg{display:none !important;}
}
