/* Tìm nhanh đội / giải kiểu Flashscore — chép từ Keobongda247 (8117), 04/12/2026.
   Hộp: partials/tim-nhanh-modal; dữ liệu GET /ajax/tim-nhanh.htm?q= (TimNhanhController).
   Mở bằng mọi nút .kb-search-open; .tn-js trên <html> = JS đang chạy (không JS thì ẩn nút). */
:root{--tn-c:#004593;--tn-line:#E3E6EC;--tn-ink:#1F2733}
.kb-sm,.kb-sm *{box-sizing:border-box}
.kb-search-open{display:none}
.tn-js .kb-search-open{display:flex}
.kb-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kb-sm[hidden]{display:none}
.kb-sm{position:fixed;inset:0;z-index:200;font-family:Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:0}
.kb-sm-bg{position:absolute;inset:0;background:rgba(5,10,25,.62)}
.kb-sm-box{position:relative;margin:72px auto 0;width:min(600px,calc(100% - 32px));max-height:calc(100vh - 144px);display:flex;flex-direction:column;background:#fff;border-radius:10px;box-shadow:0 24px 60px rgba(0,0,0,.35);overflow:hidden}
.kb-sm-head{display:flex;align-items:center;gap:4px;margin:0;padding:0 8px 0 18px;height:60px;border-bottom:1px solid var(--tn-line);flex:none}
.kb-sm-ic{color:var(--tn-c);flex:none}
.kb-sm-head input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;padding:0 8px 0 10px;font:17px Arial,Helvetica,sans-serif;color:var(--tn-ink)}
.kb-sm-head input::placeholder{color:#8A958F}
.kb-sm-clear,.kb-sm-x{flex:none;width:40px;height:40px;border:0;background:transparent;color:#6B7A72;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.kb-sm-clear[hidden]{display:none}
.kb-sm-clear:hover,.kb-sm-x:hover{background:#EEF1F5;color:var(--tn-ink)}
.kb-sm-x{border-left:1px solid var(--tn-line);border-radius:0;width:48px}
.kb-sm-body{overflow-y:auto;overscroll-behavior:contain;padding:6px 0 10px}
.kb-sm-msg{margin:0;padding:22px 20px;font-size:14px;line-height:20px;color:#6B7A72;text-align:center}
.kb-sm-h{margin:0;padding:12px 20px 6px;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#6B7A72}
.kb-sm-row{display:flex;align-items:center;gap:14px;padding:9px 20px;color:var(--tn-ink);text-decoration:none!important}
.kb-sm-row:hover,.kb-sm-row.is-on{background:#EEF3FA}
.kb-sm-logo{width:36px;height:36px;flex:none;border-radius:50%;background:#F3F5F4;display:flex;align-items:center;justify-content:center;overflow:hidden}
.kb-sm-logo img{width:26px;height:26px;object-fit:contain}
.kb-sm-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
.kb-sm-t{font-size:15px;font-weight:700;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-sm-t mark{background:none;color:var(--tn-c)}
.kb-sm-s{font-size:12px;line-height:16px;color:#6B7A72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-sm-row:hover .kb-sm-t,.kb-sm-row.is-on .kb-sm-t{color:var(--tn-c)}
.kb-sm-load{height:3px;background:linear-gradient(90deg,transparent,var(--tn-c),transparent);background-size:40% 100%;background-repeat:no-repeat;animation:kbsm 1s linear infinite;visibility:hidden;flex:none}
.kb-sm.is-loading .kb-sm-load{visibility:visible}
@keyframes kbsm{from{background-position:-40% 0}to{background-position:140% 0}}
html.kb-sm-open,html.kb-sm-open body{overflow:hidden}
/* mobile: hộp nhỏ nổi phía trên, cao theo nội dung (03/12/2026 người dùng chê full màn) */
@media (max-width:640px){
  .kb-sm-box{margin:56px auto 0;width:calc(100% - 24px);height:auto;max-height:65vh;border-radius:10px}
  .kb-sm-head{height:56px;padding-left:14px}
  .kb-sm-head input{font-size:16px}
  .kb-sm-row{padding:10px 16px}
  .kb-sm-h{padding-left:16px}
}

.kb-sm p{margin:0}
.kb-sm a:hover{text-decoration:none}
/* ---- Nút mở — bongdaplus (8099), trang responsive một HTML ---- */
/* PC: hình tròn kính lúp ở mép phải thanh menu xanh */
#nav-header .container{position:relative}
#nav-header .tn-pc{position:absolute;right:15px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s}
#nav-header .tn-pc:hover,#nav-header .tn-pc[aria-expanded="true"]{background:#ea1c1c}
.tn-js #header .tn-m{display:none}
/* điện thoại: menu thành ngăn trượt -> nút nằm trên dải logo, trái nút menu đỏ */
@media (max-width:767.98px){
  .tn-js #nav-header .tn-pc{display:none}
  .tn-js #header .tn-m{display:flex;position:absolute;top:14px;right:50px;z-index:5;width:42px;height:42px;border:0;background:none;color:#ea1c1c;align-items:center;justify-content:center;cursor:pointer;padding:0}
}
