/* ============================================================
   KillerMod 2027 — HOMEPAGE (2027 redesign)
   Loaded only on the front page. Reuses the theme design tokens
   (--bg, --accent #e8ff47, etc.) declared in style.css.
   Mobile-first; desktop scaling via max-width containers (no
   fixed-height hero whitespace).
   ============================================================ */

.km-wrap, .km-section, .km-search-wrap, .km-pills-wrap, .km-carousel {
  --km-max: 1200px;
}

/* Shared centered container width.
   NOTE: vertical padding is forced to 0 here to override the theme's
   global `section { padding: 80px 28px }` rule (these are <section>s) —
   spacing is handled with margins instead, so no desktop whitespace bug. */
.km-search-wrap,
.km-pills-wrap,
.km-section {
  width: 100%;
  max-width: var(--km-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
}

/* Hide scrollbars but keep scrolling (Trending / Updated / pills) */
.km-noscroll,
.km-pills {
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* old Edge */
}
.km-noscroll::-webkit-scrollbar,
.km-pills::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ─────────────── SEARCH ─────────────── */
.km-search-wrap { margin-top: 104px; }   /* clear the fixed nav */
.km-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;          /* don't stretch full-width on desktop */
  margin: 0 auto;            /* centered under the logo/nav */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.km-search-ico { font-size: 15px; opacity: .7; flex: 0 0 auto; }
.km-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 8px 4px;
}
.km-search-input::placeholder { color: var(--muted); }
.km-search-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0d14;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
  padding: 10px 18px;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: transform .15s, box-shadow .15s;
}
.km-search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--glow); }

/* ─────────────── CAROUSEL ─────────────── */
.km-carousel {
  position: relative;
  width: 100%;
  max-width: var(--km-max);
  margin: 22px auto 0;
  padding: 0 18px;
}
.km-carousel-track {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: clamp(220px, 42vw, 420px);
  background: var(--surface);
}
.km-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
  background: var(--surface);
}
.km-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.km-slide-media { position: absolute; inset: 0; }
.km-slide-media img { display: block; }
.km-slide-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; }
.km-slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,6,10,.55) 62%, rgba(5,6,10,.92) 100%);
}
.km-slide-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 3vw, 30px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* keep tag/title/button shrink-to-content, not stretched */
}
.km-slide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.km-slide-tag.is-upd { background: var(--accent); color: #0a0d14; }
.km-slide-tag.is-new { background: var(--accent3); color: #041014; }
.km-slide-title {
  font-family: 'Bebas Neue', sans-serif;   /* condensed — no more "stretched" look */
  font-weight: 400;
  font-size: clamp(30px, 9.5vw, 48px);
  letter-spacing: .01em;
  line-height: .9;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  /* keep long titles to 2 tidy lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.km-slide-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.km-slide-ver { font-size: 12px; color: #d6dcff; opacity: .85; }

.km-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10,13,20,.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 3;
  transition: background .15s, transform .15s;
}
.km-carousel-arrow:hover { background: var(--accent); color: #0a0d14; }
.km-prev { left: 26px; }
.km-next { right: 26px; }
.km-carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 14px;
}
.km-dot {
  width: 8px; height: 8px; border-radius: 999px;
  border: 0; padding: 0; cursor: pointer;
  background: var(--muted); opacity: .5;
  transition: width .2s, opacity .2s, background .2s;
}
.km-dot.is-active { width: 22px; opacity: 1; background: var(--accent); }

/* ─────────────── CATEGORY PILLS (sticky bar) ─────────────── */
.km-pillbar {
  position: sticky;
  top: 56px;                 /* sits just under the fixed nav */
  z-index: 50;
  margin-top: 26px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.km-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  max-width: var(--km-max);
  margin: 0 auto;
  padding: 0 18px 2px;
  -webkit-overflow-scrolling: touch;
}
.km-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;   /* pills are links on the /mods/ page */
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.km-pill:hover { transform: translateY(-1px); border-color: var(--accent); }
.km-pill.is-active { background: var(--accent); color: #0a0d14; border-color: var(--accent); }

/* ─────────────── SECTION HEADINGS ─────────────── */
.km-section { margin-top: 44px; }
.km-updated, .km-trending:last-of-type { margin-bottom: 66px; }   /* breathing room before footer */
.km-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.km-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;   /* clean, not stretched (was Syne) */
  font-weight: 700;
  font-size: clamp(19px, 5vw, 23px);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0;
}
.km-fire, .km-bolt { font-size: .95em; }
.km-section-head .section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.km-section-head .view-all {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.km-section-head .view-all:hover { color: var(--accent); }

/* ─────────────── BIG / FEATURED CARDS ─────────────── */
.km-big-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.km-big-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.km-big-card:hover { transform: translateY(-3px); border-color: rgba(232,255,71,.35); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.km-big-media {
  position: relative;
  display: block;
  height: clamp(150px, 30vw, 210px);
}
.km-big-media img { display: block; }
.km-big-benefit {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--accent);
  color: #0a0d14;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.km-big-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.km-big-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.km-big-title:hover { color: var(--accent); }

/* ─────────────── MINI CARD LIST ─────────────── */
.km-mini-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.km-mini-card {
  flex: 0 0 auto;
  width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: transform .15s, border-color .15s;
}
.km-mini-card:hover { transform: translateY(-2px); border-color: rgba(232,255,71,.3); }
.km-mini-media {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 24px;
}
.km-mini-body { flex: 1 1 auto; min-width: 0; }
.km-mini-title {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.km-mini-title:hover { color: var(--accent); }
.km-mini-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }

.km-benefit {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.km-chip {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 999px;
}
.km-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 5px;
}
.km-badge.is-upd { background: rgba(232,255,71,.16); color: var(--accent); }
.km-badge.is-new { background: rgba(0,212,255,.16); color: var(--accent3); }

/* Download trigger buttons */
.km-dl-btn {
  border: 0;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  background: var(--accent);
  color: #0a0d14;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.km-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--glow); }
.km-mini-card .km-dl-btn {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 16px;
}
.km-dl-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;               /* shrink to text — never a full-width bar */
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
}
.km-slide-info .km-dl-cta { box-shadow: 0 6px 20px rgba(0,0,0,.4); }

.km-empty-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
}

/* ─────────────── MODALS ─────────────── */
.km-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.km-modal[hidden] { display: none; }
.km-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,6,10,.72);
  backdrop-filter: blur(4px);
  animation: kmFade .2s ease;
}
.km-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  animation: kmPop .22s cubic-bezier(.2,.8,.2,1);
}
.km-modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.km-modal-x:hover { color: var(--accent2); }
.km-modal-kicker {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.km-modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin: 4px 0 6px;
  color: var(--text);
}
.km-modal-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }

