/* Koora Live TV — site template (header, footer, home sections). Loaded after styles.css / matches.css. */
:root {
  --bg: #060908; --bg-2: #0b110d; --surface: #0f1612; --surface-2: #141d18; --line: rgba(255, 255, 255, 0.08);
  --text: #f2f6f3; --muted: #93a398; --accent: #b8ff2e; --accent-ink: #0a0f05; --accent-dim: rgba(184, 255, 46, 0.13);
  --danger: #ff4d5e; --radius: 18px; --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
  --bg: #f3f6f4; --bg-2: #e9eeea; --surface: #ffffff; --surface-2: #f4f7f5; --line: rgba(10, 30, 15, 0.1);
  --text: #0d1510; --muted: #5b6a60; --accent-dim: rgba(90, 140, 0, 0.12); --shadow: 0 16px 40px rgba(10, 30, 15, 0.08);
}
:root[data-theme="light"] body { background: var(--bg); }
body.kl { background: var(--bg); color: var(--text); margin: 0; font-family: "Cairo", system-ui, sans-serif; }
body.kl .bg-glow, body.kl .pitch-grid { display: none; }
.kl a { color: inherit; }
.kl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
/* Scores & counters: Cairo digits (Syne's heavy digits are so wide they look flattened: 0 → "▬", 1 → "┴") */
.kl-num { font-family: "Cairo", system-ui, sans-serif; font-weight: 800; font-feature-settings: "tnum"; }

/* ---------- header ---------- */
.kl-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.kl-head-in { display: flex; align-items: center; gap: 12px; height: 66px; }
.kl-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.kl-logo img { width: 46px; height: 46px; object-fit: contain; display: block; }
.kl-livepill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--muted); text-decoration: none; background: var(--surface); }
.kl-livepill b { color: var(--text); }
.kl-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: klpulse 1.8s infinite; flex: none; }
.kl-pulse.red { background: var(--danger); box-shadow: 0 0 0 0 var(--danger); }
.kl-nav { display: flex; gap: 2px; margin-inline-start: 10px; }
.kl-nav a { padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.kl-nav a:hover, .kl-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.kl-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.kl-ib { appearance: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800; font-size: 0.8rem; position: relative; }
.kl-ib:hover { border-color: var(--accent); }
.kl-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kl-ib.store { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kl-ib.store svg { fill: currentColor; stroke: none; }
.kl-lang { position: relative; }
.kl-menu-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); min-width: 160px; display: grid; gap: 2px; z-index: 60; }
.kl-menu-pop[hidden] { display: none; }
.kl-menu-pop button, .kl-menu-pop a { appearance: none; background: transparent; border: 0; color: var(--text); font: inherit; text-align: start; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }
.kl-menu-pop button:hover, .kl-menu-pop a:hover, .kl-menu-pop button[aria-pressed="true"] { background: var(--accent-dim); color: var(--accent); }
.kl-menu-pop small { color: var(--muted); }

