/* ==========================================================================
   يلا شوت | Yalla Shoot — تصميم البث الرياضي الاحترافي (تصميم ٢٦ — yallashoot-pro)
   مصمم لأعلى معايير Core Web Vitals (Zero CLS, Fast LCP) وتجربة موبايل احترافية
   الهوية اللونية: قرمزي يلا شوت الرياضي (#e11d48 / #f43f5e) + الذهبي الملكي (#fbbf24)
   ========================================================================== */

:root {
  --bg: #080b13;
  --bg-2: #0d121f;
  --surface: #121a2d;
  --surface-2: #18223a;
  --surface-hover: #1e2a47;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(244, 63, 94, 0.38);
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --emerald: #f43f5e;
  --emerald-dark: #e11d48;
  --emerald-soft: rgba(244, 63, 94, 0.14);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --live: #ef4444;
  --live-soft: rgba(239, 68, 68, 0.18);
  --soon: #f59e0b;
  --soon-soft: rgba(245, 158, 11, 0.16);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
  --font: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-2: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #f1f5f9;
  --border: #cbd5e1;
  --border-strong: #e11d48;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --emerald: #e11d48;
  --emerald-dark: #be123c;
  --emerald-soft: rgba(225, 29, 72, 0.1);
  --gold: #d97706;
  --gold-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select {
  font-family: inherit;
}

.kl-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Top Broadcast Ticker Bar ───────────────────────── */
.kl-topbar {
  background: linear-gradient(90deg, #06080f 0%, #1e0b16 50%, #06080f 100%);
  border-bottom: 1px solid rgba(244, 63, 94, 0.24);
  color: #e2e8f0;
  font-size: 12.5px;
  padding: 7px 0;
}

.kl-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.kl-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kl-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fda4af;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}

.kl-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.75);
  animation: klPulse 1.6s infinite;
}

@keyframes klPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.kl-topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kl-tz-select {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.kl-tz-select option {
  background: #0f172a;
  color: #f8fafc;
}

.kl-theme-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.kl-theme-btn:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* ── Main Sticky Header ─────────────────────────────── */
.kl-header {
  background: rgba(13, 18, 31, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 150;
}

[data-theme="light"] .kl-header {
  background: rgba(255, 255, 255, 0.96);
}

.kl-header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kl-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.kl-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  border: 2px solid var(--emerald);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.kl-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.kl-brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--text);
}

.kl-brand-name em {
  font-style: normal;
  color: var(--emerald);
}

.kl-brand-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
}

.kl-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.kl-nav a {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.2s;
}

.kl-nav a:hover,
.kl-nav a.active {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.kl-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Hero Banner (Clean background without overlapping text) ── */
.kl-hero {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 11, 19, 0.93) 0%, rgba(22, 16, 34, 0.88) 55%, rgba(76, 11, 29, 0.85) 100%),
              url('/assets/img/hero-bg.webp?v=20261024') center/cover no-repeat;
  border: 1px solid var(--border-strong);
  padding: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.kl-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kl-hero-copy {
  flex: 1;
  min-width: 0;
}

.kl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.55);
  color: #fda4af;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.kl-hero h1 {
  font-size: clamp(20px, 2.8vw, 29px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #ffffff;
}

.kl-hero h1 span {
  color: var(--gold);
}

.kl-hero p {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 640px;
  line-height: 1.6;
}

.kl-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  flex-shrink: 0;
}

.kl-stat-box {
  background: rgba(12, 16, 29, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}

.kl-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.15;
}

.kl-stat-label {
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Schedule Hub & Interactive Controls ────────────── */
.kl-hub {
  margin-top: 18px;
}

.kl-controls-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.kl-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.kl-day-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-2);
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--border);
  gap: 4px;
  min-width: 320px;
}

.kl-day-tab {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-2);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  white-space: nowrap;
}

.kl-day-tab:hover {
  color: var(--text);
}

.kl-day-tab.active {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.38);
}

.kl-date-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold);
}

.kl-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.kl-status-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kl-status-filters::-webkit-scrollbar {
  display: none;
}

