
@font-face {
  font-family: "NeoSansArabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../NeoSansArabic.woff") format("woff");
}

*, ::after, ::before { box-sizing: border-box }
* { margin: 0; padding: 0; outline: 0; list-style: none }

:root {
  --main_color: #931800;
  --font_type: NeoSansArabic;
  --font_size: 15px;
  --body_bg: #eceef2;
  --header_bg: #fff;
  --header_color: #222;
  --logo_bd: #931800;
  --logo_color: #fff;
  --title_bg: #1f2024;
  --yrsdaybg: #104783;
  --todaybg: #931800;
  --tomorobg: rgb(175, 81, 0);
  --footer_bd: #fff;
  --footer_color: #222;
  --footer_border: #ddd;
  --cop_bd: #eceef2;
  --cop_color: #222;
  --bk-hd-bg: var(--Gray1);
  --bk-ttl-bg: var(--DarkColor);
  --btn-bg: var(--DarkColor);
  --match-bg: #eceef2;
  --Gray1: #eceef2;
  --Gray2: #ddd;
  --Gray3: #d8dbe1;
  --LightColor: #fff;
  --DarkColor: #273340;
  --LightColor2: #f6f7fa;
  --bk-shadow: rgba(0, 0, 0, 0.3);
  --yall-padding: 12px;
  --rounded: 8px;
}

.Night,
.Night body,
html.Night,
html.Night body,
body.Night {
  --bk-hd-bg: #121a23;
  --match-bg: var(--Gray1);
  --body_bg: #1c2733;
  --header_bg: #263545;
  --Gray2: #2b3b4d;
  --Gray3: #1c2733;
  --logo_color: #fff;
  --footer_border: #1c2733;
  --Gray1: #1c2733;
  --LightColor: #263545;
  --footer_bd: var(--LightColor);
  --cop_bd: #1c2733;
  --DarkColor: var(--Gray1);
  --LightColor2: var(--Gray1);
}

body {
  font-family: var(--font_type), "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: var(--body_bg);
  color: #000;
  font-size: var(--font_size);
  font-weight: 500;
  direction: rtl;
  overflow-x: hidden;
}