/* drawer */
.kl-drawer { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, 0.5); }
[dir="rtl"] .kl-drawer { justify-content: flex-start; }
.kl-drawer[hidden] { display: none; }
.kl-drawer-in { width: min(340px, 88vw); height: 100%; background: var(--bg-2); border-inline-start: 1px solid var(--line); padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.kl-drawer-in a { text-decoration: none; padding: 11px 12px; border-radius: 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.kl-drawer-in a:hover { background: var(--surface); color: var(--accent); }
.kl-drawer-in hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.kl-drawer-in .kl-dl { color: var(--muted); font-size: 0.78rem; font-weight: 700; padding: 6px 12px 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* search */
.kl-search { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.kl-search[hidden] { display: none; }
.kl-search form { width: min(620px, 100%); display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
.kl-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 1.05rem; padding: 10px; outline: none; }
.kl-btn { appearance: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800; border-radius: 12px; padding: 10px 18px; cursor: pointer; text-decoration: none; }
.kl-btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.kl-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- common blocks ---------- */
.kl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kl-sec { margin-top: 26px; }
.kl-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kl-sec-h h2 { margin: 0; font-size: 1.18rem; display: flex; align-items: center; gap: 10px; }
.kl-sec-h h2 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 1rem; }
.kl-more { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.kl-more:hover { text-decoration: underline; }
.kl-logo-img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.kl-logo-img.ph { display: inline-block; border-radius: 50%; background: var(--line); }
.kl-min { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); white-space: nowrap; direction: ltr; }
.kl-min::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: klblink 1.4s infinite; }
.kl-ft { font-size: 0.72rem; font-weight: 800; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }
.kl-empty { color: var(--muted); text-align: center; padding: 22px 10px; font-size: 0.92rem; }
.kl-sk { height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: klshim 1.3s infinite; }

/* ---------- hero ---------- */
.kl-hero { margin-top: 18px; position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background:
  radial-gradient(700px 380px at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--bg-2); }
.kl-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); opacity: 0.5; pointer-events: none; }
.kl-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; padding: 44px; align-items: center; }
.kl-hero h1 { margin: 16px 0 14px; font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.12; letter-spacing: -0.01em; }
.kl-hero h1 em { font-style: normal; color: var(--accent); }
.kl-hero p.lede { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin: 0 0 22px; max-width: 560px; }
.kl-hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.kl-hero-cta .badge img { height: 50px; width: auto; display: block; }
.kl-stats { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.kl-stats b { display: block; font-size: 1.9rem; line-height: 1; }
.kl-stats b.acc { color: var(--accent); }
.kl-stats span { color: var(--muted); font-size: 0.85rem; }

.kl-center { position: relative; padding: 16px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kl-center-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 800; }
.kl-center-h > span { display: flex; align-items: center; gap: 8px; }
.kl-tag-live { font-size: 0.72rem; font-weight: 800; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); padding: 2px 10px; border-radius: 999px; }
.kl-feat { display: block; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.kl-feat:hover { border-color: var(--accent); }
.kl-feat-lg { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 0.8rem; margin-bottom: 8px; }
.kl-feat-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.kl-feat-tm { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem; text-align: center; min-width: 0; }
.kl-feat-tm img { width: 46px; height: 46px; object-fit: contain; }
.kl-feat-sc { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kl-feat-sc strong { font-size: 2.3rem; display: flex; gap: 10px; align-items: center; }
.kl-feat-sc strong i { font-style: normal; color: var(--muted); font-size: 1.4rem; }
.kl-mini { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; margin-top: 8px; }
.kl-mini:hover { border-color: var(--accent); }
.kl-mini-tms { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 0.88rem; font-weight: 700; }
.kl-mini-tms span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kl-mini-tms span b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kl-mini-tms img { width: 18px; height: 18px; object-fit: contain; }
.kl-mini-sc { display: grid; gap: 4px; font-weight: 800; color: var(--accent); text-align: center; min-width: 18px; }
.kl-beat { display: block; width: 100%; height: 26px; margin-top: 12px; }
.kl-beat path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: kldraw 3.5s linear infinite; }
.kl-toast { position: absolute; top: -18px; inset-inline-start: 18px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 10px; box-shadow: var(--shadow); font-size: 0.85rem; animation: klfloat 4s ease-in-out infinite; max-width: 80%; }
.kl-toast[hidden] { display: none; }
.kl-toast .bl { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-dim); }
.kl-toast b { display: block; }
.kl-toast small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- league chips ---------- */
.kl-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 18px; scrollbar-width: none; }
.kl-chips::-webkit-scrollbar { display: none; }
.kl-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 0.92rem; white-space: nowrap; flex: none; }
.kl-chip img { width: 26px; height: 26px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.kl-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- live strip ---------- */
.kl-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.kl-lc { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.kl-lc:hover { border-color: var(--accent); }
.kl-lc.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), var(--surface); }
.kl-lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.8rem; }
.kl-lc-top span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kl-lc-top img { width: 16px; height: 16px; object-fit: contain; }
.kl-lc-row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.kl-lc-row img { width: 24px; height: 24px; object-fit: contain; }
.kl-lc-row b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kl-lc-row strong { color: var(--accent); font-size: 1.25rem; }