.kl-filter-btn {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.kl-filter-btn:hover,
.kl-filter-btn.active {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.kl-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

.kl-search-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.kl-search-input:focus {
  outline: none;
  border-color: var(--emerald);
}

/* ── League Quick-Filter Chips ──────────────────────── */
.kl-league-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.kl-league-bar::-webkit-scrollbar {
  display: none;
}

.kl-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.kl-league-chip:hover,
.kl-league-chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.kl-league-chip small {
  background: rgba(255, 255, 255, 0.09);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
}

/* ── Matches Grid & Cards ───────────────────────────── */
.kl-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kl-match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.kl-match-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.kl-match-card.is-live {
  border-color: rgba(244, 63, 94, 0.55);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.09) 0%, var(--surface) 48%);
}

.kl-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border);
}

.kl-league-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kl-league-pill svg {
  color: var(--gold);
  flex-shrink: 0;
}

.kl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-live {
  background: var(--live-soft);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.5);
}

.badge-soon {
  background: var(--soon-soft);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-upcoming {
  background: rgba(56, 189, 248, 0.13);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-finished {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.kl-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
}

.kl-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  min-width: 0;
}

.kl-team-home,
.kl-team-away {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* ── Circular Medallion Team Crest (Single Frame, Zero Overlap) ── */
.kl-crest-wrap {
  width: var(--crest-size, 54px);
  height: var(--crest-size, 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  margin-bottom: 2px;
  border: none;
  flex-shrink: 0;
}

.kl-team-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32));
}

.kl-logo-fb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-dark), #0f172a);
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.kl-team-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kl-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  text-align: center;
}

.kl-score-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 11px;
  font-size: 21px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px;
}

.kl-score-sep {
  opacity: 0.55;
}

.kl-time-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}

.kl-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 11px;
}

.kl-match-clock {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
}

.kl-countdown {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  margin-top: 2px;
  white-space: nowrap;
}

.kl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.kl-meta-items {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
}

.kl-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  white-space: nowrap;
}

.kl-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: var(--emerald);
  white-space: nowrap;
  flex-shrink: 0;
}

.kl-cta-short {
  display: none;
}

/* ── Section Blocks, Leagues & News ─────────────────── */
.kl-section {
  margin-top: 32px;
}

.kl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.kl-section-title {
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kl-section-title span {
  color: var(--emerald);
}

.kl-leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.kl-league-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s;
}

.kl-league-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.kl-league-card strong {
  font-size: 14px;
  font-weight: 800;
}

.kl-league-count {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Articles Grid ──────────────────────────────────── */
.kl-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kl-news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.kl-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.kl-news-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  display: block;
}

.kl-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kl-news-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kl-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 6px;
}

.kl-news-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
}

.kl-news-excerpt {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
  flex: 1;
}

.kl-news-more {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
}

/* ── Match Center Page (/match/{day}/{id}/) ─────────── */
.kl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 12px;
  flex-wrap: wrap;
}

.kl-breadcrumb a {
  color: var(--emerald);
  font-weight: 700;
}

.kl-match-hero {
  background: linear-gradient(135deg, #0b1020 0%, #1d1532 50%, #3b0d1e 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.kl-match-hero-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 18px auto 6px;
}

.kl-match-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kl-match-hero-team h2 {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 900;
}

.kl-stream-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 18px;
  text-align: center;
}

.kl-stream-screen {
  background: #060912;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.kl-play-trigger {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.42);
}

.kl-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.kl-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.kl-info-item small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

.kl-info-item strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}

/* ── Semantic Schedule Table (Featured Snippet Ready) ── */
.kl-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kl-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.kl-schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13.5px;
}

.kl-schedule-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.kl-schedule-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 600;
}

.kl-schedule-table tr:last-child td {
  border-bottom: none;
}

.kl-schedule-table tr:hover td {
  background: var(--surface-hover);
}

.kl-schedule-table a.kl-tbl-match {
  color: var(--text);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kl-schedule-table a.kl-tbl-match:hover {
  color: var(--emerald);
}

.kl-digest-box {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.11) 0%, rgba(18, 26, 45, 0.94) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-top: 18px;
}

.kl-digest-box h2 {
  font-size: 17.5px;
  font-weight: 900;
  color: var(--emerald);
  margin-bottom: 8px;
}

.kl-digest-box p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── FAQ & Editorial Box ────────────────────────────── */
.kl-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kl-faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.kl-faq-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.kl-faq-card p {
  font-size: 13.5px;
  color: var(--text-2);
}

.kl-empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 36px 18px;
  text-align: center;
}

