/* IPTVRESTREAM • 23 October 2026 • Knowledge Base dark-card contrast fix.
   Deliberately narrow selectors: change only the six topic cards immediately above search.
   Standalone filename avoids stale Cloudflare/browser cached styles. */

body .kb-directory .kb-topic-jumps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 23px 0 28px;
  background: transparent;
}
body .kb-directory .kb-topic-jumps-lead {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 1px;
  background: transparent;
}
body .kb-directory .kb-topic-jumps-lead strong { color: #f6f7fb; }
body .kb-directory .kb-topic-jumps-lead span { color: #aeb4c5; }
body .kb-directory button.kb-topic-shortcut {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 107px;
  margin: 0;
  padding: 18px 20px;
  text-align: left;
  font-family: inherit;
  color: #f7f8fc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1d28 0%, #11141d 75%, #1c101a 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
body .kb-directory button.kb-topic-shortcut::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 34px;
  top: 19px;
  left: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg,#ff6a76,#af173b);
  box-shadow: 0 0 15px rgba(242,40,79,.3);
}
body .kb-directory button.kb-topic-shortcut strong {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
}
body .kb-directory button.kb-topic-shortcut span {
  display: block;
  color: #b4b8c6;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}
body .kb-directory button.kb-topic-shortcut:hover,
body .kb-directory button.kb-topic-shortcut:focus-visible {
  background: linear-gradient(145deg, #29202c 0%,#1a1621 100%);
  border-color: rgba(255,95,115,.68);
  box-shadow: 0 14px 34px rgba(0,0,0,.3),0 0 0 1px rgba(222,48,79,.1);
  transform: translateY(-2px);
}
body .kb-directory button.kb-topic-shortcut:focus-visible {
  outline: 2px solid #ff879a;
  outline-offset: 3px;
}
/* The search input and Chrome auto-fill must not introduce a white rectangle. */
body .kb-directory .kb-searchbar { background: #151821; border-color:rgba(255,255,255,.17); }
body .kb-directory .kb-searchbar input { background: transparent; color:#f9f9fd; color-scheme: dark; }
body .kb-directory .kb-searchbar input:-webkit-autofill { -webkit-text-fill-color:#f9f9fd; -webkit-box-shadow:0 0 0 100px #151821 inset; }
@media(max-width:800px){
  body .kb-directory .kb-topic-jumps {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body .kb-directory button.kb-topic-shortcut {min-height:104px;padding:16px}
}
@media(max-width:480px){
  body .kb-directory .kb-topic-jumps-lead {display:block}
  body .kb-directory .kb-topic-jumps-lead span{display:block;margin-top:5px}
  body .kb-directory .kb-topic-jumps {gap:9px}
  body .kb-directory button.kb-topic-shortcut {padding:14px;min-height:102px}
  body .kb-directory button.kb-topic-shortcut strong{font-size:12px}
  body .kb-directory button.kb-topic-shortcut span{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
  body .kb-directory button.kb-topic-shortcut {transition:none}
  body .kb-directory button.kb-topic-shortcut:hover {transform:none}
}