/* ---------- main grid ---------- */
.kl-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.kl-col { display: grid; gap: 22px; min-width: 0; }
.kl-lgh { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-weight: 800; }
.kl-lgh img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 1px; }
.kl-lgh small { color: var(--muted); font-weight: 600; }
.kl-lgh a { text-decoration: none; }
.kl-fx { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 30px; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; }
.kl-fx + .kl-fx { border-top: 1px solid var(--line); }
.kl-fx:hover { background: var(--surface-2); }
.kl-fx.live { box-shadow: inset 3px 0 0 var(--danger); }
[dir="rtl"] .kl-fx.live { box-shadow: inset -3px 0 0 var(--danger); }
.kl-fx-t { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.kl-fx-t.h { justify-content: flex-end; text-align: end; }
.kl-fx-t b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kl-fx-t.lose b { color: var(--muted); font-weight: 600; }
.kl-fx-t img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.kl-fx-m { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; }
.kl-fx-sc { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.kl-fx-sc i { font-style: normal; color: var(--muted); font-size: 0.9rem; }
.kl-fx-time { font-size: 1.02rem; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.kl-bell { appearance: none; width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.kl-bell:hover { color: var(--accent); background: var(--accent-dim); }
.kl-bell svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* standings */
.kl-lsel { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.kl-lsel button { appearance: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; padding: 5px; cursor: pointer; }
.kl-lsel button img { width: 100%; height: 100%; object-fit: contain; }
.kl-lsel button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.kl-tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.kl-tbl th { color: var(--muted); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; padding: 10px 8px; text-align: center; }
.kl-tbl td { padding: 9px 8px; text-align: center; border-top: 1px solid var(--line); }
.kl-tbl td.tm, .kl-tbl th.tm { text-align: start; }
.kl-tbl td.tm span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.kl-tbl td.tm img { width: 20px; height: 20px; object-fit: contain; }
.kl-tbl td.rk { color: var(--accent); font-weight: 800; }
.kl-tbl tr.q td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .kl-tbl tr.q td:first-child { box-shadow: inset -3px 0 0 var(--accent); }
.kl-tbl td.pts { font-weight: 800; }

/* goals */
.kl-goal { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; }
.kl-goal + .kl-goal { border-top: 1px solid var(--line); }
.kl-goal:hover { background: var(--surface-2); }
.kl-goal .mn { min-width: 52px; text-align: center; font-weight: 800; font-size: 0.82rem; color: var(--accent); background: var(--accent-dim); border-radius: 9px; padding: 6px 4px; direction: ltr; }
.kl-goal img { width: 22px; height: 22px; object-fit: contain; }
.kl-goal div { min-width: 0; }
.kl-goal b { display: block; font-size: 0.92rem; }
.kl-goal small { color: var(--muted); font-size: 0.78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* previews + news */
.kl-pv { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; text-decoration: none; }
.kl-pv + .kl-pv { border-top: 1px solid var(--line); }
.kl-pv:hover { background: var(--surface-2); }
.kl-pv .lg { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.kl-pv .lg img { width: 30px; height: 30px; object-fit: contain; }
.kl-lab { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; color: #1b1300; background: #f4c64a; border-radius: 6px; padding: 2px 8px; }
.kl-pv b { display: block; margin: 6px 0 4px; line-height: 1.45; }
.kl-pv p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kl-pv time { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
.kl-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.kl-nw { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.kl-nw:hover { border-color: var(--accent); }
.kl-nw .im { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.kl-nw .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kl-nw div.tx { padding: 12px 14px 14px; display: grid; gap: 6px; }
.kl-nw small { color: var(--muted); font-size: 0.76rem; }
.kl-nw b { line-height: 1.5; font-size: 0.95rem; }

/* trends */
.kl-trends { display: flex; flex-wrap: wrap; gap: 8px; }
.kl-trends a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; color: var(--accent); background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.kl-trends a:hover { background: var(--accent); color: var(--accent-ink); }

/* app */
.kl-app { margin-top: 34px; border-radius: 28px; padding: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; border: 1px solid var(--line); background: radial-gradient(500px 300px at 90% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg-2); }
.kl-app h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.kl-app p { color: var(--muted); margin: 0 0 18px; line-height: 1.8; }
.kl-checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.kl-checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.kl-checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 900; flex: none; }
.kl-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kl-badges img { height: 46px; width: auto; display: block; }
.kl-app-icon { width: 170px; height: 170px; border-radius: 38px; background: #0b0f0c; display: grid; place-items: center; box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent); border: 1px solid var(--line); }
.kl-app-icon img { width: 82%; height: 82%; object-fit: contain; }

/* ---------- footer ---------- */
.kl-foot { margin-top: 46px; border-top: 1px solid var(--line); padding: 40px 0 22px; color: var(--muted); }
.kl-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.kl-foot h4 { margin: 0 0 12px; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.kl-foot a { display: block; text-decoration: none; color: var(--text); padding: 4px 0; font-size: 0.92rem; }
.kl-foot a:hover { color: var(--accent); }
.kl-foot p { line-height: 1.8; font-size: 0.9rem; margin: 10px 0 14px; }
.kl-foot .kl-logo img { width: 54px; height: 54px; }
.kl-foot-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.kl-foot-apps a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; background: var(--surface); font-weight: 700; font-size: 0.85rem; }
.kl-foot-apps svg { width: 16px; height: 16px; fill: currentColor; }
.kl-social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.kl-social a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); padding: 0; }
.kl-social svg { width: 17px; height: 17px; fill: currentColor; }
.kl-foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 0.84rem; }
.kl-top-btn { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.kl-top-btn[hidden] { display: none; }

.kl .ad-slot { margin: 18px auto; }
.kl .k-tags { max-width: 1240px; padding: 18px 18px 0; }

/* other pages inside the template */
body.kl main.mx, body.kl main.mp { margin-top: 18px; }

@keyframes klpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes klblink { 50% { opacity: 0.25; } }
@keyframes klshim { to { background-position: -200% 0; } }
@keyframes kldraw { to { stroke-dashoffset: 0; } }
@keyframes klfloat { 50% { transform: translateY(-6px); } }

@media (max-width: 1080px) {
  .kl-nav { display: none; }
}
@media (max-width: 980px) {
  .kl-hero-in { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
  .kl-grid { grid-template-columns: minmax(0, 1fr); }
  .kl-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kl-app { grid-template-columns: minmax(0, 1fr); }
  .kl-app-icon { display: none; }
}
@media (max-width: 600px) {
  .kl-wrap { padding: 0 12px; }
  .kl-head-in { height: 60px; gap: 8px; }
  .kl-logo img { width: 40px; height: 40px; }
  .kl-ib { width: 36px; height: 36px; border-radius: 10px; }
  .kl-ib.store, .kl-ib.theme { display: none; }
  .kl-livepill { padding: 4px 9px; font-size: 0.75rem; }
  .kl-hero { border-radius: 20px; }
  .kl-stats { gap: 22px; }
  .kl-fx { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 11px 10px; gap: 8px; }
  .kl-fx .kl-bell { display: none; }
  .kl-fx-t { font-size: 0.86rem; gap: 6px; }
  .kl-fx-t img { width: 22px; height: 22px; }
  .kl-fx-m { min-width: 60px; }
  .kl-fx-sc { font-size: 1.05rem; padding: 3px 8px; }
  .kl-checks { grid-template-columns: minmax(0, 1fr); }
  .kl-app { padding: 24px 18px; }
  .kl-foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* store buttons (drawn, no image files needed) */
.kl-store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px; padding: 7px 16px 7px 12px; text-decoration: none; min-height: 48px; box-sizing: border-box; direction: ltr; }
.kl-store:hover { border-color: var(--accent); }
.kl-store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.kl-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.kl-store small { font-size: 0.62rem; letter-spacing: 0.02em; opacity: 0.9; }
.kl-store b { font-size: 1.12rem; font-weight: 700; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.kl-toast { top: -24px; }
.kl-center { padding-top: 34px; }

/* ---------- goal alerts (kl-alerts.js), like GoalPulse ---------- */
[data-kl-alerts] .kl-alerts-btn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kl-alert-toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 16px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.kl-alert-toast.in { opacity: 1; transform: translate(-50%, 0); }
.kl-goal-banner { position: fixed; z-index: 95; top: 84px; inset-inline-end: 18px; width: min(380px, calc(100% - 28px)); display: flex; gap: 12px; align-items: center; padding: 14px 40px 16px 14px; border-radius: 18px; background: linear-gradient(135deg, var(--surface), var(--bg, #070a08)); border: 1px solid var(--accent); color: var(--text); text-decoration: none; box-shadow: 0 0 0 4px var(--accent-dim, rgba(184,255,46,.14)), 0 24px 50px -18px rgba(0,0,0,.8); overflow: hidden; opacity: 0; transform: translateY(-16px) scale(.97); transition: opacity .35s, transform .35s; }
[dir="rtl"] .kl-goal-banner { padding: 14px 14px 16px 40px; }
.kl-goal-banner.in { opacity: 1; transform: none; }
.kl-goal-banner.out { opacity: 0; transform: translateY(-10px) scale(.98); }
.kl-goal-banner .gb-team { flex: none; width: 54px; height: 54px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.kl-goal-banner .gb-team img { width: 40px; height: 40px; object-fit: contain; }
.kl-goal-banner .gb-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.kl-goal-banner .gb-title { display: flex; align-items: baseline; gap: 8px; }
.kl-goal-banner .gb-title b { color: var(--accent); font-size: 1.35rem; font-weight: 900; letter-spacing: .02em; animation: klgoal .6s ease-out 2; }
.kl-goal-banner .gb-title em { font-style: normal; font-weight: 800; color: var(--muted); }
.kl-goal-banner .gb-scorer { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-goal-banner .gb-scorer small { color: var(--muted); font-weight: 600; }
.kl-goal-banner .gb-match { display: flex; align-items: center; gap: 6px; font-size: .85rem; min-width: 0; }
.kl-goal-banner .gb-match span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; }
.kl-goal-banner .gb-match img { width: 18px; height: 18px; object-fit: contain; }
.kl-goal-banner .gb-match strong { font-weight: 900; }
.kl-goal-banner .gb-match i { font-style: normal; }
.kl-goal-banner .gb-match i.on { color: var(--accent); }
.kl-goal-banner .gb-lg { color: var(--muted); font-size: .75rem; }
.kl-goal-banner .gb-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; }
.kl-goal-banner .gb-timer { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: klgbtimer 8s linear forwards; }
[dir="rtl"] .kl-goal-banner .gb-timer { transform-origin: right; }
.kl-goal-banner.hold .gb-timer { animation-play-state: paused; }
@keyframes klgbtimer { to { transform: scaleX(0); } }
@keyframes klgoal { 50% { transform: scale(1.15); } }
@media (max-width: 560px) { .kl-goal-banner { top: auto; bottom: 16px; inset-inline-end: 14px; } }

/* Live cards: long team names get "…" so the score always stays inside the card */
.kl-lc { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.kl-lc-row strong { flex: none; min-width: 1ch; text-align: end; }

/* ---------- GoalPulse-style pages: leagues, league, team, search (kl-pages.js) ---------- */
.kp { padding-top: 14px; padding-bottom: 30px; }
.kp-crumbs { font-size: 0.84rem; color: var(--muted); margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.kp-crumbs a { color: var(--muted); text-decoration: none; } .kp-crumbs a:hover { color: var(--accent); }
.kp-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.kp-head h1 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; }
.kp-head p { margin: 4px 0 0; color: var(--muted); }
.kp-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; flex: none; }
.kp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.kp-tools input, .kp-search input { flex: 1 1 240px; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.kp-tools input:focus, .kp-search input:focus { outline: none; border-color: var(--accent); }
.kp-regions { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-regions button { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.kp-regions button[aria-pressed="true"], .kp-regions button:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kp-lg { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; min-width: 0; }
.kp-lg:hover { border-color: var(--accent); }
.kp-lg img, .kp-lg .kl-logo-img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; flex: none; }
.kp-lg span { display: grid; min-width: 0; } .kp-lg b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kp-lg small { color: var(--muted); }
.kp-lg[hidden] { display: none; }
.kp-h2 { font-size: 1.1rem; margin: 18px 0 10px; }
.kp-hint { color: var(--muted); }
.kp-search { display: flex; gap: 10px; margin-bottom: 16px; }
.kp-box[hidden] { display: none; }
.kp-tbl-wrap { overflow-x: auto; }
.kp-tbl td.tm a { color: inherit; text-decoration: none; } .kp-tbl td.tm a:hover { color: var(--accent); }
.kp-tbl tr.z-cl td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.kp-tbl tr.z-el td:first-child { box-shadow: inset 3px 0 0 #3fa9ff; }
.kp-tbl tr.z-rel td:first-child { box-shadow: inset 3px 0 0 #ff4d5e; }
[dir="rtl"] .kp-tbl tr.z-cl td:first-child { box-shadow: inset -3px 0 0 var(--accent); }
[dir="rtl"] .kp-tbl tr.z-el td:first-child { box-shadow: inset -3px 0 0 #3fa9ff; }
[dir="rtl"] .kp-tbl tr.z-rel td:first-child { box-shadow: inset -3px 0 0 #ff4d5e; }
.kp-tbl tr.me td { background: var(--accent-dim); }
.kp-form { display: inline-flex; gap: 3px; direction: ltr; }
.kp-form i { font-style: normal; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: #fff; background: #6b756f; }
.kp-form i.fW { background: #1fb954; } .kp-form i.fL { background: #e5484d; } .kp-form i.fD { background: #8a948e; }
.kp-grp { font-size: 0.95rem; margin: 14px 0 8px; color: var(--muted); }
.kp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.kp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.kp-legend i.z-cl { background: var(--accent); } .kp-legend i.z-el { background: #3fa9ff; } .kp-legend i.z-rel { background: #ff4d5e; }
.kp-up-list { overflow: hidden; }
.kp-up { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.kp-up:first-child { border-top: 0; } .kp-up:hover { background: var(--surface-2); }
.kp-up-d { display: grid; text-align: center; min-width: 52px; } .kp-up-d b { color: var(--accent); } .kp-up-d small { color: var(--muted); font-size: 0.74rem; }
.kp-up-t { display: grid; gap: 4px; min-width: 0; font-weight: 700; font-size: 0.9rem; }
.kp-up-t span { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-up-t img { width: 18px; height: 18px; object-fit: contain; }
.kp-lgline { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; font-size: 0.78rem; color: var(--muted); }
.kp-lgline a { color: var(--muted); text-decoration: none; } .kp-lgline img { width: 16px; height: 16px; object-fit: contain; }
.kp-sc { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.kp-sc:first-child { border-top: 0; } .kp-sc .rk { color: var(--accent); font-weight: 800; min-width: 18px; }
.kp-sc img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.kp-sc .nm { display: grid; flex: 1; min-width: 0; } .kp-sc .nm small { color: var(--muted); } .kp-sc strong { font-size: 1.05rem; }
.kl-online { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.kl-online i { width: 7px; height: 7px; border-radius: 50%; background: #1fb954; box-shadow: 0 0 0 3px rgba(31, 185, 84, 0.2); }
.kl-install { width: auto !important; padding: 0 12px; gap: 6px; display: inline-flex !important; align-items: center; }
.k-tags { max-width: 1240px; margin: 0 auto; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.k-tags a { font-size: 0.82rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.k-tags a:hover { color: var(--accent); border-color: var(--accent); }
.mp-crumbs { font-size: 0.84rem; color: var(--muted); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mp-crumbs a { color: var(--muted); text-decoration: none; } .mp-crumbs a:hover { color: var(--accent); }
.mp-tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mp-tagrow a { font-size: 0.85rem; color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
@media (max-width: 980px) { .kp-cols { grid-template-columns: 1fr; } .kp-cols > aside { order: -1; } }
@media (max-width: 600px) { .kp-tbl th.xs, .kp-tbl td.xs { display: none; } .kl-online span { display: none; } }
/* Panel → News switched off: hide the news sections and links everywhere */
.no-news #news, .no-news #mpNews, .no-news a[href^="news.html"], .no-news .kl-nav a[href*="news.html"], .no-news .kl-drawer a[href*="news.html"] { display: none !important; }
.kp-mtable h2 { font-size: 1rem; margin: 0 0 10px; }
.kp-mtable .kp-tbl th.xs, .kp-mtable .kp-tbl td.xs { display: none; }
.kp-mtable .kp-tbl { font-size: 0.84rem; }
.kl-online[hidden], .kl-install[hidden] { display: none !important; }
.kl-install { white-space: nowrap; }
@media (max-width: 760px) { .kl-install { display: none !important; } }

/* ---------- News like GoalPulse (news.html, story.html) ---------- */
.kn-chips { margin: 0 0 16px; }
.kn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.kn-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; min-width: 0; }
.kn-card:hover { border-color: var(--accent); }
.kn-img { flex: none; width: 72px; height: 72px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.kn-img img { width: 56px; height: 56px; object-fit: contain; }
.kn-img.ph { background: var(--surface-2); } .kn-img img.kn-photo { width: 100%; height: 100%; object-fit: cover; }
.kn-body { display: grid; gap: 5px; min-width: 0; align-content: start; }
.kn-body h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.kn-body p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kn-body small { color: var(--muted); font-size: 0.78rem; }
.kn-type { justify-self: start; font-size: 0.72rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); }
.kn-type.t-report { background: rgba(63, 169, 255, 0.15); color: #3fa9ff; }
.kn-type.t-article { background: rgba(255, 201, 64, 0.16); color: #ffc940; }
.kn-type.t-headline { background: var(--surface-2); color: var(--muted); }
.kn-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.kn-pager a, .kn-pager b, .kn-pager span { min-width: 38px; padding: 8px 12px; border-radius: 10px; text-align: center; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.kn-pager b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kn-pager a:hover { border-color: var(--accent); color: var(--accent); }
.kn-article { max-width: 820px; }
.kn-lg { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 700; }
.kn-lg img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 1px; }
.kn-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.kn-score a { display: grid; justify-items: center; gap: 8px; color: var(--text); text-decoration: none; text-align: center; }
.kn-score img { width: 44px; height: 44px; object-fit: contain; }
.kn-score strong { font-size: 2rem; color: var(--accent); }
.kn-text p { font-size: 1.08rem; line-height: 1.95; margin: 0 0 14px; }
@media (max-width: 600px) { .kn-grid { grid-template-columns: 1fr; } .kn-img { width: 60px; height: 60px; } .kn-score strong { font-size: 1.6rem; } }
.kn-sc { display: inline-flex; gap: 10px; align-items: center; } .kn-sc i { font-style: normal; color: var(--muted); }
.kl-nw .im.sc { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--surface-2); }
.kl-nw .im.sc img { width: 40px; height: 40px; object-fit: contain; }
.kl-nw .im.sc strong { display: inline-flex; gap: 8px; font-size: 1.5rem; color: var(--accent); } .kl-nw .im.sc i { font-style: normal; color: var(--muted); }
.kl-nw .im img.lg { width: 72px; height: 72px; object-fit: contain; margin: auto; display: block; padding-top: 12%; }
/* Goal banner like GoalPulse: scorer photo + crest badge, minute pill, assist */
.kl-goal-banner .gb-pic { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--accent); overflow: visible; display: grid; place-items: center; }
.kl-goal-banner .gb-pic .gb-ph { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #fff; }
.kl-goal-banner .gb-pic .gb-badge { position: absolute; bottom: -4px; inset-inline-end: -6px; width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.kl-goal-banner .gb-pic.nop { background: #fff; }
.kl-goal-banner .gb-pic.nop .gb-badge { position: static; width: 38px; height: 38px; box-shadow: none; padding: 0; }
.kl-goal-banner .gb-title em.gb-min { font-style: normal; font-weight: 900; font-size: .8rem; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 1px 9px; }
.kl-goal-banner .gb-scorer small { margin-inline-start: 6px; }
.kl-goal-banner .gb-assist { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Goal banner centred horizontally (owner's request), desktop + mobile, LTR + RTL */
.kl-goal-banner { inset-inline: 0 !important; left: 0; right: 0; margin-inline: auto; width: min(420px, calc(100% - 28px)); }
@media (max-width: 560px) { .kl-goal-banner { inset-inline: 0 !important; margin-inline: auto; } }
/* Mobile: home side column never wider than the screen (the league-logo row scrolls instead) */
.kl-col { grid-template-columns: minmax(0, 1fr); }
.kl-col > * { min-width: 0; }
.kl-lsel { overflow-x: auto; scrollbar-width: none; }

/* ---------- App pop-up by device + only the matching store badge (kl-shell.js) ---------- */
html[data-dev="apple"] [data-store="android"], html[data-dev="android"] [data-store="ios"] { display: none !important; }
.kl-apppop { position: fixed; z-index: 96; left: 50%; bottom: 20px; width: min(420px, calc(100vw - 24px)); transform: translate(-50%, 140%); opacity: 0;
  display: grid; grid-template-columns: 64px 1fr; gap: 12px 16px; align-items: center; padding: 18px 18px 14px; border-radius: 20px;
  background: linear-gradient(160deg, var(--accent-dim), var(--surface) 55%); border: 1px solid var(--accent); color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 4px var(--accent-dim); backdrop-filter: blur(14px); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .35s; }
.kl-apppop.in { transform: translate(-50%, 0); opacity: 1; }
.kl-apppop .ap-logo { width: 64px; height: 64px; border-radius: 16px; background: #000; }
.kl-apppop .ap-body { display: grid; gap: 3px; min-width: 0; padding-inline-end: 24px; }
.kl-apppop .ap-body strong { font-size: 1.08rem; font-weight: 800; }
.kl-apppop .ap-body span { font-size: .88rem; color: var(--muted); }
.kl-apppop .ap-store { grid-column: 1 / -1; justify-self: center; text-decoration: none; }
.kl-apppop .ap-later { grid-column: 1 / -1; justify-self: center; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; padding: 2px 8px; }
.kl-apppop .ap-later:hover { color: var(--text); }
.kl-apppop .ap-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; }