html.Night body,
body.Night { color: #fff }

.d-none { display: none }
.says,
.screen-reader,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link — force sr-only until :focus-visible (stadium skips classic style.css) */
.apc-skip-link,
.apc-skip-link.sr-only,
.skip-link,
a.apc-skip,
#skip-to-content {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  inset-inline-start: 0;
  top: 0;
  z-index: 10000;
}
/* Stay hidden on mouse :focus; reveal only for keyboard :focus-visible */
.apc-skip-link:focus:not(:focus-visible),
.apc-skip-link.sr-only:focus:not(:focus-visible),
.skip-link:focus:not(:focus-visible),
a.apc-skip:focus:not(:focus-visible),
#skip-to-content:focus:not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.apc-skip-link:focus-visible,
.apc-skip-link.sr-only:focus-visible,
.skip-link:focus-visible,
a.apc-skip:focus-visible,
#skip-to-content:focus-visible {
  position: fixed !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  inset-inline-start: 12px !important;
  top: 12px !important;
  padding: 10px 14px !important;
  background: var(--main_color, var(--btn-bg, #931800)) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hed-btn,
.AY_Match,
.gr-inner,
.AY_Block,
.AYa-SiteInfo a,
.fut-img img { border-radius: var(--rounded) }

.aya-btn,
.MT_Stat {
  position: relative;
  background: var(--btn-bg);
  padding: 4px 10px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rounded);
  color: #fff;
  font-size: 15px;
  text-align: center;
}
a.aya-btn:hover { opacity: .8 }

.d-fx { display: flex }
.fx-cen,
.AY_Inner {
  display: flex !important;
  align-items: center !important;
}
.fx-wrap { display: flex; flex-wrap: wrap }
.grow-1 { flex-grow: 1 }
.gap-5 { gap: 5px }
.gap-10 { gap: 10px }
.gap-20 { gap: 20px }

a { color: #222; text-decoration: none }
html.Night a,
.Night a,
body.Night a { color: #fff !important }
img { font-size: 0; max-width: 100%; border: 0 }
strong { font-weight: 500 }
a:focus,
a:hover { color: var(--main_color); transition: .5s ease }

.container {
  max-width: 1024px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 var(--yall-padding);
}

#AYaHeader { position: relative; margin-bottom: 15px }
#AYaHeader .HdrInner {
  width: 100%;
  background: var(--header_bg);
  box-shadow: 0 0 4px var(--bk-shadow);
  position: relative;
}
#AYaHeader .HdrInner > .container { min-height: 85px }

.AYaLogo {
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
  max-width: 360px;
  border-radius: var(--rounded);
}
.AYaLogo.textlogo { padding: 5px }
.AYaLogo.textlogo span { color: var(--main_color) }
.AYaLogo a, .LogoImage { background: transparent !important }
.AYaLogo > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.AYaLogo span {
  display: block;
  text-align: center;
  color: var(--logo_color);
  font-size: 19px;
  min-height: 4px;
  line-height: 33px;
}
.AYaLogo .SiteName { font-size: 20px; font-weight: 700; line-height: 1.3 }
.AYaLogo .SiteUrl { font-size: 13px; line-height: 18px; opacity: .95 }
.LogoImage { display: flex; height: 75px; max-width: 100%; object-fit: contain; margin: 0 auto }

.AYaMainNav { flex: 1 }
.AYaMainNav li { position: relative }
.MainMenu li > a {
  padding: 8px;
  display: block;
  white-space: nowrap;
  font-size: 17px;
  color: var(--header_color);
}
.MainMenu li a:hover { color: var(--main_color) }
html.Night .MainMenu a:hover,
.Night .MainMenu a:hover { color: #f80 !important }

.hed-btn {
  height: 35px;
  width: 35px;
  background: var(--DarkColor);
  display: inline-flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  border: 0;
  color: #fff;
}
.hed-btn .icon { width: 22px; height: 22px; color: #fff; fill: currentColor }

.AYaSocial .twitter a { --DarkColor: #000 }
.AYaSocial .facebook a { --DarkColor: #1877f2 }
.AYaSocial .youtube a { --DarkColor: #cd201f }
.AYaSocial .telegram a { --DarkColor: #24a1de }

html:not(.Night) .sun,
html:not(.Night) body:not(.Night) .sun,
.Night .mon { display: none }
html.Night .sun,
body.Night .sun { display: block }
html.Night .mon,
body.Night .mon { display: none }

.AY_Block {
  margin-bottom: 20px;
  box-shadow: 0 0 4px var(--bk-shadow);
  background: var(--LightColor);
  overflow: hidden;
}
.AYb_Head {
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--Gray2);
  border-radius: var(--rounded) var(--rounded) 0 0;
  background: var(--bk-hd-bg);
  display: flex;
  justify-content: space-between;
}
.AYb_Head h1,
.AYb_Head h2 { font-size: 16px; color: #fff }
.AYb_Head a { color: #fff }
.AYb_Head .aya-btn { --btn-bg: var(--bk-ttl-bg) }
.AY-Fixture .AYb_Head h2 { --btn-bg: var(--main_color) }

.AYb_Inner { padding: 12px 12px 0; overflow: hidden }
.AY_Seo .AYb_Inner { padding: 16px 18px 20px }
.AY_Seo p {
  font-size: 15px;
  line-height: 30px;
  text-align: justify;
  font-weight: 400;
  margin-bottom: 14px;
}
.AY_Seo p:last-child { margin-bottom: 0 }
.AY_Seo strong { font-weight: 600 }

/* ═══ صندوق الترحيب الأخضر + صندوق السيو الأخضر (نفس تصميم المواقع المنافسة) ═══ */
.apc-welcome-notice {
  background: #eaf7ec;
  border: 1px solid #cdeed3;
  border-radius: var(--rounded, 8px);
  padding: 14px 18px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.9;
}
.apc-welcome-notice p { color: #1b5e20; font-size: 14px; margin: 0 }
.apc-welcome-notice strong { color: #2e7d32; font-weight: 700 }

.AY_Seo { background: #eaf7ec !important; border: 1px solid #cdeed3 }
.AY_Seo .AYb_Head { background: #2e7d32 !important; border-bottom-color: #cdeed3 }
.AY_Seo .AYb_Head h1,
.AY_Seo .AYb_Head h2 { color: #fff !important }
.AY_Seo p { color: #1b5e20 !important }
.AY_Seo strong { color: #2e7d32 !important }
.AY_Seo a { color: #1b5e20 !important; text-decoration: underline }
.AY_Seo .AYb_Inner h2 { color: #1b5e20 !important; font-size: 18px; margin: 18px 0 10px; font-weight: 800 }
.AY_Seo .AYb_Inner h2:first-child { margin-top: 0 }

.tmz-name {
  display: flex;
  position: relative;
  height: 20px;
  overflow: hidden;
  padding: 2px 5px 0;
  justify-content: flex-end;
}
.tmz-name span {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bk-hd-bg);
  border-radius: 6px 6px 0 0;
  color: #222;
}
html.Night .tmz-name span,
body.Night .tmz-name span { color: #fff }
.sv-style-1 .tmz-name span { box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3) }

.AY-Dtab { display: flex; gap: 5px }
.AY-Dtab li.today a { --btn-bg: var(--todaybg) }
.AY-Dtab li.yesterday a { --btn-bg: var(--yrsdaybg) }
.AY-Dtab li.tomorrow a { --btn-bg: var(--tomorobg) }

.AY_Match {
  order: 3;
  overflow: hidden;
  text-align: center;
  background: var(--match-bg);
  margin-bottom: 12px;
  position: relative;
  --stat-bg: #263545;
}
.AY_Match h4 { margin: 30px 0 }
.AY_Match a { color: #222 }
html.Night .AY_Match a,
body.Night .AY_Match a { color: #fff !important }

.no-data__msg {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #666;
}

.AY_Match.started .MT_Time,
.AY_Match.live .MT_Time,
.AY_Match.gools .MT_Time,
.AY_Match.finished .MT_Time,
.AY_Match.comming .MT_Result,
.AY_Match.comming-soon .MT_Result,
.AY_Match.not-started .MT_Result { display: none }

.MT_Team { display: flex; align-items: center; flex: 1 }
.MT_Team.TM2 { flex-direction: row-reverse }
.TM_Logo { width: 50% }
.TM_Logo img {
  margin: 10px auto;
  display: flex;
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.TM_Name { margin: 8px auto; font-weight: 500 }

.MT_Data {
  margin: 12px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.MT_Time { font-size: 16px }
.MT_Result {
  font-size: 21px;
  display: inline-flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  direction: ltr;
}
.MT_Stat {
  font-size: 14px;
  margin: 6px auto 0;
  height: 25px;
  min-width: 60px;
  --btn-bg: var(--stat-bg);
}

@keyframes blinker { 50% { background: #263545 } }
.AY_Match.live .MT_Stat {
  --stat-bg: #d00000;
  animation: blinker 500ms ease-in-out infinite;
}
.AY_Match.finished { --stat-bg: #474747 }
.AY_Match.comming-soon { --stat-bg: #0f6f37 }

.albaflex {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 12px 12px 0;
}
.albaflex .not-started { order: 3 }
.albaflex .live { order: 1 }
.albaflex .comming-soon { order: 2 }
.albaflex .gools { order: 3 }
.albaflex .finished { order: 4 }

.MT_Mask {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  background: rgb(0 0 0 / 60%);
  z-index: 9;
}
.AY_Match:hover .MT_Mask { opacity: 1 }
.apc-locked-match { cursor: not-allowed !important; }
.apc-locked-match .MT_Mask { cursor: not-allowed; }
.apc-locked-match .MT_MaskText { opacity: .35; }
.MT_MaskText {
  position: absolute;
  bottom: 0; right: 0; left: 0; top: 0;
  height: 45px;
  width: 45px;
  margin: auto;
  background: no-repeat center url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M256 0C114.617 0 0 114.615 0 256s114.617 256 256 256 256-114.615 256-256S397.383 0 256 0zm88.48 269.57l-128 80c-2.59 1.617-5.535 2.43-8.48 2.43-2.668 0-5.34-.664-7.758-2.008C195.156 347.172 192 341.82 192 336V176c0-5.82 3.156-11.172 8.242-13.992 5.086-2.836 11.305-2.664 16.238.422l128 80c4.676 2.93 7.52 8.055 7.52 13.57s-2.844 10.641-7.52 13.57z'/%3E%3C/svg%3E");
}

.MT_Info {
  border-top: 1px solid var(--Gray2);
  overflow: hidden;
  width: 100%;
}
.MT_Info ul { display: flex; align-items: center; width: 100% }
.MT_Info li {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  padding: 5px 5px 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.MT_Info li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.MT_Info li::before { content: "🎤"; margin-left: 7px }
.MT_Info li:first-child::before { content: "📺" }
.MT_Info li:last-child::before { content: "🏆" }
.AY_Inner > div { flex: 0 0 auto; width: 33.33333333% }

.AYaGrid {
  position: relative;
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--post-width)), 1fr));
  --post-width: 220px;
  padding-bottom: 12px;
}
.gr-inner {
  background: var(--match-bg);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: block;
}
.gr-info { padding: 10px }
.gr-img {
  height: 160px;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
.gr-info h3 {
  margin: 0;
  font-size: 15px;
  max-height: 90px;
  overflow: hidden;
  font-weight: 500;
  height: 50px;
  color: inherit;
}
.AlbaMorBtn {
  text-align: center;
  margin: 15px auto;
  position: relative;
  width: 100%;
  clear: both;
}
.LoadMOreNews {
  position: relative;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  clear: both;
  min-width: 170px;
  border: 1px solid var(--Gray2);
  background: var(--Gray1);
  margin: 8px auto 5px;
  padding: 8px 15px;
  font-size: 91%;
  font-weight: 400;
  height: 40px;
  box-sizing: border-box;
  border-radius: 20px;
  color: inherit;
}

.EntryHeader {
  margin-bottom: 20px;
  padding: 15px 20px;
  background: var(--bk-hd-bg);
  border-radius: var(--rounded) var(--rounded) 0 0;
  border-bottom: 1px solid var(--Gray1);
}
.EntryTitle { overflow: hidden; font-size: 22px; font-weight: 500 }
.entry {
  font-size: 15px;
  text-align: justify;
  font-weight: 400;
  line-height: 30px;
}
.entry-content { padding: 15px 20px; clear: both }
.entry p { margin-bottom: 15px }
.entry h1,
.entry h2,
.entry h3 {
  display: table;
  padding: 5px 15px;
  background-color: var(--Gray1);
  font-size: 17px;
  font-weight: 600;
  margin: 15px 0;
  text-align: right;
  border-radius: 8px;
}
.entry iframe {
  max-width: 100%;
  display: table;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--Gray1);
}

.video-serv {
  margin-top: 15px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 5px;
  clear: both;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.video-serv a,
.video-serv > span {
  cursor: pointer;
  background: var(--main_color);
  border-radius: 4px;
  text-shadow: 0 1px 1px #000;
  color: #fff !important;
  font-weight: bold;
  padding: 5px 15px;
  font-size: 16px;
  flex: 1;
  text-align: center;
  margin: 3px;
}
.video-serv a:hover,
.video-serv > span:hover { background: #931800 }

.server-body { margin-bottom: 11px; width: 100%; overflow: hidden; position: relative }
.server-body iframe { max-width: 100%; width: 100%; height: 100% }
/* 3.8.34 stadium-stream-card — stream; prefer ../shared-stream when enqueued */
#sv-ajax-server {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #1f2024;
  overflow: hidden;
  padding-top: 0;
  box-sizing: border-box;
}
#sv-ajax-server iframe,
.entry #sv-ajax-server iframe,
.entry-content #sv-ajax-server iframe,
#sv-ajax-server #video-iframe {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block; /* beat .entry iframe { display:table } */
  background: #000;
  aspect-ratio: auto;
}
#sv-ajax-server:fullscreen,
#sv-ajax-server:-webkit-full-screen {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}
.sv-fs-btn {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 8px 0 16px;
  padding: 12px 20px;
  background: var(--main_color);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}
.sv-fs-btn:hover { filter: brightness(1.08) }

.table-bordered {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--Gray1);
  border-radius: 8px;
}
.table-bordered tr { border-bottom: 1px solid var(--Gray3) }
.table-bordered tr:last-child { border: 0 }
.table-bordered td,
.table-bordered th,
table th {
  font-weight: 500;
  padding: 12px;
  line-height: 25px;
}
.table-bordered td { border-right: 1px solid var(--Gray3) }
.AY-MatchInfo { padding: 0 0 12px }

.post-footer { padding: 0 12px 12px; overflow: hidden }
.post-share {
  overflow: hidden;
  border-radius: var(--rounded);
  padding: 12px;
  background: var(--Gray1);
  margin-top: 12px;
}
.share-links { text-align: center; display: flex }
.share-links li { width: 25% }
.share-links li a {
  height: 40px;
  width: 100%;
  color: #fff !important;
}
.share-links .facebook { --btn-bg: #126de3 }
.share-links .twitter { --DarkColor: #000; --btn-bg: var(--DarkColor) }
.share-links .whatsapp { --btn-bg: #008a0d }
.share-links .telegram { --btn-bg: #027bb8 }

.message-box {
  color: #2c7635;
  background-color: #dff0d4;
  border: #d6e9c4 solid 1px;
  padding: 4px 15px;
  border-radius: var(--rounded);
  margin: 0 auto 10px;
  font-size: 14px;
  width: 100%;
}
html.Night .message-box,
body.Night .message-box {
  color: #9ad7a3;
  background: #1c2733;
  border-color: #2b3b4d;
}

#AYaFooter {
  position: relative;
  margin-top: 15px;
  width: 100%;
  box-shadow: 0 0 4px var(--bk-shadow);
}
.FW-Area { background: var(--footer_bd); width: 100% }
.FW-Area li {
  padding: 0;
  list-style: outside;
  color: #3fc75d;
  width: auto;
  max-width: 100%;
  margin-right: 0;
  padding-inline-start: 16px;
}
.FW-Area li a {
  color: #484848;
  display: block;
  font-size: 14px;
  line-height: 33px;
}
html.Night .FW-Area li a,
body.Night .FW-Area li a { color: #fff !important }

.FWidget { width: 25%; padding: 20px 12px; box-sizing: border-box }
.FWidget.no-items { padding: 0 }
.FW-Title { margin-bottom: 10px; position: relative }
.FW-Title::before {
  background: var(--main_color);
  content: "";
  height: 3px;
  position: absolute;
  width: 23px;
  bottom: -1.5px;
}
.FW-Title .title {
  border-bottom: var(--footer_border) solid 1px;
  padding-bottom: 8px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
}
html.Night .FW-Title { --footer_border: #1c2733 }

.AYa-SiteInfo { position: relative }
.AYa-SiteInfo a {
  font-size: 13px;
  padding: 0 7px;
  display: block;
  color: var(--cop_color);
}
.SnfoInner {
  background: var(--cop_bd);
  color: var(--cop_color);
  padding: 20px 0;
}
.SnfoInner .cp-text { font-size: 13px }
.footer_creared a { color: var(--cop_color) }

#tom-match,
#yes-match,
.sub-menu { display: none !important }

@media screen and (min-width: 1001px) {
  .AYaLogo { width: 200px; margin: 8px 0 }
  .hed-btn.op,
  .hed-btn.mo,
  .CloseNave { display: none !important }
  .AYaMainNav { align-items: center; display: flex }
  .MainMenu { flex: 1; display: flex; flex-wrap: wrap }
}

@media screen and (max-width: 1000px) {
  .AYaLogo { margin: 8px auto; width: 55%; max-width: 360px; flex: 0 0 auto }
  .AYaMainNav {
    float: none;
    z-index: 99;
    height: 100%;
    width: 280px;
    position: fixed;
    top: 0;
    right: -300px;
    margin: auto;
    transition: all .7s ease 0s;
    padding: 60px 15px 15px;
    overflow-x: hidden;
    box-shadow: 0 1px 6px rgba(32, 33, 36, .4);
    background: var(--LightColor);
  }
  html.OpenMenu .AYaMainNav { right: 0 }
  .MainMenu li { width: 100%; margin-bottom: 15px }
  .MainMenu li a {
    background: var(--DarkColor);
    padding: 6px 12px 7px;
    color: #fff;
    border-radius: var(--rounded);
  }
  .AYaSocial { justify-content: space-between }
  .hed-btn.op,
  .hed-btn.mo { height: 40px; width: 40px }
  .liwte .line {
    display: flex;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 1px;
    margin: 5px 0;
  }
  .CloseNave {
    display: inline-block;
    cursor: pointer;
    left: calc(50% - 14px);
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
  }
  .CloseNave .line {
    background: var(--DarkColor);
    position: absolute;
    width: 22px;
    height: 3px;
  }
  .CloseNave .line.line-1 { transform: rotate(45deg) }
  .CloseNave .line.line-2 { transform: rotate(-45deg) }
  html.Night .CloseNave .line,
  .Night .CloseNave .line { background: #fff }
}

.SiteOverlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
  background-color: rgba(0, 0, 0, .8);
}
html.OpenMenu .SiteOverlay {
  visibility: visible;
  opacity: 1;
  cursor: pointer;
  height: 100%;
}
html.OpenMenu,
html.OpenMenu > body { overflow: hidden }

@media screen and (max-width: 900px) {
  .FWidget { width: 50% }
}
@media screen and (max-width: 480px) {
  .FWidget { width: 100% }
}

@media screen and (max-width: 500px) {
  body { --yall-padding: 8px }
  .AYb_Head { padding: 8px }
  .LogoImage { height: 55px; width: 160px }
  .AY-Fixture .AYb_Head h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }
  .AY-Dtab { width: 100% }
  .AY-Dtab li { margin: 0; flex: 1; height: 100% }
  .AY-Dtab li a {
    height: 100%;
    display: flex;
    padding-right: 0;
    padding-left: 0;
    font-size: 14px;
  }
  .TM_Logo img { margin-bottom: 0; width: 50px; height: 50px }
  .MT_Team { flex-direction: column !important }
  .TM_Logo { width: 100% }
  .MT_Data { margin: 13px auto }
  .MT_Info li { font-size: 11px !important; padding: 5px 3px 7px }
  .AYaGrid { --post-width: 280px }
  .gr-inner { display: flex; gap: 2px }
  .gr-img { height: 85px !important; min-width: 125px; width: 125px !important }
  .gr-info h3 { height: 55px; line-height: 18px }
  .AYaLogo .SiteName { font-size: 16px; line-height: 1.3 }
}

@media screen and (max-width: 768px) {
  :root { --font_type: Segoe UI }
}

.MtCard {
  background: var(--LightColor);
  padding: 12px;
  border-radius: var(--rounded);
  margin-bottom: 15px;
  box-shadow: 0 0 4px var(--bk-shadow);
}
.backMatch {
  background: url("../img/b.jpg") 0 0 / 100% 100% no-repeat;
  height: 232px;
  border-radius: var(--rounded);
  overflow: hidden;
}
.McInner {
  display: flex !important;
  align-items: center !important;
  height: 100%;
  background: rgba(0, 0, 0, .59);
  padding: 50px 0;
}
.McTeam {
  width: 40%;
  text-align: center;
  color: #fff;
}
.McTeam.ce { width: 20% }
.TmFlag {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.TmNeam {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
}
.matchvs {
  color: #fff;
  font-size: 80px;
  font-weight: 600;
  line-height: 120px;
  text-align: center;
}

.aspi_matchTabs {
  display: flex;
  margin-bottom: 20px;
}
.aspi_tab {
  flex: 1;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 8px;
  margin-left: 4px;
  text-align: center;
  background: var(--Gray1);
  color: #222;
}
.aspi_tab:last-child { margin-left: 0 }
.aspi_tab.is-active { background: #fff; color: #222 }
html.Night .aspi_tab,
body.Night .aspi_tab { color: #fff; background: #1c2733 }
html.Night .aspi_tab.is-active,
body.Night .aspi_tab.is-active { background: #263545 }
.aspi_tabs_content { display: none }
.aspi_tabs_content.is-active { display: block }

.apc-gated-flag {
  background: rgba(255,255,255,.08);
  border: 2px dashed rgba(255,255,255,.25);
  border-radius: 10px;
}
.apc-gated-block .entry-content { padding: 30px 15px }

@media screen and (max-width: 500px) {
  .backMatch { height: 180px }
  .TmFlag { width: 64px; height: 64px }
  .matchvs { font-size: 42px; line-height: 70px }
  .TmNeam { font-size: 13px }
  .McInner { padding: 24px 0 }
}

.kora-announce,
.apc-hero,
.kora-totop,
.apc-section-header,
.kora-sites-wrap { display: none !important }

/* hide leftover championship filters */
.lh-league-filter,
#lh-league-select,
label.lh-league-filter,
.apc-league-filter,
select[aria-label="كل البطولات"],
.lh-filter-sep,
.md-league-chips,
.md-league-chip{
  display:none !important;
}

/* ── مباريات أخرى — apply-after-3832 (replaces flex+duplicate patch) ──
   Stadium dequeues koraonline-matches.css. Cards are direct AYaGrid children.
   Use --LightColor (not --match-bg=#eceef2 body gray). Keep CSS grid, not flex. */
.apc-related-block {
  margin-top: 24px;
  direction: rtl;
}
.apc-related-block .AYb_Head {
  margin-bottom: 12px;
}
.apc-related-grid,
.AYaGrid.Nfeed.apc-related-grid,
.AYaGrid.Nfeed:has(> .apc-related-card) {
  --post-width: 168px;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(var(--post-width), 1fr)) !important;
  grid-gap: 10px !important;
  gap: 10px !important;
  padding: 0 0 10px;
  direction: rtl;
  align-items: stretch;
}
.apc-related-grid > .apc-related-card,
.AYaGrid.Nfeed > .apc-related-card {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: center !important;
  column-gap: 6px !important;
  row-gap: 8px !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 13px 10px 14px !important;
  background: var(--LightColor, #fff) !important;
  border: 1px solid var(--Gray2, #ddd) !important;
  border-radius: var(--rounded, 5px) !important;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .06) !important;
  text-decoration: none !important;
  color: inherit !important;
  direction: rtl;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.apc-related-grid > .apc-related-card:hover,
.AYaGrid.Nfeed > .apc-related-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--main_color, #931800) 35%, var(--Gray2, #ddd)) !important;
  box-shadow: 0 6px 14px -8px rgba(16, 24, 40, .18) !important;
  color: inherit !important;
}
.apc-related-card .apc-rc-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .14);
}
.apc-related-card .apc-rc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.apc-related-card .apc-rc-logo i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #475467;
}
.apc-related-card .apc-rc-time {
  font-size: 15px;
  font-weight: 800;
  color: inherit;
  direction: ltr;
  line-height: 1;
  white-space: nowrap;
}
.apc-related-card .apc-rc-name {
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  opacity: .88;
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apc-related-card .apc-rc-pill {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--main_color, #931800);
  color: #fff;
  white-space: nowrap;
}
.apc-related-card.is-live .apc-rc-pill {
  background: #c62828;
}
.apc-related-card.is-upcoming .apc-rc-pill {
  background: #e3efff;
  color: #1565c0;
}
.apc-related-card.is-ended .apc-rc-pill {
  background: #eceff3;
  color: #344054;
}
html.Night .apc-related-card,
body.Night .apc-related-card {
  background: var(--LightColor, #263545) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}
html.Night .apc-related-card .apc-rc-logo,
body.Night .apc-related-card .apc-rc-logo {
  background: #1c2733;
}
html.Night .apc-related-card .apc-rc-logo i,
body.Night .apc-related-card .apc-rc-logo i {
  color: #c5d0dc;
}
html.Night .apc-related-card.is-upcoming .apc-rc-pill,
body.Night .apc-related-card.is-upcoming .apc-rc-pill {
  background: rgba(21, 101, 192, .35);
  color: #90caf9;
}
html.Night .apc-related-card.is-ended .apc-rc-pill,
body.Night .apc-related-card.is-ended .apc-rc-pill {
  background: rgba(255, 255, 255, .12);
  color: #c5d0dc;
}
@media screen and (max-width: 500px) {
  .apc-related-grid,
  .AYaGrid.Nfeed.apc-related-grid,
  .AYaGrid.Nfeed:has(> .apc-related-card) {
    --post-width: 148px;
    grid-gap: 8px !important;
    gap: 8px !important;
  }
  .apc-related-grid > .apc-related-card,
  .AYaGrid.Nfeed > .apc-related-card {
    padding: 11px 8px 12px !important;
  }
  .apc-related-card .apc-rc-logo {
    width: 32px;
    height: 32px;
  }
  .apc-related-card .apc-rc-time { font-size: 14px; }
  .apc-related-card .apc-rc-name { font-size: 11.5px; }
}

/* ═══ classic-bleed kill (3.8.32) — classic green chrome must not paint AYa stadium ═══ */
body.apc-skin-stadium .apc-header,
body.apc-skin-stadium .apc-hdr-inner,
body.apc-skin-stadium .apc-desk-menu,
body.apc-skin-stadium .apc-mob-drawer,
body.apc-skin-stadium .apc-mob-overlay,
body.apc-skin-stadium .apc-ham,
body.apc-skin-stadium .apc-dark-btn,
body.apc-skin-stadium .apc-hero,
body.apc-skin-stadium .apc-tabs.nav-tabs,
body.apc-skin-stadium .kora-matches-panel,
body.apc-skin-stadium .kora-match-card,
body.apc-skin-stadium .match-container,
body.apc-skin-stadium .kora-brand,
body.apc-skin-stadium .kora-totop,
body.apc-skin-stadium .kora-announce,
body.apc-skin-stadium .apc-sites-grid,
body.apc-skin-stadium .kora-news-block,
body.apc-skin-stadium .apc-home-news,
body.apc-skin-stadium .ys-home-news,
body.apc-skin-stadium .lh-league-filter,
body.apc-skin-stadium #lh-league-select,
body.apc-skin-stadium .apc-league-filter,
body.apc-skin-stadium .lh-filter-sep,
body.apc-skin-stadium .apc-footer.lh-footer,
body.apc-skin-stadium .sl-match-hero,
body.apc-skin-stadium .coMatch,
body.apc-skin-stadium .menu-section {
  display: none !important;
}

/* Remap classic green tokens → stadium AYa red if classic :root leaked */
body.apc-skin-stadium {
  --green: #931800 !important;
  --green-d: #7a1400 !important;
  --green-l: #b81e00 !important;
  --main-color: #931800 !important;
  --kora-red: #931800 !important;
  --kora-red-d: #7a1400 !important;
  --kora-red-l: #b81e00 !important;
  --kora-accent: #931800 !important;
  --kora-tod: var(--todaybg, #931800) !important;
  --soon-g: #931800 !important;
  --sl-red: #931800 !important;
  --sl-soon: #931800 !important;
  --hero-c1: #931800 !important;
  --hero-c2: #af5100 !important;
}

/* Classic SEO intro (if ever printed under stadium) → AYa-neutral */
body.apc-skin-stadium .apc-home-intro-kw,
body.apc-skin-stadium .apc-home-intro-kw:hover {
  color: var(--main_color, #931800) !important;
  border-bottom-color: rgba(147, 24, 0, 0.35) !important;
}
body.apc-skin-stadium .apc-home-intro .box-title h2.section-title-matches::before {
  background: var(--main_color, #931800) !important;
}

/* ═══ important-fixes (3.8.32) — worst !important conflicts ═══ */

/* 1) body.Night a { color:#fff !important } beat .AY_Seo a { #1b5e20 !important }
      Specificity: body.Night .AY_Seo a (0,2,2) > body.Night a (0,1,2) */
html.Night .AY_Seo a,
.Night .AY_Seo a,
body.Night .AY_Seo a {
  color: #1b5e20 !important;
  text-decoration: underline;
}
html.Night .AY_Seo strong,
.Night .AY_Seo strong,
body.Night .AY_Seo strong {
  color: #2e7d32 !important;
}
html.Night .AY_Seo p,
.Night .AY_Seo p,
body.Night .AY_Seo p,
html.Night .AY_Seo .AYb_Inner h2,
.Night .AY_Seo .AYb_Inner h2,
body.Night .AY_Seo .AYb_Inner h2 {
  color: #1b5e20 !important;
}

/* 2) Classic .container { max-width:… !important } vs stadium 1024px */
body.apc-skin-stadium .container,
.apc-skin-stadium .container {
  max-width: 1024px !important;
}

/* 3) Classic body.single-post { background:#fff !important } on match pages */
body.apc-skin-stadium.single-post {
  background: var(--body_bg, #f4f6fa) !important;
  color: #000 !important;
}
html.Night body.apc-skin-stadium.single-post,
body.apc-skin-stadium.Night.single-post,
body.apc-skin-stadium.single-post.Night {
  background: var(--body_bg, #1c2733) !important;
  color: #fff !important;
}

/* 4) Classic apc_dynamic_css .apc-footer / green tokens — AYa footer owns chrome */
body.apc-skin-stadium #AYaFooter,
body.apc-skin-stadium .AYaFooter {
  background: var(--DarkColor, #0f141a) !important;
}

/* overflow sweep (3.8.33) — surgical */
html, body.apc-skin-stadium {
  overflow-x: clip;
  max-width: 100%;
}
body.apc-skin-stadium .container,
.apc-skin-stadium .container {
  width: 100%;
  max-width: min(1024px, 100%);
}

/* tags-css (3.8.33) — stadium chip clouds */
/* ── Tag cloud / hashtag chips + footer kw chips (stadium day + night) · tags-css 3.8.33 ── */
body.apc-skin-stadium .post-tags-wrap,
body.apc-skin-stadium .post-tags-wrap.sl-seo-hashtags,
.AY_Seo .post-tags-wrap,
.post-tags-wrap.sl-seo-hashtags {
  width: 100%;
  margin: 16px 0 10px !important;
  padding: 0 !important;
  overflow: visible !important;
}
body.apc-skin-stadium .post-tags.sl-hashtags,
body.apc-skin-stadium ul.post-tags.sl-hashtags,
.AY_Seo .post-tags.sl-hashtags,
ul.post-tags.sl-hashtags {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.apc-skin-stadium .post-tags.sl-hashtags li,
.AY_Seo .post-tags.sl-hashtags li,
ul.post-tags.sl-hashtags li {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.apc-skin-stadium .post-tags.sl-hashtags li::marker,
body.apc-skin-stadium .post-tags.sl-hashtags li::before,
ul.post-tags.sl-hashtags li::marker,
ul.post-tags.sl-hashtags li::before {
  content: none !important;
  display: none !important;
}
body.apc-skin-stadium .post-tags.sl-hashtags li a,
body.apc-skin-stadium .post-tags.sl-hashtags li span,
ul.post-tags.sl-hashtags li a,
ul.post-tags.sl-hashtags li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 6px 14px !important;
  border: 1px solid var(--Gray2, #ddd) !important;
  border-radius: 999px !important;
  background: var(--LightColor, #fff) !important;
  color: var(--DarkColor, #273340) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html.Night body.apc-skin-stadium .post-tags.sl-hashtags li a,
body.Night.apc-skin-stadium .post-tags.sl-hashtags li a,
html.Night ul.post-tags.sl-hashtags li a,
body.Night ul.post-tags.sl-hashtags li a {
  background: var(--LightColor, #263545) !important;
  border-color: var(--Gray2, #2b3b4d) !important;
  color: #fff !important;
}
body.apc-skin-stadium .post-tags.sl-hashtags li a:hover,
ul.post-tags.sl-hashtags li a:hover {
  border-color: var(--main_color, #931800) !important;
  color: var(--main_color, #931800) !important;
}

.apc-ft-kws,
.apc-f-kws {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 0 !important;
  margin: 0 0 12px !important;
}
.apc-ft-kws a,
.apc-f-kws a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 14px !important;
  border: 1px solid var(--footer_border, #ddd) !important;
  border-radius: 999px !important;
  background: var(--footer_bd, #fff) !important;
  color: var(--footer_color, #222) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html.Night .apc-ft-kws a,
body.Night .apc-ft-kws a,
html.Night .apc-f-kws a,
body.Night .apc-f-kws a {
  background: var(--LightColor, #263545) !important;
  border-color: var(--Gray2, #2b3b4d) !important;
  color: #fff !important;
}
.apc-ft-kws a:hover,
.apc-f-kws a:hover {
  border-color: var(--main_color, #931800) !important;
  color: var(--main_color, #931800) !important;
}

/* ================================================================
   Stadium home — day nav active state + mid-width clip fix
   Base 3.8.30 main.css: .AYb_Head overflow:hidden + stack only ≤500px;
   PHP emits .aya-btn.active with no matching CSS.
   Append to skins/stadium/assets/css/main.css
   ================================================================ */

/* Allow wrapped tabs to stay visible on mid widths */
.AY-Fixture .AYb_Head.fx-wrap {
  overflow: visible;
  align-items: center;
  gap: 8px;
}

/* Selected day — class already output by functions.php yalla branch */
.AY-Dtab a.aya-btn.active {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.28);
  z-index: 1;
}
.AY-Dtab a.aya-btn:not(.active) {
  opacity: 0.72;
}
.AY-Dtab a.aya-btn:hover {
  opacity: 1;
}

/* Stack title + tabs before ~550px content needs clip (was 500 only) */
@media screen and (max-width: 720px) {
  .AY-Fixture .AYb_Head h2.aya-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }
  .AY-Dtab {
    width: 100%;
  }
  .AY-Dtab li {
    margin: 0;
    flex: 1;
    height: auto;
    min-width: 0;
  }
  .AY-Dtab li a {
    width: 100%;
    height: auto;
    display: flex;
    padding-right: 0;
    padding-left: 0;
    font-size: 13px;
  }
}

/* ================================================================
   Stadium home — country TZ chip beside AY-Dtab (product: مصر)
   Hide legacy .tmz-name once PHP emits apc_timezone_selector()
   inside .AYb_Head (see day-nav-tz.snippet.php).
   Append to skins/stadium/assets/css/main.css
   ================================================================ */

/* Legacy Cairo label above panel — replaced by interactive TZ */
.apc-skin-stadium .tmz-name,
body.apc-skin-stadium .tmz-name {
  display: none !important;
}

.AY-Fixture .AYb_Head .AY-tz,
.AY-Fixture .AYb_Head .apc-tz-dd {
  flex: 0 0 auto;
  margin-inline-start: auto;
  align-self: center;
}

.AY-Fixture .AYb_Head .apc-tz-dd #apc-tz-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 10px !important;
  border-radius: var(--rounded, 8px) !important;
  border: 1px solid var(--Gray2, #ddd) !important;
  background: var(--LightColor, #fff) !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: 13px !important;
  cursor: pointer;
  white-space: nowrap;
}

.AY-Fixture .AYb_Head .apc-tz-dd #apc-tz-menu {
  z-index: 40;
}

html.Night .AY-Fixture .AYb_Head .apc-tz-dd #apc-tz-btn,
body.Night .AY-Fixture .AYb_Head .apc-tz-dd #apc-tz-btn {
  background: var(--LightColor, #263545) !important;
  border-color: var(--Gray2, #2b3b4d) !important;
  color: #fff !important;
}

html.Night .AY-Fixture .AYb_Head .apc-tz-dd #apc-tz-menu,
body.Night .AY-Fixture .AYb_Head .apc-tz-dd #apc-tz-menu {
  background: #1c2733 !important;
  border-color: #2b3b4d !important;
  color: #fff !important;
}

@media screen and (max-width: 720px) {
  .AY-Fixture .AYb_Head .AY-tz,
  .AY-Fixture .AYb_Head .apc-tz-dd {
    width: 100%;
    margin-inline-start: 0;
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }
}

/* ================================================================
   Stadium home — Night mint for welcome + .AY_Seo
   Same intent as ../stadium-match/ay-seo-night.patch.css
   (duplicate kept so home pack is self-contained).
   Day rules already in main.css; Night never loaded on yalla path.
   Also beats body.Night a { color:#fff !important } on SEO links.
   Append to skins/stadium/assets/css/main.css
   ================================================================ */

html.Night .apc-welcome-notice,
body.Night .apc-welcome-notice {
  background: #122018;
  border-color: #1e3a28;
}

html.Night .apc-welcome-notice p,
body.Night .apc-welcome-notice p {
  color: #c8e6c9;
}

html.Night .apc-welcome-notice strong,
body.Night .apc-welcome-notice strong {
  color: #81c784;
}

html.Night .AY_Seo,
body.Night .AY_Seo {
  background: #122018 !important;
  border-color: #1e3a28;
}

html.Night .AY_Seo p,
html.Night .AY_Seo .AYb_Inner h2,
html.Night .AY_Seo a,
body.Night .AY_Seo p,
body.Night .AY_Seo .AYb_Inner h2,
body.Night .AY_Seo a {
  color: #c8e6c9 !important;
}

html.Night .AY_Seo strong,
body.Night .AY_Seo strong {
  color: #81c784 !important;
}

/* 3.8.34 stadium-stream-card — بطاقة المباراة TABLE always visible (unique; keep even with shared-stream) */
.AY-MatchInfo,
.entry .AY-MatchInfo {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 0 12px;
}
.AY-MatchInfo > h2 {
  display: block !important;
  visibility: visible !important;
}
.AY-MatchInfo .table-bordered,
.AY-MatchInfo table.table,
.entry .AY-MatchInfo table.table-bordered {
  display: table !important;
  width: 100% !important;
  visibility: visible !important;
  height: auto !important;
  border-collapse: collapse;
  background-color: var(--Gray1);
  border-radius: 8px;
  margin: 0 0 8px;
}
.AY-MatchInfo .table-bordered tr,
.AY-MatchInfo table.table tr {
  display: table-row !important;
  visibility: visible !important;
}
.AY-MatchInfo .table-bordered th,
.AY-MatchInfo .table-bordered td,
.AY-MatchInfo table.table th,
.AY-MatchInfo table.table td {
  display: table-cell !important;
  visibility: visible !important;
  font-weight: 500;
  padding: 12px;
  line-height: 25px;
}

/* ================================================================
   Stadium 3.8.34 — بطاقة المباراة table always visible
   Append to skins/stadium/assets/css/main.css

   Stadium main.css does not hide .AY-MatchInfo (unlike v30's blanket
   .table-bordered { display:none }). This is a defensive last-wins lock
   against classic/pro bleed or dyn CSS. Pair with PHP that drops the
   نتيجة team-name row (team names stay in MtCard hero only).
   ================================================================ */

.AY-MatchInfo {
  display: block !important;
  visibility: visible !important;
  padding: 0 0 12px;
}

.AY-MatchInfo .table-bordered,
.AY-MatchInfo table.table {
  display: table !important;
  width: 100% !important;
  visibility: visible !important;
  height: auto !important;
}

/* ================================================================
   Stadium — optional P3: Night .is-live pill for مباريات أخرى
   Day .is-live already red in 3.8.33 related-cards block.
   Night only styled upcoming/ended — live kept day red (OK) but
   can wash out on dark cards; give a brighter Night live chip.
   Append to skins/stadium/assets/css/main.css if desired.
   ================================================================ */

html.Night .apc-related-card.is-live .apc-rc-pill,
body.Night .apc-related-card.is-live .apc-rc-pill {
  background: #e53935;
  color: #fff;
}

/* ================================================================
   Stadium stream — OPTIONAL in-skin fallback only.
   Prefer consolidated: ../shared-stream/assets/css/shared-stream-fix.css
   (covers #sv-ajax-server + #video-iframe + .sv-fs-btn).

   Use this patch ONLY if shared-stream is NOT enqueued.
   Equivalent selectors live in shared-stream; do not double-apply
   conflicting rules. Aligns with stadium-match-audit P0 diagnosis:
   .entry iframe { display:table } + height:100% → empty player /
   zoom-only UX. Append to skins/stadium/assets/css/main.css.
   ================================================================ */

.server-body {
  margin-bottom: 11px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

#sv-ajax-server {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 280px !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 8px;
  background: #1f2024;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
}

#sv-ajax-server iframe,
#sv-ajax-server #video-iframe,
.entry #sv-ajax-server iframe,
.entry-content #sv-ajax-server iframe {
  position: absolute !important;
  inset: 0 !important;
  display: block !important; /* beat .entry iframe { display:table } */
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: #000;
  aspect-ratio: auto !important;
}

#sv-ajax-server:fullscreen,
#sv-ajax-server:-webkit-full-screen {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0;
  background: #000;
}

.sv-fs-btn {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 16px;
  z-index: 1;
}

/* ==========================================================================
   stream-qa — STADIUM #sv-ajax-server force
   Target: skins/stadium/assets/css/main.css (append EOF)
   Prefer: ../stadium-match-audit/patches/stream-aspect.patch.css
   (no stadium-stream-card/ dir — that pack name maps here / stadium-match-audit)

   Beats .entry iframe { display:table } so % / absolute fill works;
   replaces fixed height:500px with aspect-ratio 16/9.
   .sv-fs-btn stays sibling below player.
   ========================================================================== */

.server-body {
  margin-bottom: 11px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

#sv-ajax-server {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 280px !important;
  aspect-ratio: 16 / 9 !important;
  padding-top: 0 !important;
  border-radius: 8px;
  background: #1f2024;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#sv-ajax-server iframe,
#sv-ajax-server #video-iframe,
.entry #sv-ajax-server iframe,
.entry-content #sv-ajax-server iframe {
  position: absolute !important;
  inset: 0 !important;
  display: block !important; /* beat .entry iframe { display:table } */
  visibility: visible !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  background: #000;
  aspect-ratio: auto !important;
}

#sv-ajax-server:fullscreen,
#sv-ajax-server:-webkit-full-screen {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0;
  background: #000;
}

.sv-fs-btn {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100%;
  margin: 8px 0 16px;
  z-index: 1;
}

/* ================================================================
   mobile-match (fixes-3833) — stadium · match pages mobile
   Base: 3.8.33 · append to skins/stadium/assets/css/main.css
   Safe after match-card-stream / on 3.8.34
   ================================================================ */

/* 1) Stream aspect-ratio — #sv-ajax-server (was fixed height:500px) */
body.apc-skin-stadium #sv-ajax-server,
#sv-ajax-server {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 220px !important;
  aspect-ratio: 16 / 9 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #1f2024;
}

body.apc-skin-stadium #sv-ajax-server iframe,
#sv-ajax-server iframe {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

body.apc-skin-stadium #sv-ajax-server:fullscreen,
body.apc-skin-stadium #sv-ajax-server:-webkit-full-screen,
#sv-ajax-server:fullscreen,
#sv-ajax-server:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}

/* 2) بطاقة (.AY-MatchInfo table) — overflow-x */
body.apc-skin-stadium .AY-MatchInfo,
.AY-MatchInfo {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  box-sizing: border-box !important;
}

body.apc-skin-stadium .AY-MatchInfo .table-bordered,
body.apc-skin-stadium .AY-MatchInfo table.table,
.AY-MatchInfo .table-bordered,
.AY-MatchInfo table.table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  visibility: visible !important;
  height: auto !important;
}

body.apc-skin-stadium .AY-MatchInfo .table-bordered th,
body.apc-skin-stadium .AY-MatchInfo .table-bordered td,
.AY-MatchInfo .table-bordered th,
.AY-MatchInfo .table-bordered td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 3) No page horizontal scroll on match (stadium has no bottom-nav) */
@media (max-width: 768px) {
  html:has(body.apc-skin-stadium.single-post),
  html:has(body.apc-skin-stadium.single-server),
  body.apc-skin-stadium.single-post,
  body.apc-skin-stadium.single-server {
    overflow-x: clip !important;
    max-width: 100% !important;
  }

  body.apc-skin-stadium.single-post .container,
  body.apc-skin-stadium.single-server .container,
  body.apc-skin-stadium .AY_Block,
  body.apc-skin-stadium #sv-ajax-server,
  body.apc-skin-stadium .AY-MatchInfo,
  body.apc-skin-stadium .post-share,
  body.apc-skin-stadium .share-links {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.apc-skin-stadium .share-links {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.apc-skin-stadium #sv-ajax-server {
    min-height: 200px !important;
    border-radius: 6px !important;
  }

  body.apc-skin-stadium .AY-MatchInfo .table-bordered th,
  body.apc-skin-stadium .AY-MatchInfo .table-bordered td,
  body.apc-skin-stadium .AY-MatchInfo table th,
  body.apc-skin-stadium .AY-MatchInfo table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}