.kl-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* ── Footer ─────────────────────────────────────────── */
.kl-footer {
  margin-top: 44px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0 22px;
}

.kl-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.kl-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
}

.kl-footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

.kl-footer-links a:hover {
  color: var(--emerald);
}

.kl-footer-bottom {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   تخصيص الموبايل الاحترافي (Native Mobile App Experience <= 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .kl-container {
    padding: 0 12px;
  }

  .kl-topbar {
    padding: 5px 0;
    font-size: 11px;
  }
  .kl-topbar-inner {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .kl-topbar-right > span:not(.kl-live-indicator) {
    display: none;
  }
  .kl-live-indicator {
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .kl-topbar-controls {
    gap: 5px;
  }
  .kl-topbar-controls label {
    display: none;
  }
  .kl-tz-select,
  .kl-theme-btn {
    padding: 3px 6px;
    font-size: 11px;
  }

  .kl-header-inner {
    height: 54px;
    padding: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .kl-brand {
    gap: 8px;
  }
  .kl-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .kl-brand-name {
    font-size: 16px;
    white-space: nowrap;
  }
  .kl-brand-tag {
    display: none;
  }
  .kl-sync-badge {
    display: none;
  }
  .kl-nav {
    width: auto;
    overflow-x: auto;
    padding: 0;
    gap: 4px;
    scrollbar-width: none;
  }
  .kl-nav::-webkit-scrollbar {
    display: none;
  }
  .kl-nav li:nth-child(3),
  .kl-nav li:nth-child(4),
  .kl-nav li:nth-child(6) {
    display: none;
  }
  .kl-nav a {
    padding: 5px 9px;
    font-size: 11.5px;
    background: var(--surface-2);
    border: 1px solid var(--border);
  }

  .kl-hero {
    margin-top: 8px;
    padding: 12px;
    border-radius: 13px;
  }
  .kl-hero-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .kl-hero-kicker,
  .kl-hero p {
    display: none;
  }
  .kl-hero h1 {
    font-size: 15px;
    margin-bottom: 0;
    text-align: center;
  }
  .kl-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }
  .kl-stat-box {
    padding: 6px 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .kl-stat-num {
    font-size: 15px;
    display: inline;
  }
  .kl-stat-label {
    font-size: 10.5px;
  }

  .kl-hub {
    margin-top: 10px;
  }
  .kl-controls-card {
    padding: 10px;
    border-radius: 13px;
    margin-bottom: 8px;
  }
  .kl-controls-top {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 8px;
  }
  .kl-day-tabs {
    min-width: 0;
    width: 100%;
  }
  .kl-day-tab {
    padding: 6px 8px;
    font-size: 12.5px;
  }
  .kl-date-display {
    display: none;
  }
  .kl-controls-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }
  .kl-status-filters {
    width: 100%;
  }
  .kl-filter-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .kl-search-wrap {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .kl-search-input {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .kl-matches-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kl-card-head {
    padding: 7px 12px;
  }
  .kl-league-pill {
    font-size: 11.5px;
  }
  .kl-status-badge {
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .kl-card-body {
    padding: 11px 10px;
    gap: 6px;
  }
  .kl-team {
    gap: 6px;
  }
  .kl-crest-wrap {
    width: 46px !important;
    height: 46px !important;
    padding: 0;
    border-radius: 50%;
    margin-bottom: 2px;
  }
  .kl-match-hero .kl-crest-wrap {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50%;
  }
  .kl-team-name {
    font-size: 13.5px;
    line-height: 1.25;
  }
  .kl-card-center {
    min-width: 84px;
  }
  .kl-score-box {
    font-size: 18px;
    padding: 4px 11px;
  }
  .kl-time-box {
    padding: 5px 10px;
  }
  .kl-match-clock {
    font-size: 16px;
  }
  .kl-countdown {
    font-size: 10px;
  }
  .kl-card-foot {
    padding: 7px 12px;
    font-size: 11.5px;
  }
  .kl-meta-comm {
    display: none;
  }
  .kl-cta-full {
    display: none;
  }
  .kl-cta-short {
    display: inline;
  }

  .kl-leagues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .kl-league-card {
    padding: 10px 12px;
  }
  .kl-league-card strong {
    font-size: 12.5px;
  }
  .kl-news-grid,
  .kl-faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kl-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
