/*
Theme Name:     Mady4host-YallaShoot-V14
Description:    WordPress Sports & Matches Theme - High Performance 2026 Edition
Author:         YallaShoot & Mady4host
Version:        14.0
License:        license purchased
Text Domain:    yalla
Tags:           sports,matches,football,responsive,seo,dark-mode,fast
*/

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
  --main-color: #0284c7;
  --main-hover: #0369a1;
  --dark: #0f172a;
  --body-bd: #f1f5f9;
  --header-bd: #ffffff;
  --header-color: #0f172a;
  --logo-bd: #0284c7;
  --logo-color: #ffffff;
  --surface: #ffffff;
  --surface-card: #f8fafc;
  --border: #e2e8f0;
  --border-subtle: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --live: #dc2626;
  --soon: #15803d;
  --ended: #475569;
  --GrayColor: #f1f5f9;
  --Gray1: #f1f5f9;
  --Gray2: #e2e8f0;
  --Gray3: #cbd5e1;
  --LightColor: #ffffff;
  --LightColor2: #f8fafc;
  --DarkColor: #0f172a;
  --cop-bd: #e2e8f0;
  --cop-color: #0f172a;
  --Wtitle-bg: #0f172a;
  --todaybg: #0284c7;
  --yrsdaybg: #1e3a8a;
  --tomorobg: #d97706;
  --v13-primary: var(--main-color);
  --v13-on-primary: #ffffff;
  --v13-bg: var(--body-bd);
  --v13-surface: var(--surface);
  --v13-border: var(--border);
  --v13-text: var(--text-primary);
  --v13-muted: var(--text-muted);
  --v13-live: var(--live);
  --v13-soon: var(--soon);
  --v13-ended: var(--ended);
  --v13-shadow: 0 1px 3px rgba(15,23,42,.08);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 24px rgba(15,23,42,.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Dark Mode Tokens */
:root .Night, html.Night, body.Night {
  --body-bd: #0b1120;
  --body_bg: #0b1120;
  --header-bd: #0f172a;
  --header_bg: #0f172a;
  --header-color: #f8fafc;
  --surface: #1e293b;
  --surface-card: #131e32;
  --border: #334155;
  --border-subtle: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --GrayColor: #131e32;
  --Gray1: #131e32;
  --Gray2: #334155;
  --Gray3: #1e293b;
  --LightColor: #1e293b;
  --LightColor2: #131e32;
  --DarkColor: #0b1120;
  --cop-bd: #0f172a;
  --cop-color: #94a3b8;
  --live: #ef4444;
  --soon: #22c55e;
  --ended: #334155;
  --v13-bg: #0b1120;
  --v13-surface: #1e293b;
  --v13-border: #334155;
  --v13-text: #f8fafc;
  --v13-muted: #94a3b8;
  --v13-live: #ef4444;
  --v13-soon: #22c55e;
  --v13-ended: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 10px 24px rgba(0,0,0,.55);
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
  list-style: none;
}

body {
  font-family: 'Neo Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, Tahoma, Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--body-bd);
  color: var(--text-primary);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--main-color);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ==========================================================================
   3. Container & Layout System (Expanded to 1180px)
   ========================================================================== */
.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

.d-flex, .d-fx { display: flex; }
.fx-cen { display: flex; align-items: center; }
.fx-wrap { display: flex; flex-wrap: wrap; }
.grow-1 { flex-grow: 1; }
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.fl-start { float: left; }
.fl-end { float: right; }
.rtl .fl-start { float: right; }
.rtl .fl-end { float: left; }
.d-none { display: none; }

.screen-reader, .says {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.v13-skip {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.v13-skip:focus {
  clip: auto;
  height: auto;
  width: auto;
  overflow: visible;
  top: 10px;
  right: 10px;
  z-index: 99999;
  background: var(--main-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
#AYaHeader, .AYaHeader {
  background: var(--header-bd);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  z-index: 40;
}

#AYaHeader .HdrInner, .AYaHeader .container {
  min-height: 74px;
}

.AYaLogo {
  min-width: 190px;
  background: var(--logo-bd);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.AYaLogo.textlogo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.AYaLogo span {
  color: var(--logo-color);
  display: block;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.AYaLogo span:last-child {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.LogoImage {
  display: flex;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.AYaMainNav {
  flex: 1;
  display: flex;
  align-items: center;
}

.MainMenu {
  display: flex;
  flex: 1;
  gap: 4px;
  align-items: center;
}

.MainMenu li > a {
  padding: 0 14px;
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--header-color);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.MainMenu li > a:hover,
.MainMenu li.current-menu-item > a {
  border-bottom-color: var(--main-color);
  color: var(--main-color);
}

.hed-btn {
  height: 38px;
  width: 38px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hed-btn:hover {
  background: var(--surface);
  border-color: var(--main-color);
  transform: scale(1.05);
}

.hed-btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--text-primary);
}

.hed-btn.mo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger & Close button styling */
.liwte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 20px;
  height: 20px;
}

.liwte .line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Desktop Header: Hide mobile toggle & close button completely */
@media screen and (min-width: 1001px) {
  .hed-btn.op,
  .CloseNave,
  .SiteOverlay {
    display: none !important;
  }
}

/* Mobile Header & Responsive Drawer */
@media screen and (max-width: 1000px) {
  #AYaHeader,
  .AYaHeader {
    position: relative;
    z-index: 999999 !important;
  }
  #AYaHeader .container {
    justify-content: space-between;
  }
  .hed-btn.op {
    display: inline-flex !important;
    order: 1;
    cursor: pointer;
  }
  .AYaLogo {
    order: 2;
    min-width: auto;
    padding: 6px 12px;
  }
  .AYaLogo span {
    font-size: 20px;
  }
  .hed-btn.mo {
    order: 3;
    cursor: pointer;
  }
  .AYaMainNav {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: -320px !important;
    left: auto !important;
    width: 290px !important;
    max-width: 85vw !important;
    background: var(--surface) !important;
    z-index: 1000000 !important;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.4) !important;
    padding: 65px 18px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  html.OpenMenu .AYaMainNav,
  body.OpenMenu .AYaMainNav {
    right: 0 !important;
    pointer-events: auto !important;
  }
  .CloseNave {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--surface-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
  .CloseNave:hover {
    background: var(--surface) !important;
    border-color: var(--main-color) !important;
  }
  .CloseNave .liwte {
    width: 18px !important;
    height: 18px !important;
    position: relative !important;
  }
  .CloseNave .liwte .line {
    position: absolute !important;
    width: 18px !important;
    height: 2px !important;
    background: var(--text-primary) !important;
    top: 8px !important;
    left: 0 !important;
    margin: 0 !important;
    border-radius: 2px !important;
  }
  .CloseNave .liwte .line-1 {
    transform: rotate(45deg) !important;
  }
  .CloseNave .liwte .line-2 {
    transform: rotate(-45deg) !important;
  }
  .MainMenu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .MainMenu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .MainMenu li > a {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 2 !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  }
  .MainMenu li > a:hover,
  .MainMenu li.current-menu-item > a,
  .MainMenu li > a:active {
    background: var(--main-color) !important;
    color: #ffffff !important;
    border-color: var(--main-color) !important;
  }
  .SiteOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
  }
  html.OpenMenu .SiteOverlay,
  body.OpenMenu .SiteOverlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer;
  }
  html.OpenMenu,
  body.OpenMenu {
    overflow: hidden !important;
  }
}

.AYaSocial {
  display: flex;
  gap: 6px;
  align-items: center;
}

.AYaSocial a {
  height: 36px;
  width: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s ease;
}

.AYaSocial a:hover {
  transform: translateY(-2px);
}

.AYaSocial .twitter a { background: #000; }
.AYaSocial .facebook a { background: #1877f2; }
.AYaSocial .telegram a { background: #24a1de; }
.AYaSocial .youtube a { background: #cd201f; }

/* ==========================================================================
   5. Hero Match Scoreboard (Single Match Card)
   ========================================================================== */
.hero-match-card, .coMatch, .MtCard {
  position: relative;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.backMatch {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #090e17 0%, #111a2e 50%, #0d1527 100%);
  color: #ffffff;
}

/* Atmospheric subtle pitch lighting */
.backMatch::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-match-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.hero-league-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.hero-league-badge svg {
  fill: #fbbf24;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.hero-status-live {
  background: var(--live);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.5);
}

.hero-live-pulse {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: heroPulse 1.4s infinite ease-in-out;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.hero-status-ended {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-status-soon {
  background: var(--soon);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(21, 128, 61, 0.4);
}

.McInner, .baMatch {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 24px;
}

.hero-team {
  width: 36%;
  text-align: center;
}

.hero-logo-wrap, .teamlogo {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  background: #ffffff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1 / 1;
}

.hero-team-name, .teamname {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-center {
  width: 28%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-score-board {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-score-sep {
  opacity: 0.6;
  font-weight: 300;
}

.matchvs {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
}

.hero-start-time {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.hero-pen-pill {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  display: inline-flex;
  gap: 6px;
}

.hero-meta-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #cbd5e1;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hero-meta-item svg {
  fill: #38bdf8;
}

/* ==========================================================================
   6. Matches Fixture Cards (Archive & Homepage)
   ========================================================================== */
.albaflex {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 4px;
  width: 100%;
}

.albaflex .live { order: 1; }
.albaflex .soon { order: 2; }
.albaflex .comming-soon, .albaflex .not-started { order: 3; }
.albaflex .end, .albaflex .finished, .albaflex .gools { order: 4; }

.match-container, .AY_Match {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.match-container:hover, .AY_Match:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

.AY_Inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.MT_Team {
  width: 36%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.MT_Team.TM1 {
  flex-direction: row;
}

.MT_Team.TM2 {
  flex-direction: row-reverse;
  text-align: left;
}
.rtl .MT_Team.TM2 {
  text-align: left;
}

.TM_Logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px;
  box-shadow: 0 2px 6px rgba(15,23,42,.06);
  display: grid;
  place-items: center;
}

.TM_Logo img, img.team-crest {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
}

.TM_Name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
}

.MT_Data {
  width: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.match-time, .MT_Time {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.result, .MT_Result {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 3px;
  line-height: 1.2;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.MT_Stat, .date {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 6px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.6;
}

.MT_Stat.live, .date.live, .match-timing .live {
  background: var(--live);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.MT_Stat.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: heroPulse 1.4s infinite ease-in-out;
}

.MT_Stat.soon, .date.soon, .match-timing .soon {
  background: var(--soon);
}

.MT_Stat.end, .date.end, .match-timing .end, .finished .MT_Stat {
  background: var(--ended);
}

/* Hide result for upcoming matches, hide time for live/ended matches */
.match-container.comming-soon .result,
.match-container.not-start .result,
.match-container.soon .result,
.AY_Match.comming-soon .MT_Result,
.AY_Match.soon .MT_Result,
.AY_Match.not-start .MT_Result {
  display: none !important;
}

.match-container.live .match-time,
.match-container.end .match-time,
.match-container.finished .match-time,
.AY_Match.live .MT_Time,
.AY_Match.end .MT_Time,
.AY_Match.finished .MT_Time {
  display: none !important;
}

.match-penalty-result {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-muted);
}

/* Bottom Metadata Bar */
.match-info, .MT_Info {
  border-top: 1px solid var(--border);
  background: var(--surface-card);
  width: 100%;
}

.match-info ul, .MT_Info ul {
  display: flex;
  align-items: center;
  width: 100%;
}

.match-info li, .MT_Info li, .mi-item {
  flex: 1;
  font-size: 13px;
  padding: 8px 10px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid var(--border);
}

.rtl .match-info li, .rtl .MT_Info li {
  border-left: 1px solid var(--border);
  border-right: none;
}

.match-info li:last-child, .MT_Info li:last-child {
  border-left: none;
}

.mi-ico {
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.85;
}

.mi-channel .mi-ico { fill: #0284c7; }
.mi-commentator .mi-ico { fill: #8b5cf6; }
.mi-stadium .mi-ico { fill: #ea580c; }
.mi-league .mi-ico { fill: #d97706; }

/* Interactive overlay */
.overlay-match, .MT_Mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 10;
  display: grid;
  place-items: center;
}

.text-match, .MT_MaskText {
  width: 44px;
  height: 44px;
  background: no-repeat center url("data:image/svg+xml;charset=utf8,%3Csvg aria-hidden='true' role='img' 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,256s256-114.615,256-256S397.383,0,256,0z M344.48,269.57l-128,80c-2.59,1.617-5.535,2.43-8.48,2.43c-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.992c5.086-2.836,11.305-2.664,16.238,.422l128,80c4.676,2.93,7.52,8.055,7.52,13.57S349.156,266.641,344.48,269.57z'%3E%3C/path%3E%3C/svg%3E");
}

.match-container:hover .overlay-match,
.AY_Match:hover .MT_Mask {
  opacity: 1;
}

/* ==========================================================================
   7. Filter Tabs (Yesterday, Today, Tomorrow)
   ========================================================================== */
.tabsbox {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.HeadTitle, .AYb_Head {
  padding: 12px 16px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.HeadTitle h1, .HeadTitle h2, .HeadTitle h3, .AYb_Head h2 {
  font-size: 15px;
  font-weight: 700;
  background: var(--main-color);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
}

.AY-FilterDays, .AY-Dtab {
  display: flex;
  gap: 6px;
  align-items: center;
}

.AY-FilterDays li a, .AY-Dtab li a {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  display: block;
  color: #ffffff;
  background: var(--dark);
  transition: all 0.2s ease;
}

.AY-FilterDays li.today a, .AY-Dtab li.today a, .AY-FilterDays a.active {
  background: var(--main-color);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.AY-FilterDays li.yesterday a, .AY-Dtab li.yesterday a {
  background: var(--yrsdaybg);
}

.AY-FilterDays li.tomorrow a, .AY-Dtab li.tomorrow a {
  background: var(--tomorobg);
}

.AY-FilterDays li a:hover, .AY-Dtab li a:hover {
  opacity: 0.9;
  color: #ffffff;
}

/* ==========================================================================
   8. Match Details Table & Content
   ========================================================================== */
.BoxContent, .AY_Block {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 22px;
  overflow: hidden;
}

.EntryHeader {
  padding: 16px 20px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
}

.EntryTitle {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
}

.entry-content {
  padding: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.AY-MatchInfo {
  margin-top: 24px;
  margin-bottom: 20px;
}

.AY-MatchInfo h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.table-bordered {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table-bordered tr {
  border-bottom: 1px solid var(--border);
}

.table-bordered tr:last-child {
  border-bottom: none;
}

.table-bordered th {
  width: 32%;
  padding: 12px 16px;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  border-left: 1px solid var(--border);
}

.table-bordered td {
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

/* Video streaming server buttons */
.video-serv {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.video-serv a {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  background: var(--main-color);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.video-serv a:hover {
  background: var(--main-hover);
}

/* ==========================================================================
   9. News Grid & Posts
   ========================================================================== */
.PostsInner, .AYb_Inner {
  padding: 16px;
}

.AYaGrid, .PostsInner:has(>.AY-PItem) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.AY-PItem, .gr-item {
  width: 100% !important;
}

.AY-PInner, .gr-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.AY-PInner:hover, .gr-inner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.AY-PostImg img, .gr-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.post-info, .gr-info {
  padding: 12px;
}

.post-info h3, .gr-info h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

/* ==========================================================================
   10. Footer & Site Info
   ========================================================================== */
#AYaFooter, footer {
  background: var(--header-bd);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.FW-Area {
  padding: 24px 0;
}

.FWidget, .fo-section {
  width: 25%;
  padding: 12px 16px;
}

.FW-Title, .fo-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
  position: relative;
  color: var(--text-primary);
}

.FW-Title::before, .fo-title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--main-color);
}

.FWidget li, .fo-section li {
  margin: 6px 0;
}

.FWidget li a, .fo-section li a {
  font-size: 14px;
  color: var(--text-secondary);
}

.FWidget li a:hover, .fo-section li a:hover {
  color: var(--main-color);
}

.SnfoInner, .footermb {
  background: var(--cop-bd);
  padding: 14px 0;
  color: var(--cop-color);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.SnfoInner .container, .footermb ul.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cp-text {
  font-weight: 500;
  color: var(--cop-color);
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 1000px) {
  .AYaHeader .container {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .AYaLogo {
    margin: 0 auto;
  }
  .MainMenu {
    justify-content: center;
    flex-wrap: wrap;
  }
  .MainMenu li > a {
    height: 44px;
    padding: 0 10px;
  }
  .FWidget, .fo-section {
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  .hero-team {
    width: 38%;
  }
  .hero-center {
    width: 24%;
  }
  .hero-logo-wrap, .teamlogo {
    width: 68px;
    height: 68px;
    padding: 6px;
  }
  .hero-team-name, .teamname {
    font-size: 15px;
  }
  .hero-score-board {
    font-size: 32px;
  }
  .matchvs {
    font-size: 26px;
  }
  .MT_Team {
    width: 35%;
  }
  .MT_Data {
    width: 30%;
  }
  .TM_Logo {
    width: 52px;
    height: 52px;
  }
  .TM_Name {
    font-size: 13px;
  }
  .result, .MT_Result {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .match-time, .MT_Time {
    font-size: 16px;
  }
}

@media screen and (max-width: 540px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .AY_Inner {
    padding: 10px 12px;
  }
  .MT_Team {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px;
  }
  .TM_Logo {
    width: 48px;
    height: 48px;
  }
  .TM_Name {
    font-size: 12px;
  }
  .FWidget, .fo-section {
    width: 100%;
  }
  .match-info li:nth-child(2), .MT_Info li:nth-child(2) {
    display: none;
  }
  .match-info li, .MT_Info li {
    font-size: 12px;
    padding: 6px;
  }
  .hero-meta-bar {
    gap: 10px;
    font-size: 12px;
    padding: 10px;
  }
}

/* ==========================================================================
   Phase 6: Pagination, Team Archive & GEO Quick Summary Styles
   ========================================================================== */
.alba-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0 16px;
  clear: both;
}
.alba-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.alba-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--ay-card-bg, #ffffff);
  color: var(--ay-tx, #1e293b);
  border: 1px solid var(--ay-border, #e2e8f0);
  transition: all 0.2s ease;
}
.alba-pagination .page-numbers.current {
  background: var(--ay-pr, #0284c7);
  color: #ffffff;
  border-color: var(--ay-pr, #0284c7);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.alba-pagination a.page-numbers:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--ay-pr, #0284c7);
  border-color: var(--ay-pr, #0284c7);
}
.alba-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

/* Team Archive List */
.team-matches-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.team-match-row {
  background: var(--ay-card-bg, #ffffff);
  border: 1px solid var(--ay-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.team-match-row:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.team-match-link {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
}
.tmr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  border-bottom: 1px dashed var(--ay-border, #e2e8f0);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.tmr-league {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--ay-pr, #0284c7);
}
.tmr-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.tmr-status {
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}
.tmr-status-live {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}
.tmr-status-ended, .tmr-status-ended_penalty {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}
.tmr-status-not_started, .tmr-status-comming-soon {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.tmr-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tmr-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tmr-home {
  justify-content: flex-end;
  text-align: left;
}
.tmr-away {
  justify-content: flex-start;
  text-align: right;
}
.tmr-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ay-tx, #0f172a);
}
.tmr-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}
.tmr-center {
  min-width: 90px;
  text-align: center;
  padding: 0 6px;
}
.tmr-score {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--ay-tx, #0f172a);
}
.tmr-time {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ay-pr, #0284c7);
  background: rgba(2, 132, 199, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
}
.tmr-vs {
  font-weight: 800;
  font-size: 14px;
  color: #94a3b8;
}

/* Match Quick Summary (GEO Entity Line) */
.match-quick-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.match-quick-summary .summary-sep {
  color: #cbd5e1;
}

/* Night Mode Overrides */
.Night .alba-pagination .page-numbers {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
.Night .alba-pagination .page-numbers.current {
  background: var(--ay-pr, #0284c7);
  color: #ffffff;
}
.Night .alba-pagination a.page-numbers:hover {
  background: #334155;
  color: #38bdf8;
}
.Night .team-match-row {
  background: #1e293b;
  border-color: #334155;
}
.Night .team-match-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.Night .tmr-header {
  border-color: #334155;
  color: #94a3b8;
}
.Night .tmr-name, .Night .tmr-score {
  color: #f1f5f9;
}
.Night .match-quick-summary {
  background: rgba(15, 23, 42, 0.6);
  border-color: #334155;
  color: #94a3b8;
}
.Night .match-quick-summary .summary-sep {
  color: #475569;
}

@media (max-width: 640px) {
  .tmr-name {
    font-size: 13px;
  }
  .tmr-logo img {
    width: 24px;
    height: 24px;
  }
  .tmr-score {
    font-size: 16px;
  }
}

/* ==========================================================================
   Inner Pages, Content Frames & Responsive Padding
   (Fix: Text hugging page frames on today, yesterday, tomorrow and single pages)
   ========================================================================== */
.main-wrapp,
.site-content {
  width: 100%;
  box-sizing: border-box;
}

.tabsbox.section,
.AY_Block.section,
article.BoxContent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tabsbox .AYb_Head,
.EntryHeader {
  padding: 14px 20px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
}

.EntryTitle {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.tabsbox .wdthbox,
.entry-content,
.entry {
  padding: 22px 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  box-sizing: border-box;
  word-break: break-word;
}

.tabsbox .wdthbox p,
.entry-content p {
  margin-bottom: 16px;
  line-height: 1.85;
}

.tabsbox .wdthbox p:last-child,
.entry-content p:last-child {
  margin-bottom: 0;
}

.tabsbox .wdthbox h1,
.tabsbox .wdthbox h2,
.tabsbox .wdthbox h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--text-primary);
  font-weight: 800;
  margin: 22px 0 12px;
  line-height: 1.4;
}

.tabsbox .wdthbox h2,
.entry-content h2 {
  font-size: 19px;
  border-right: 4px solid var(--main-color);
  padding-right: 10px;
}

.tabsbox .wdthbox h3,
.entry-content h3 {
  font-size: 16px;
}

.tabsbox .wdthbox ul,
.entry-content ul {
  padding-right: 20px;
  margin-bottom: 16px;
}

.tabsbox .wdthbox li,
.entry-content li {
  list-style: disc;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .tabsbox .wdthbox,
  .entry-content,
  .entry {
    padding: 16px 14px;
    font-size: 14px;
    line-height: 1.75;
  }
  .tabsbox .AYb_Head,
  .EntryHeader {
    padding: 12px 14px;
  }
  .EntryTitle {
    font-size: 18px;
  }
}

/* ==========================================================================
   Modern Horizontal Single Match Share Buttons
   ========================================================================== */
.post-share {
  margin: 20px 0 12px;
  padding: 16px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.post-share-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.share-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  filter: brightness(1.1);
  color: #ffffff !important;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #0f1419; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #24a1de; }
.share-btn.copylink { background: #475569; }

@media (max-width: 600px) {
  .share-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .share-links li {
    width: 100%;
  }
  .share-btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    box-sizing: border-box;
  }
  .share-links li.li-copylink {
    grid-column: span 2;
  }
}

/* ==========================================================================
   Modern Footer Navigation & Copyright
   (Fix: Footer menu links jammed together)
   ========================================================================== */
#AYaFooter {
  margin-top: 36px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.FW-Area {
  padding: 24px 0;
}

.FW-Area:empty {
  display: none;
}

.AYa-SiteInfo {
  border-top: 1px solid var(--border);
  background: var(--surface-card);
}

.SnfoInner {
  padding: 22px 0;
  color: var(--text-secondary);
}

.SnfoInner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.SnfoInner .grow-1 {
  flex: 1 1 auto;
}

.SnfoInner .menu,
.SnfoInner ul,
.SnfoInner .menu > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.SnfoInner li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.SnfoInner li a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.SnfoInner li a:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.SnfoInner .cp-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .SnfoInner .container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 14px;
  }
  .SnfoInner .menu,
  .SnfoInner ul,
  .SnfoInner .menu > ul {
    justify-content: center;
  }
  .SnfoInner .cp-text {
    white-space: normal;
    margin-top: 4px;
  }
}

/* Night Mode Enhancements for Inner Pages, Footer & Share */
.Night .tabsbox.section,
.Night .AY_Block.section,
.Night article.BoxContent,
.Night #AYaFooter {
  background: var(--surface);
  border-color: var(--border);
}

.Night .tabsbox .AYb_Head,
.Night .EntryHeader,
.Night .AYa-SiteInfo,
.Night .post-share {
  background: var(--surface-card);
  border-color: var(--border);
}

.Night .SnfoInner li a {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-secondary);
}

.Night .SnfoInner li a:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #ffffff !important;
}

.Night .share-btn.twitter {
  background: #1e293b;
  border: 1px solid #334155;
}

.Night .share-btn.copylink {
  background: #334155;
}

/* Standings Table Mobile & Dark Mode Overhaul */
.entry-content .ys-std-wrap {
  margin: 12px auto;
  max-width: 100%;
}

.ys-std__table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
}

html.Night .ys-std-wrap,
body.Night .ys-std-wrap,
.Night .ys-std-wrap {
  color: #f1f5f9 !important;
}

html.Night .ys-std__sidebar,
body.Night .ys-std__sidebar,
.Night .ys-std__sidebar,
html.Night .ys-std__hero,
body.Night .ys-std__hero,
.Night .ys-std__hero,
html.Night .ys-std__table-card,
body.Night .ys-std__table-card,
.Night .ys-std__table-card {
  background: var(--v13-surface, #263545) !important;
  border-color: #1b232c !important;
}

html.Night .ys-std__sidebar-title,
body.Night .ys-std__sidebar-title,
.Night .ys-std__sidebar-title,
html.Night .ys-std__hero h2,
body.Night .ys-std__hero h2,
.Night .ys-std__hero h2,
html.Night .ys-std__legend-title,
body.Night .ys-std__legend-title,
.Night .ys-std__legend-title {
  color: #f8fafc !important;
}

html.Night .ys-std__hero p,
body.Night .ys-std__hero p,
.Night .ys-std__hero p {
  color: #cbd5e1 !important;
}

html.Night .ys-std__table th,
body.Night .ys-std__table th,
.Night .ys-std__table th {
  background: #141d28 !important;
  color: #cbd5e1 !important;
  border-bottom-color: #1b232c !important;
}

html.Night .ys-std__table td,
body.Night .ys-std__table td,
.Night .ys-std__table td {
  color: #f1f5f9 !important;
  border-bottom-color: #1c2733 !important;
}

html.Night .ys-std__team strong,
body.Night .ys-std__team strong,
.Night .ys-std__team strong {
  color: #ffffff !important;
}

html.Night .ys-std__team span,
body.Night .ys-std__team span,
.Night .ys-std__team span {
  color: #94a3b8 !important;
}

html.Night .ys-std__pos,
body.Night .ys-std__pos,
.Night .ys-std__pos {
  color: #f1f5f9 !important;
}

html.Night .ys-std__points,
body.Night .ys-std__points,
.Night .ys-std__points {
  color: #ff5252 !important;
}

html.Night .ys-std__side-league,
body.Night .ys-std__side-league,
.Night .ys-std__side-league {
  background: #1c2733 !important;
  border-color: #2b3b4d !important;
  color: #f8fafc !important;
}

html.Night .ys-std__side-league.is-active,
body.Night .ys-std__side-league.is-active,
.Night .ys-std__side-league.is-active {
  background: #121a23 !important;
  border-color: var(--main-color, #dd3333) !important;
  color: #fff !important;
}

/* Standings Mobile Table Fitting Overhaul */
@media (max-width: 780px) {
  .entry-content:has(.ys-std-wrap),
  .entry:has(.ys-std-wrap) {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .entry-content .ys-std-wrap {
    margin: 6px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  .ys-std__table-card {
    border-radius: 10px !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .ys-std__table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .ys-std__table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }
  .ys-std__table th,
  .ys-std__table td {
    padding: 7px 2px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
  .ys-std__c-num {
    width: 22px !important;
    max-width: 22px !important;
    padding: 7px 1px !important;
    font-weight: 700 !important;
  }
  .ys-std__c-team {
    text-align: right !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .ys-std__c-team-cell {
    padding: 7px 4px 7px 1px !important;
    text-align: right !important;
    max-width: 130px !important;
  }
  .ys-std__team {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 28px !important;
  }
  .ys-std__team img {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    border-radius: 50% !important;
    padding: 1px !important;
  }
  .ys-std__team div {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .ys-std__team strong {
    display: block !important;
    max-width: 96px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .ys-std__team span {
    display: none !important;
  }
  .ys-std__c-pld {
    width: 26px !important;
    max-width: 28px !important;
  }
  .ys-std__c-goals {
    width: 38px !important;
    max-width: 44px !important;
    font-size: 10px !important;
    font-variant-numeric: tabular-nums !important;
  }
  .ys-std__c-diff {
    width: 26px !important;
    max-width: 28px !important;
  }
  .ys-std__c-pts,
  .ys-std__points {
    width: 30px !important;
    max-width: 34px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 360px) {
  .ys-std__hero h2 {
    font-size: 15px !important;
  }
  .ys-std__table th,
  .ys-std__table td {
    padding: 6px 1px !important;
    font-size: 10px !important;
  }
  .ys-std__c-num {
    width: 18px !important;
    max-width: 18px !important;
  }
  .ys-std__team strong {
    max-width: 80px !important;
    font-size: 10px !important;
  }
  .ys-std__team img {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
  }
  .ys-std__c-goals {
    font-size: 9.5px !important;
    width: 34px !important;
  }
  .ys-std__c-pts {
    font-size: 11px !important;
  }
}




