:root{
  --knight-orange:#ff6a00;
  --knight-search-coral:#ff5a4e;
  --knight-dark:#2f2f2f;
  --knight-light:#ffffff;
  --knight-muted:#6b6b6b;
}

.knight-body{
  background:#fff;
  color:#111;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.knight-header{
  background: var(--knight-dark);
  color: var(--knight-light);
}
.knight-header .header-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
}
.knight-header .logo{
  font-size:28px;
  font-weight:800;
  line-height:1;
}
.logo-knight{ color: var(--knight-orange); }
.logo-network{ color: #fff; }
.header-nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.header-nav .nav-link{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  opacity:.9;
}
.header-nav .nav-link:hover{ opacity:1; }
.header-nav .nav-sep{
  color:#fff;
  opacity:.45;
  font-weight:500;
  user-select:none;
}

.container-fluid.knight-container{
  max-width: 980px;
}

.game-categories{
  background:#fff;
  padding:10px 0 0;
}
.category-row{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px 18px;
  padding:6px 16px;
}
.category-badge{
  flex-shrink: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  background: var(--knight-orange);
  color:#fff;
  border-radius:18px;
  font-size:12px;
  font-weight:700;
  text-transform: lowercase;
}
.game-link{
  color:#222;
  text-decoration:none;
  font-weight:600;
}
.game-link:hover,
.game-link:focus-visible{
  color: var(--knight-orange);
  text-decoration:none;
}

.section-title{
  font-size:20px;
  font-weight:800;
  margin:18px 0 10px;
  padding:0 16px;
}
.section-title::after{
  content:"";
  display:block;
  width:88px;
  height:4px;
  background: var(--knight-orange);
  margin-top:8px;
}

.popular-games{
  padding-bottom:10px;
}

.knight-carousel{
  padding:0 16px 8px;
}
.knight-carousel .carousel-inner{
  border-radius:10px;
  overflow:hidden;
}
.knight-carousel .carousel-item img{
  width:100%;
  height: 280px;
  object-fit: cover;
  display:block;
}
.knight-carousel-hit{
  display:block;
  color:#fff;
  text-decoration:none;
}
.knight-carousel-hit:hover{
  color:#fff;
}
.knight-carousel-img-wrap{
  position:relative;
  overflow:hidden;
}
.knight-carousel .carousel-item .knight-carousel-img-wrap img{
  opacity: 1;
  transition: opacity .28s ease;
}
.knight-carousel-hit:hover .knight-carousel-img-wrap img{
  opacity: 0.72;
}
.knight-carousel .carousel-caption{
  left:0;
  right:0;
  bottom:0;
  padding:12px 14px;
  text-align:left;
  background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.knight-carousel .carousel-caption .caption-title{
  font-weight:800;
  font-size:14px;
  margin:0;
}
.knight-carousel .carousel-indicators{
  margin-bottom:8px;
}
.knight-carousel .carousel-indicators [data-bs-target]{
  width:9px;
  height:9px;
  border-radius:50%;
  border:0;
  background:#fff;
  opacity:.55;
}
.knight-carousel .carousel-indicators .active{
  opacity:1;
  background: var(--knight-orange);
}

.latest-strategy{
  padding-bottom:16px;
}
.strategy-list{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:0 16px;
}
.strategy-item{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap:16px;
  align-items:start;
}
.strategy-image img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:8px;
}
.strategy-thumb-link{
  display:block;
  text-decoration:none;
  position:relative;
  overflow:hidden;
  border-radius:8px;
}
.strategy-thumb-link img,
.strategy-thumb-link .strategy-thumb-ph{
  opacity: 1;
  transition: opacity .28s ease;
}
.strategy-thumb-link:hover img,
.strategy-thumb-link:hover .strategy-thumb-ph{
  opacity: 0.72;
}
.strategy-thumb-ph{
  width:100%;
  height:120px;
  border-radius:8px;
  background: linear-gradient(135deg, #ececec, #ddd);
  border:1px solid #e0e0e0;
}
.strategy-title{
  font-size:16px;
  font-weight:800;
  margin:0 0 6px;
}
.ls-link{
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.ls-link-title{
  color:#111;
}
.ls-link-game{
  color:#555;
}
.ls-link:hover{
  color: var(--knight-orange);
}
.strategy-excerpt{
  margin:0 0 8px;
  color:var(--knight-muted);
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.strategy-tag{
  display:inline-block;
  color:#777;
  font-weight:600;
}

.ad-space{
  padding:10px 0 24px;
}
.ad-placeholder{
  margin:0 16px;
  border:1px dashed #c7c7c7;
  border-radius:10px;
  height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
  background:#fafafa;
}

/* Home — game directory search */
.guide-search-module{
  padding: 8px 0 6px;
}
.guide-search-head{
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 0 16px 12px;
}
.guide-search-brand{
  display:flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.guide-search-brand-knight{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  background: var(--knight-search-coral);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.guide-search-brand-rest{
  color: var(--knight-search-coral);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.guide-search-pill{
  flex: 1;
  min-width: 220px;
  max-width: 640px;
  display:flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--knight-search-coral);
  border-radius: 999px;
  background: #fff;
  padding: 4px 5px 4px 14px;
  box-sizing: border-box;
}
.guide-search-pill-icon{
  color: var(--knight-search-coral);
  display:flex;
  flex-shrink: 0;
}
.guide-search-input{
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 15px;
  padding: 10px 4px;
  background: transparent;
  color: #222;
}
.guide-search-input::placeholder{
  color: #a8a8a8;
}
.guide-search-submit{
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  background: var(--knight-search-coral);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 22px;
  letter-spacing: 0.02em;
}
.guide-search-submit:hover{
  filter: brightness(1.06);
}
.guide-search-submit:active{
  filter: brightness(0.96);
}
.guide-search-is-hidden{
  display: none !important;
}
.guide-search-summary{
  display:flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 16px 0;
  padding: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.guide-search-summary-bar{
  width: 4px;
  min-height: 1.2em;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--knight-search-coral);
  flex-shrink: 0;
}
.guide-search-query{
  color: var(--knight-search-coral);
  font-weight: 800;
}
.guide-search-results{
  display:flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 8px 16px 16px;
}
.guide-search-card{
  width: 140px;
}
.guide-search-card-link{
  display:block;
  text-decoration: none;
  color: #111;
}
.guide-search-card-link:hover .guide-search-card-title{
  color: var(--knight-search-coral);
}
.guide-search-card img,
.guide-search-ph{
  width: 100%;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0,0,0,.08);
  box-sizing: border-box;
}
.guide-search-ph{
  background: linear-gradient(135deg, #f3f3f3, #e8e8e8);
}
.guide-search-card-title{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.guide-search-empty{
  display:flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 20px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
}
.guide-search-empty-face{
  font-size: 28px;
  line-height: 1;
  color: #9a9a9a;
  flex-shrink: 0;
}

/* Home — Hot game news */
.hot-game-news{
  padding: 6px 0 20px;
}
.hot-news-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:800;
  margin:18px 0 12px;
  padding:0 16px;
}
.hot-news-title-bar{
  width:4px;
  height:1.1em;
  border-radius:2px;
  background: var(--knight-orange);
  flex-shrink:0;
}
.hot-news-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap:18px;
  padding:0 16px 8px;
  align-items:start;
}
.hot-news-carousel-col{
  min-width:0;
}
.hot-news-carousel{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  background:#111;
}
.hot-news-carousel .carousel-inner{
  border-radius:10px;
}
.hot-news-slide-hit{
  display:block;
  color:#fff;
  text-decoration:none;
}
.hot-news-slide-hit:hover{ color:#fff; }
.hot-news-slide-img-wrap{
  position:relative;
  overflow:hidden;
}
.hot-news-carousel .hot-news-slide-img-wrap img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
  opacity:1;
  transition: opacity .28s ease;
}
.hot-news-slide-hit:hover .hot-news-slide-img-wrap img{
  opacity:.55;
}
.hot-news-slide-caption{
  padding:10px 12px;
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,0));
  margin-top:-52px;
  position:relative;
  z-index:1;
}
.hot-news-slide-ph{
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:#f4f4f4;
}
.hot-news-ctrl{
  width:42px;
  opacity:.95;
  z-index:3;
}
.hot-news-thumbs{
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
.hot-news-thumb{
  border:2px solid transparent;
  border-radius:6px;
  padding:0;
  overflow:hidden;
  width:calc(20% - 7px);
  min-width:56px;
  max-width:96px;
  background:#ddd;
  cursor:pointer;
  line-height:0;
}
.hot-news-thumb img{
  width:100%;
  height:48px;
  object-fit:cover;
  display:block;
  opacity:.85;
  transition: opacity .2s ease;
}
.hot-news-thumb:hover img,
.hot-news-thumb.active img{
  opacity:1;
}
.hot-news-thumb.active{
  border-color: var(--knight-orange);
}
.hot-news-side{
  min-width:0;
}
.hot-news-date-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
  color:#1b5e20;
  font-weight:700;
  font-size:14px;
}
.hot-news-select{
  flex:1;
  min-width:72px;
  border:1px solid #c8e6c9;
  border-radius:8px;
  padding:6px 8px;
  font-weight:700;
  color:#1b5e20;
  background:#f1fff4;
}
.hot-news-title-list{
  padding:0;
  margin:0;
}
.hot-news-title-item{
  position:relative;
  padding:6px 0 6px 16px;
  line-height:1.4;
}
.hot-news-title-item::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:8px;
  height:8px;
  background: var(--knight-orange);
  border-radius:1px;
}
.hot-news-title-link{
  color:#111;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}
.hot-news-title-link:hover{
  color: var(--knight-orange);
}

/* Home — Aesthetic Wallpapers */
.wallpaper-module{
  padding: 14px 0 28px;
  border-top: 2px dotted #d8d8d8;
  background: #fafafa;
}
.wallpaper-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px;
}
.wallpaper-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.wallpaper-title-bar{
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--knight-orange);
  flex-shrink: 0;
}
.wallpaper-more{
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-decoration: none;
}
.wallpaper-more:hover{
  color: var(--knight-orange);
  text-decoration: underline;
}
/* Bento: col1 ×2 | col2 tall | col3 ×3 | col4 ×2 (repeats every 8 sets) */
.wallpaper-bento{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px 22px;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  height: clamp(340px, 48vw, 560px);
}
.wallpaper-bento-stack{
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  min-width: 0;
}
.wallpaper-bento-stack--left{ grid-column: 1; }
.wallpaper-bento-stack--right{ grid-column: 4; }
.wallpaper-bento-stack > .wallpaper-bento-cell{
  flex: 1 1 0;
  min-height: 0;
  height: auto;
}
.wallpaper-bento-pos-2{ grid-column: 2; grid-row: 1 / span 3; }
.wallpaper-bento-pos-3{ grid-column: 3; grid-row: 1; }
.wallpaper-bento-pos-4{ grid-column: 3; grid-row: 2; }
.wallpaper-bento-pos-5{ grid-column: 3; grid-row: 3; }

.wallpaper-card{
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
}
.wallpaper-bento-cell{
  min-height: 0;
  height: 100%;
}
.wallpaper-card-img-wrap{
  overflow: hidden;
  background: #e8e8e8;
  width: 100%;
  height: 100%;
}
.wallpaper-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  opacity: 1;
  transition: opacity .28s ease, transform .38s ease;
}
/* Dim like Hot game news slide + slight zoom */
.wallpaper-card:hover img{
  opacity: .55;
  transform: scale(1.08);
}
.wallpaper-card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
  background: rgba(0,0,0,.18);
}
.wallpaper-card:hover .wallpaper-card-overlay{
  opacity: 1;
}
.wallpaper-card-title{
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
}

