/* NEKOSTR 1.45: editorial hierarchy, readable controls and measured ad slots. */
:root { --bg: #0c0d10; --bg2: #14161b; --bg3: #1c1f26; --bg-card: #14161b; --card: #14161b; --border: #2a2e37; --text-muted: #a6aab4; --radius: 14px; }
:focus-visible { outline: 3px solid var(--accent-pop); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nk-muted { color: var(--text-muted); }
.nk-home .home-intro { max-width: 940px; margin: 16px 0 32px; }
.nk-home .home-intro h1 { max-width: 850px; font-size: clamp(1.85rem, 3.8vw, 3.2rem); line-height: 1.13; }
.nk-home .video-eyebrow { color: var(--accent-pop); letter-spacing: .12em; }
.nk-home-search { display: flex; gap: 8px; padding: 7px; margin-top: 24px; max-width: 700px; border: 1px solid #3b404c; border-radius: 12px; background: var(--bg2); }
.nk-home-search input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--text); padding: 10px 12px; font: inherit; }
.nk-home-search button { border: 0; border-radius: 8px; background: var(--accent-pop); color: #170710; padding: 10px 24px; font: 700 .9rem var(--font); cursor: pointer; }
.nk-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nk-quick-links a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; color: #d7dae2; font-size: .8rem; }
.nk-quick-links a:hover { border-color: var(--accent-pop); color: #fff; }
.nk-home .hero-slider { margin-bottom: 24px; }
.nk-home .hero-slide { aspect-ratio: 16/4.8; min-height: 280px; }
.nk-home .hero-content { max-width: 650px; }
.nk-home .hero-title { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.nk-home .hero-desc { max-width: 520px; }
.nk-home .hero-slide .hero-overlay { padding: 36px 64px; }
.nk-home .genre-chips { margin-bottom: 32px; }
.genre-chips .chip { min-height: 38px; display: inline-flex; align-items: center; }
.home-columns { gap: 28px; grid-template-columns: minmax(0, 1fr) 300px; }
.home-columns > *, .games-grid > * { min-width: 0; }
.nk-updates .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-columns .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.games-grid { gap: 18px; align-items: stretch; }
.game-card { height: 100%; box-shadow: 0 4px 16px #0002; transition: transform .18s ease, border-color .18s ease; }
.game-card:hover { transform: translateY(-3px); border-color: #606574; box-shadow: 0 10px 24px #0005; }
.game-card:hover .game-card-cover img { transform: scale(1.025); }
.section-header { gap: 16px; }
.section-link { flex-shrink: 0; border-color: var(--border); padding: 7px 12px; }
.section-link:hover { background: var(--accent); color: #101014; }
.home-section { margin-bottom: 36px; }
.nk-home .home-section { content-visibility: visible; }
.nk-home .manga-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nk-home .video-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.archive-filters { padding: 18px; border: 1px solid var(--border); background: var(--bg2); border-radius: 14px; }
.filter-select { min-height: 44px; max-width: 100%; }
.tab-btn.active { background: var(--accent); color: #101014; }
.nk-ad[hidden] { display: none !important; }
.nk-ad { display: flex; flex-direction: column; align-items: center; max-width: 100%; margin: 30px auto; overflow: visible; }
.nk-ad-label { font-size: 11px; color: #adb2bd; opacity: 1; letter-spacing: .08em; margin: 0 0 8px; }
.nk-ad-inner { display: block; max-width: 100%; background: #101216; }
.nk-ad-inner iframe { display: block; border: 0; max-width: none; height: revert; margin: 0; }
.nk-ad-native { padding: 0; border: 0; background: transparent; }
.nk-ad-footer { width: calc(100% - 32px); }
.nk-sponsored-support { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 16px; }
.nk-sponsored-support span { color: var(--text-muted); font-size: .75rem; }
.nk-sponsored-support a { color: #dce0e9; text-decoration: underline; text-underline-offset: 4px; font-size: .85rem; }
.nk-download-page { display: flex; flex-direction: column; align-items: center; padding-top: 48px; }
.nk-download-panel { width: 100%; max-width: 620px; padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg2); text-align: center; }
.nk-download-panel h1 { font: 800 clamp(1.5rem, 4vw, 2.3rem)/1.2 var(--font-head); margin: 12px 0; }
.nk-download-panel p { color: var(--text-muted); }
.nk-download-host { padding: 12px; margin: 16px 0 22px; border-radius: 8px; background: var(--bg); overflow-wrap: anywhere; }
.nk-download-panel .btn-primary { display: inline-flex; justify-content: center; padding: 14px 24px; min-width: 200px; }
.nk-back-link { display: block; margin-top: 20px; color: var(--text-muted); }
@media (max-width: 1100px) {
  .home-columns { grid-template-columns: minmax(0, 1fr); }
  .home-columns > aside { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
  .nk-updates .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-columns > aside { display: block; }
  .nk-home .home-intro { margin-top: 8px; }
  .nk-home .home-intro > p:last-of-type { font-size: .9rem; }
  .nk-home .hero-slide { aspect-ratio: auto; min-height: 300px; }
  .nk-home .hero-slide .hero-overlay { padding: 26px 38px; }
  .nk-home .hero-desc { font-size: .85rem; }
  .hero-arrow { width: 28px; height: 36px; }
  .hero-prev { left: 4px; } .hero-next { right: 4px; }
  .nk-home-search input { padding: 8px; font-size: 16px; }
  .nk-home-search button { padding: 10px 14px; }
  .home-columns .games-grid, .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nk-home .manga-catalog-grid, .nk-home .video-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-header { flex-wrap: wrap; gap: 10px; }
  .nk-download-panel { padding: 26px 18px; }
  .archive-filters { padding: 12px; }
}
@media (max-width: 359px) {
  .home-columns .games-grid, .nk-updates .games-grid, .games-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card, .game-card-cover img, .hero-track { transition: none; }
  .game-card:hover { transform: none; }
}