/* App = primary (bigger, brand color, first). Website = secondary. */
.km-modal-app,
.km-modal-web {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.km-modal-app {
  background: var(--accent);
  color: #0a0d14;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 18px;
  box-shadow: 0 8px 22px var(--glow);
}
.km-modal-app:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--glow); }
.km-modal-web {
  margin-top: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 16px;
}
.km-modal-web:hover { color: var(--text); border-color: var(--muted); }

/* App experience modal — wider */
.km-app-card { max-width: 860px; padding: 30px; }
.km-app-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.km-app-copy h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 6vw, 46px);
  line-height: .96;
  margin: 6px 0 16px;
}
.km-app-copy .app-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.km-app-copy .app-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.km-app-copy .app-feat-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--surface2);
  display: grid; place-items: center;
  font-size: 18px;
}
.km-app-dl { text-decoration: none; display: inline-flex; align-items: center; padding: 13px 26px; font-size: 14px; }
.km-app-phone { display: flex; justify-content: center; }
.km-app-phone .phone-frame { transform: scale(.92); }

@keyframes kmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kmPop  { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ─────────────── RESPONSIVE (desktop scaling) ─────────────── */
@media (min-width: 640px) {
  .km-mini-card { width: 240px; }
}
@media (min-width: 900px) {
  .km-big-row { grid-template-columns: repeat(3, 1fr); }
  .km-big-media { height: 190px; }
  .km-app-grid { grid-template-columns: 1.05fr .95fr; gap: 34px; }
}
@media (max-width: 560px) {
  .km-prev { left: 12px; }
  .km-next { right: 12px; }
  .km-carousel-arrow { width: 36px; height: 36px; font-size: 20px; }
  .km-app-card { padding: 22px 18px; }
  .km-app-phone { display: none; }   /* keep the modal compact on small phones */
}

/* ─────────────── LIGHT MODE TWEAKS ─────────────── */
body.light-mode .km-slide-title { color: #fff; }         /* over dark image shade — keep white */
body.light-mode .km-search { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
body.light-mode .km-big-benefit,
body.light-mode .km-pill.is-active,
body.light-mode .km-search-btn,
body.light-mode .km-modal-app,
body.light-mode .km-dl-btn { color: #0a0d14; }
body.light-mode .km-carousel-arrow { background: rgba(255,255,255,.7); color: #0a0d14; }
body.light-mode .km-bcard-tag { color: #1a2800; }
body.light-mode .km-rcard { border-color: rgba(0,0,0,0.08); }

/* Light mode: keep brand FILLS vibrant lime (not dull olive) — matches the
   header buttons. Accent text stays the darker readable green. */
body.light-mode .km-pill.is-active,
body.light-mode .km-search-btn,
body.light-mode .km-dl-btn,
body.light-mode .km-bcard-ver,
body.light-mode .km-page.is-active,
body.light-mode .km-modal-app,
body.light-mode .km-search-empty-btn,
body.light-mode .km-slide-tag.is-upd {
  background: #e8ff47;
  color: #0a0d14;
}

/* ════════════════════ SLIDE CTA ROW (Download + Details) ════════════════════ */
.km-slide-cta { display: flex; align-items: center; gap: 10px; }
.km-slide-details {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.km-slide-details:hover { background: rgba(0,0,0,.45); border-color: #fff; }

/* ════════════════════ BIG TRENDING CARD (app-style, ~3 visible) ════════════════════ */
.km-bcard-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.km-bcard {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.km-bcard:hover { transform: translateY(-3px); border-color: rgba(232,255,71,.35); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.km-bcard-thumb {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
}
.km-bcard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.km-bcard-thumb.is-cover img { object-fit: cover; }
.km-bcard-thumb.is-contain img { object-fit: contain; padding: 12px; }
.km-bcard-emoji { font-size: 44px; }
.km-bcard-ver {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  background: var(--accent);
  color: #0a0d14;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.km-bcard-body { padding: 12px 12px 14px; }
.km-bcard-title {
  font-family: 'DM Sans', sans-serif;   /* clean, not stretched */
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.km-bcard-tag {
  display: inline-block;
  max-width: 100%;
  background: rgba(232,255,71,.10);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════ ROW-LIST CARD (Updated Today + /mods/) ════════════════════ */
.km-rcard-list { display: flex; flex-direction: column; }
.km-rcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.km-rcard:first-child { border-top: 1px solid var(--border); }
.km-rcard:hover { background: var(--surface); }
.km-rcard-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 26px;
}
.km-rcard-icon img { width: 100%; height: 100%; object-fit: cover; }
.km-rcard-main { flex: 1 1 auto; min-width: 0; }
.km-rcard-title {
  font-family: 'DM Sans', sans-serif;   /* clean, not stretched */
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.km-rcard-feat {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.km-rcard-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.km-rcard-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Desktop: show more Trending cards at a wider size */
@media (min-width: 720px) {
  .km-bcard { width: 210px; }
  .km-bcard-thumb { height: 158px; }
  /* Centre the category pills on wide screens (they scroll on mobile) */
  .km-pills { justify-content: center; }
}

/* ════════════════════ /mods/ LISTING ════════════════════ */
.km-mods-list { margin-bottom: 70px; }
.km-mods-count { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.km-pagination {
  position: static;          /* override the base theme's `nav { position: fixed }` */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* centered pager */
  gap: 8px;
  margin-top: 28px;
}
.km-page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.km-page:hover { border-color: var(--accent); }
.km-page.is-active { background: var(--accent); color: #0a0d14; border-color: var(--accent); }
.km-page-nav { padding: 0 16px; }
.km-page-gap { color: var(--muted); padding: 0 4px; }
body.light-mode .km-page.is-active { color: #0a0d14; }

/* ════════════════════ SEARCH — empty state ════════════════════ */
.km-search-empty {
  text-align: center;
  padding: 46px 20px 70px;
}
.km-search-empty-emoji { font-size: 44px; opacity: .55; margin-bottom: 12px; }
.km-search-empty h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.km-search-empty p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.km-search-empty strong { color: var(--accent); font-weight: 700; }
.km-search-empty-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #0a0d14;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.km-search-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--glow); }
