/* Discover-only visual transplant. Original App Mode screens remain untouched. */
.nthc-preview-banner{background:#10264a;color:#fff;text-align:center;font:700 10px/1.4 system-ui;padding:7px;letter-spacing:.08em}
body.nthc-body:has(.nthc-discover){background:#090a0e!important;color:#f7f5f0!important}
.nthc-discover{max-width:none!important;width:100%!important;margin:0!important;padding:18px 16px 115px!important;background:#f8f1e6!important;color:#1c1813!important;min-height:100vh;font-family:system-ui,-apple-system,Arial,sans-serif}
.nthc-discover *{box-sizing:border-box}
.nthc-discover-inner{width:100%;max-width:720px;margin:0 auto}
.nthc-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}
.nthc-shortcuts a{display:block;border:1px solid #e5d1b0;border-radius:14px;padding:12px 8px;background:#fffaf3!important;color:#1b1712!important;text-align:center;font-size:13px;font-weight:750;text-decoration:none}
.nthc-search{margin:0 0 18px}.nthc-search label{display:block;font-size:12px;font-weight:700;margin:0 0 7px;color:#897359}
.nthc-search>div{display:flex;align-items:center;border:1px solid #e2cda7;border-radius:14px;padding:6px 7px 6px 12px;gap:8px;background:#fffaf3!important}
.nthc-search>div>span{color:#c28a26}.nthc-search input{flex:1;min-width:0;border:0!important;box-shadow:none!important;background:transparent!important;color:#1c1813!important;font-size:14px;padding:11px 0!important}
.nthc-search button,.nthc-sort button{border:0!important;border-radius:9px!important;background:#201a15!important;color:white!important;padding:12px 15px!important;font-size:12px;font-weight:750;cursor:pointer}
.nthc-label{font-size:14px!important;line-height:1.3;margin:14px 0 8px!important;border-radius:12px;background:#1d1813!important;color:white!important;text-align:center;padding:9px 15px;max-width:190px}
.nthc-genres{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;overflow:visible!important;padding:0!important;margin:0 0 18px!important}
.nthc-genres a{min-width:0;white-space:normal;text-align:center;text-decoration:none;border:1px solid #e1c99f!important;background:#fffaf3!important;padding:10px 5px!important;border-radius:25px;font-size:12px;font-weight:700;color:#82715e!important}
.nthc-genres a.active{background:#1d1813!important;border-color:#1d1813!important;color:#fff!important}
.nthc-results{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 0}.nthc-results h2{font-size:21px!important;color:#1d1813!important;margin:0!important}
.nthc-results button{font-size:12px;border:0!important;border-radius:9px;background:transparent!important;color:#b47b1d!important;padding:9px;font-weight:750;cursor:pointer}
.nthc-sort{padding:12px;border:1px solid #e2cda7;border-radius:12px;margin:12px 0 0;background:#fffaf3!important;display:flex;gap:10px;align-items:center}
.nthc-sort[hidden]{display:none!important}.nthc-sort label{font-size:12px}.nthc-sort select{max-width:180px;background:#fff;color:#1d1813}
.nthc-count{color:#897b68!important;font-size:12px;margin:5px 0 14px}
.nthc-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 12px!important;align-items:start}
.nthc-card{display:block;text-decoration:none!important;color:#1d1813!important;min-width:0}.nthc-card img{display:block;width:100%!important;height:auto!important;aspect-ratio:2/3!important;object-fit:cover!important;border-radius:12px;background:#e2d8c9;box-shadow:0 8px 18px #3e2e191a}
.nthc-card strong{font-size:12px!important;line-height:1.4;display:block;margin:7px 0 0;color:#1d1813!important}.nthc-card small{display:none}
.nthc-empty{padding:28px 0;text-align:center;color:#7d7060}
@media(max-width:430px){.nthc-discover{padding:14px 12px 110px!important}.nthc-genres a{font-size:11px;padding:9px 3px!important}.nthc-shortcuts a{font-size:11px;padding:10px 4px}.nthc-grid{gap:15px 9px!important}}

.nthc-genres button{appearance:none;cursor:pointer;min-width:0;white-space:normal;text-align:center;text-decoration:none;border:1px solid #e1c99f!important;background:#fffaf3!important;padding:10px 5px!important;border-radius:25px;font-size:12px;font-weight:700;color:#82715e!important}.nthc-genres button.active{background:#1d1813!important;border-color:#1d1813!important;color:#fff!important}.nthc-card[hidden],.nthc-empty[hidden]{display:none!important}

/* Restore native hit targets and keep status below the fixed navigation. */
.nthc-body .nthc-card,.nthc-body .ntv3-nav-item,.nthc-body .nthc-shortcuts a,.nthc-body .ntv3-head a{pointer-events:auto!important;cursor:pointer!important;position:relative}
.nthc-body .nthc-card img{pointer-events:none}
#nthc-nav-feedback{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;z-index:999999;max-width:90vw;background:#201a15;color:#fff;padding:10px 16px;border-radius:12px;font:600 12px system-ui;text-align:center;box-shadow:0 6px 22px #0003}


/* v0.1.7: header and footer DOM match the working Home screen.
 * Self-contained CSS: DO NOT enqueue App Mode front-end scripts on Discover. */
body.nthc-body:has(.nthc-discover){margin:0!important;overflow:auto!important;background:#090a0e!important;color:#f8f6f1!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.nthc-home-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 13px;background:#090a0e;color:#f7f5f0;min-height:79px}
.nthc-home-header .ntv4-brand{display:flex;align-items:center;gap:11px;min-width:0;text-decoration:none;color:#f7f5f0}
.nthc-home-header .ntv4-brand img{width:43px;height:43px;object-fit:cover;border-radius:13px;display:block}
.nthc-home-header .ntv4-brand span{display:flex;flex-direction:column;min-width:0}
.nthc-home-header .ntv4-brand small{font-size:9px;letter-spacing:.14em;color:#a6a4b1;font-weight:800;margin-bottom:2px}
.nthc-home-header .ntv4-brand strong{font-family:Georgia,serif;font-size:19px;line-height:1.2;color:#f8f6f1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nthc-home-header .ntv4-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.nthc-home-header .ntv4-top-actions a,.nthc-home-header .ntv4-top-actions button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #30313b;border-radius:14px;background:#171820;color:#f8f6f1;font:24px/1 system-ui;text-decoration:none;padding:0;cursor:pointer}
.nthc-discover{background:#090a0e!important;color:#f7f5f0!important;max-width:none!important;padding-top:17px!important}
.nthc-discover-inner{max-width:960px}
.nthc-shortcuts a{background:#171820!important;color:#f7f5f0!important;border-color:#30313b!important}
.nthc-search label{color:#b8afaa!important}.nthc-search>div{background:#171820!important;border-color:#30313b!important}
.nthc-search input{color:#f8f7f2!important}.nthc-search input::placeholder{color:#a9a5af!important}
.nthc-search button,.nthc-sort button{background:#d9a735!important;color:#18140d!important}
.nthc-label{background:#171820!important;color:#f9f7f2!important;border:1px solid #30313b!important}
.nthc-genres a{background:#171820!important;color:#bbb8c4!important;border-color:#3b3a44!important}
.nthc-genres a.active{background:#d7a437!important;color:#151109!important;border-color:#d7a437!important}
.nthc-results h2,.nthc-card,.nthc-card strong{color:#f8f5f0!important}
.nthc-results button{color:#e6b84d!important}.nthc-count,.nthc-empty{color:#a8a6b1!important}
.nthc-sort{background:#171820!important;border-color:#35343e!important;color:#eee!important}
.nthc-native-nav{position:fixed;z-index:100;left:0;right:0;bottom:0;min-height:76px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#171820;border-top:1px solid #30313b}
.nthc-native-nav .ntv3-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#a6a4b1;text-decoration:none;min-width:0}
.nthc-native-nav .ntv3-nav-item i{font-style:normal;font-size:20px;height:25px;line-height:25px;display:flex;align-items:center;justify-content:center}
.nthc-native-nav .ntv3-nav-item span{font-size:9px;font-weight:700}
.nthc-native-nav .ntv3-nav-item.is-active{color:#e6b84d}
.nthc-native-nav .ntv3-nav-avatar{width:25px;height:25px;margin:0;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#15110b,#d0a03a);color:white;font:13px/1 Georgia,serif}
.nthc-native-nav .ntv3-nav-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
html[data-nt-app-theme=light] body.nthc-body:has(.nthc-discover){background:#f8f1e6!important;color:#211b17!important}
html[data-nt-app-theme=light] .nthc-home-header{background:#fffaf3!important;color:#211b17!important}
html[data-nt-app-theme=light] .nthc-home-header .ntv4-brand strong{color:#211b17!important}
html[data-nt-app-theme=light] .nthc-home-header .ntv4-top-actions a,html[data-nt-app-theme=light] .nthc-home-header .ntv4-top-actions button{background:#fffaf3;color:#211b17;border-color:#e5d1b0}
html[data-nt-app-theme=light] .nthc-discover{background:#f8f1e6!important;color:#211b17!important}
html[data-nt-app-theme=light] .nthc-shortcuts a,html[data-nt-app-theme=light] .nthc-search>div,html[data-nt-app-theme=light] .nthc-genres a{background:#fffaf3!important;color:#211b17!important;border-color:#e5d1b0!important}
html[data-nt-app-theme=light] .nthc-search input{color:#211b17!important}
html[data-nt-app-theme=light] .nthc-results h2,html[data-nt-app-theme=light] .nthc-card strong{color:#211b17!important}
html[data-nt-app-theme=light] .nthc-native-nav{background:#fffaf3!important;border-color:#e5d1b0!important}
@media(max-width:480px){.nthc-home-header{padding:14px 12px}.nthc-home-header .ntv4-top-actions{gap:5px}.nthc-home-header .ntv4-top-actions a,.nthc-home-header .ntv4-top-actions button{width:38px;height:38px}.nthc-discover{padding:12px 13px 110px!important}}

/* RC2: stable monochrome cart outline, matches Home (no platform emoji rendering). */
.nthc-home-header .ntv5832-home-cart .nthc-cart-icon{display:block;width:21px;height:21px;flex:none;color:inherit}

/* RC16: mobile Discover viewport containment. Width includes padding; do not
   hide overflowing content as a substitute for fixing layout sizing. */
html:has(body.nthc-body .nthc-discover),
html:has(body.nthc-body .nthc-discover) body.nthc-body {
  width:100%; max-width:100%; min-width:0; margin:0!important; padding:0;
  box-sizing:border-box;
}
body.nthc-body:has(.nthc-discover) *,
body.nthc-body:has(.nthc-discover) *::before,
body.nthc-body:has(.nthc-discover) *::after {box-sizing:border-box;}
body.nthc-body .nthc-home-header,
body.nthc-body .nthc-discover,
body.nthc-body .nthc-discover-inner,
body.nthc-body .nthc-native-nav {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
}
body.nthc-body .nthc-home-header .ntv4-brand,
body.nthc-body .nthc-home-header .ntv4-brand span,
body.nthc-body .nthc-home-header .ntv4-top-actions,
body.nthc-body .nthc-search,
body.nthc-body .nthc-search > div,
body.nthc-body .nthc-shortcuts,
body.nthc-body .nthc-genres,
body.nthc-body .nthc-results,
body.nthc-body .nthc-grid {min-width:0;max-width:100%;}
body.nthc-body .nthc-search input {width:0;flex:1 1 0;min-width:0;}
body.nthc-body .nthc-grid > *,
body.nthc-body .nthc-genres > *,
body.nthc-body .nthc-shortcuts > * {min-width:0;max-width:100%;}
@media(max-width:480px) {
  body.nthc-body .nthc-home-header {gap:7px;padding:12px 10px!important;}
  body.nthc-body .nthc-home-header .ntv4-brand {flex:1 1 0;}
  body.nthc-body .nthc-home-header .ntv4-brand strong {font-size:clamp(14px,4vw,19px);}
  body.nthc-body .nthc-home-header .ntv4-top-actions {flex:0 0 auto;gap:5px;}
  body.nthc-body .nthc-home-header .ntv4-top-actions a,
  body.nthc-body .nthc-home-header .ntv4-top-actions button {width:36px;height:36px;}
  body.nthc-body .nthc-discover {padding:12px 12px 110px!important;}
  body.nthc-body .nthc-results h2 {min-width:0;}
  body.nthc-body .nthc-results button {flex-shrink:0;}
  body.nthc-body .nthc-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.nthc-body .nthc-card img {max-width:100%!important;}
}
