/* Trang mục lục Góc kiến thức: nền vũ trụ tối, dùng cùng bai-viet.css */
body.kt { background: #05080f; color: #e6edf3; }
body.kt a { color: inherit; }
.kt .top { background: #05080fcc; border-bottom: 1px solid #ffffff12; }

.ktHero { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center;
  background: radial-gradient(ellipse at 70% 110%, #12406b 0%, #071426 45%, #05080f 75%); }
#ktSky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ktHeroIn { position: relative; max-width: 1100px; margin: 0 auto; padding: 56px 20px 64px; width: 100%; pointer-events: none; }
.ktHeroIn > * { max-width: 640px; }
.ktKick { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd166; }
.ktHero h1 { color: #fff; font-size: clamp(30px, 5.2vw, 52px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; text-shadow: 0 2px 20px #000a; }
.ktHero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd166, #5cc8ff 60%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ktLede { font-size: 18px; line-height: 1.65; color: #c8d3de; margin: 0 0 24px; text-shadow: 0 1px 10px #000; }
.ktStats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.ktStats div { background: #0b1424b3; border: 1px solid #ffffff1a; border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); }
.ktStats b { display: block; font-size: 26px; color: #fff; line-height: 1.1; }
.ktStats span { font-size: 13px; color: #93a1b0; }

.ktMain { max-width: 1100px; margin: 0 auto; padding: 28px 20px 56px; }
.ktH2 { font-size: 22px; margin: 18px 0 14px; color: #fff; }
.ktPlay { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ktPlay a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; text-decoration: none; border-radius: 18px; padding: 18px 18px 16px;
  border: 1px solid #ffffff1f; transition: transform .25s, box-shadow .25s; min-height: 190px; }
.ktPlay a::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -60px; border-radius: 50%; background: radial-gradient(#ffffff2a, transparent 70%); }
.ktPlay .c1 { background: linear-gradient(140deg, #0f3d6e, #0a1a33 70%); }
.ktPlay .c2 { background: linear-gradient(140deg, #5a3d0a, #1a1408 70%); }
.ktPlay .c3 { background: linear-gradient(140deg, #3d1f6e, #140a26 70%); }
.ktPlay .c5 { background: linear-gradient(140deg, #6b2a0a, #1f0d05 70%); }
.ktPlay .c4 { background: linear-gradient(140deg, #0d5a45, #071a14 70%); }
.ktPlay a:hover { transform: translateY(-4px); box-shadow: 0 14px 40px #0009; }
.ktPlay .ico { font-size: 40px; line-height: 1; }
.ktPlay b { font-size: 19px; color: #fff; line-height: 1.3; }
.ktPlay small { font-size: 14.5px; color: #c8d3de; line-height: 1.5; }
.ktPlay i { margin-top: auto; font-style: normal; font-weight: 700; color: #ffd166; font-size: 14px; }

.ktBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ktBar .ktH2 { margin: 0; }
#ktQ { flex: 0 1 340px; min-width: 0; font: inherit; font-size: 15px; padding: 10px 14px; border-radius: 12px; border: 1px solid #ffffff26; background: #0b1424; color: #fff; }
#ktQ:focus { outline: 2px solid #5cc8ff; outline-offset: 1px; }
.ktChips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.ktChips button { font: inherit; font-size: 14px; cursor: pointer; border-radius: 20px; padding: 6px 13px; border: 1px solid #ffffff24; background: #0b1424; color: #c8d3de; }
.ktChips button small { opacity: .6; margin-left: 2px; }
.ktChips button.on { background: #ffd166; border-color: #ffd166; color: #1a1408; font-weight: 700; }

.ktGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ktGrid a { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: linear-gradient(#0c1628, #0a1220) padding-box,
  linear-gradient(140deg, #ffffff22, #ffffff08) border-box; border: 1px solid transparent; border-radius: 18px; padding: 18px; transition: transform .25s, background .25s;
  animation: ktIn .5s ease both; animation-delay: var(--d, 0ms); }
.ktGrid a:hover { transform: translateY(-4px); background: linear-gradient(#0f1c33, #0b1424) padding-box, linear-gradient(140deg, #ffd166, #5cc8ff, #b48cff) border-box; }
.ktGrid .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: radial-gradient(#ffffff1f, #ffffff05); box-shadow: 0 0 24px #5cc8ff22; }
.ktGrid .no { position: absolute; right: 16px; top: 12px; font-size: 34px; font-weight: 800; color: #ffffff10; }
.ktGrid b { font-size: 17.5px; line-height: 1.35; color: #fff; }
.ktGrid small { font-size: 14.5px; line-height: 1.55; color: #a9b6c4; }
.ktGrid i { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; color: #7f91a6; }
.ktGrid a[hidden] { display: none; }
.ktNone { text-align: center; color: #93a1b0; padding: 30px 0; }
@keyframes ktIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.kt .foot { background: #03060b; border-top: 1px solid #ffffff12; }
@media (max-width: 620px) { .ktPlay { grid-template-columns: minmax(0, 1fr); } .ktPlay a { min-height: 0; } }
@media (max-width: 560px) {
  .ktHero { min-height: 0; }
  .ktHeroIn { padding: 34px 16px 40px; }
  .ktLede { font-size: 16.5px; }
  .ktStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ktMain { padding: 18px 16px 40px; }
  .ktGrid { grid-template-columns: minmax(0, 1fr); }
  #ktQ { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ktGrid a, .ktPlay a { animation: none; transition: none; } }