@media (max-width: 768px){
  .strategy-item{ grid-template-columns: 140px 1fr; }
  .knight-carousel .carousel-item img{ height: 220px; }
  .category-row{
    gap: 8px 12px;
    padding: 8px 12px;
  }
  .hot-news-layout{
    grid-template-columns: 1fr;
  }
  .hot-news-carousel .hot-news-slide-img-wrap img{
    height:220px;
  }
}

/* Phones only: bento becomes a vertical list (768px was too wide — tablets looked like a single column) */
@media (max-width: 575.98px){
  .wallpaper-bento{
    display: flex;
    flex-direction: column;
    height: auto;
    max-width: none;
    gap: 12px;
    padding: 0 12px 18px;
  }
  .wallpaper-bento-cell{
    height: 200px;
    flex-shrink: 0;
  }
  .wallpaper-bento-stack{
    display: contents;
  }
  .wallpaper-bento-stack > .wallpaper-bento-cell{
    flex: none;
  }
  .wallpaper-bento-pos-2,
  .wallpaper-bento-pos-3,
  .wallpaper-bento-pos-4,
  .wallpaper-bento-pos-5{
    grid-column: unset;
    grid-row: unset;
  }
}

/* —— Game rankings (HTML from admin; classes gr-* are optional helpers) —— */
.game-rankings-module{
  padding: 18px 0 26px;
  background: #fff;
  border-top: 2px dotted #d8d8d8;
}
.game-rankings-module .gr-board{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 4px 16px 8px;
}
.game-rankings-module .gr-col{
  min-width: 0;
}
.game-rankings-module .gr-heading{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #111;
}
.game-rankings-module .gr-bar{
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--knight-orange);
  flex-shrink: 0;
}
.game-rankings-module .gr-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.game-rankings-module .gr-row{
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}
.game-rankings-module .gr-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #9e9e9e;
}
.game-rankings-module .gr-list > li:nth-child(-n+3) .gr-num{
  background: #e53935;
}
.game-rankings-module .gr-date{
  color: #b0b0b0;
  font-size: 12px;
}
.game-rankings-module .gr-title{
  color: #111;
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-rankings-module a.gr-title:hover{
  color: var(--knight-orange);
}
.game-rankings-module .gr-val{
  color: #e53935;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.game-rankings-module .gr-ico{
  margin-left: 4px;
  font-size: 12px;
}
@media (max-width: 991.98px){
  .game-rankings-module .gr-board{
    grid-template-columns: 1fr;
  }
}

/* —— Global site footer (all knight pages) —— */
.knight-global-footer{
  background: #1a1e26;
  color: #fff;
  text-align: center;
  padding: 22px 16px 26px;
  margin-top: 0;
}
.knight-global-footer-inner{
  max-width: 980px;
  margin: 0 auto;
}
.knight-global-footer-links{
  font-size: 15px;
  font-weight: 600;
}
.knight-global-footer-links a{
  color: #fff;
  text-decoration: none;
}
.knight-global-footer-links a:hover{
  color: var(--knight-orange);
}
.knight-global-footer-sep{
  opacity: .55;
  margin: 0 10px;
  font-weight: 400;
}
.knight-global-footer-copy{
  font-size: 13px;
  opacity: .85;
  margin-top: 12px;
}

/* —— Hub pages: Feedback, Contact, Sitemap, Privacy —— */
.site-hub-body{
  background: #f0f0f0;
}
.site-hub-brand-bar{
  background: linear-gradient(90deg, #ff6a00 0%, #ffb347 100%);
  padding: 20px 16px 18px;
  text-align: center;
}
.site-hub-brand-title .site-hub-brand-link{
  text-decoration: none;
  color: #fff;
}
.site-hub-brand-title .logo-knight,
.site-hub-brand-title .logo-network{
  color: #fff;
}
.site-hub-brand-url{
  color: rgba(255,255,255,.95);
  font-size: 14px;
  margin-top: 6px;
}
.site-hub-shell{
  padding-top: 20px;
  padding-bottom: 28px;
}
.site-hub-layout{
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.site-hub-nav{
  background: #e4e4e4;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-hub-nav-item{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.site-hub-nav-item:hover{
  background: rgba(255,106,0,.15);
  color: var(--knight-orange);
}
.site-hub-nav-item.active{
  background: var(--knight-orange);
  color: #fff;
}
.site-hub-main{
  background: #e8e8e8;
  border-radius: 12px;
  padding: 22px 24px 28px;
  min-height: 360px;
}
.site-hub-page-title{
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--knight-orange);
}
.site-hub-form .form-label{
  font-weight: 600;
  color: #333;
}
.site-hub-captcha-input{
  max-width: 160px;
}
.site-hub-captcha-img{
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}
.site-hub-submit-btn{
  background: var(--knight-orange);
  color: #111;
  font-weight: 800;
  border: none;
  border-radius: 8px;
}
.site-hub-submit-btn:hover{
  background: #ff8533;
  color: #111;
}
.site-hub-prose{
  font-size: 15px;
  color: #222;
}
.site-hub-bullet-lead{
  font-weight: 700;
}
.site-hub-bullet{
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--knight-orange);
  margin-right: 8px;
  vertical-align: middle;
}
.site-hub-email-link{
  color: #c24100;
  font-weight: 700;
}
.site-hub-email-link:hover{
  color: var(--knight-orange);
}
.site-hub-sitemap-item{
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.site-hub-sitemap-item a{
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.site-hub-sitemap-item a:hover{
  color: var(--knight-orange);
}
.site-hub-sitemap-date{
  margin-left: 10px;
}
.site-hub-xml-link{
  color: var(--knight-orange);
  font-weight: 700;
}
.site-hub-policy-body{
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}
.site-hub-policy-body p{
  margin-bottom: 0.85rem;
}
@media (max-width: 767.98px){
  .site-hub-layout{
    grid-template-columns: 1fr;
  }
}

