/* Home: reuse the exact Discover category art immediately below the banner. */
body:not(.discover-view):not(.detail-view) .shortcuts-section{display:block!important;max-width:1100px;margin:0 auto 28px!important;padding:0 18px!important}
body:not(.discover-view):not(.detail-view) .shortcuts-section>.section-head{display:none!important}
body:not(.discover-view):not(.detail-view) .shortcut-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body:not(.discover-view):not(.detail-view) .shortcut{display:block!important;position:relative!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1.89!important;padding:0!important;border:0!important;border-radius:19px!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;box-shadow:0 0 0 1px #a34aff50,0 8px 18px #0006!important;overflow:hidden!important;transition:transform .2s ease,filter .2s ease!important}
body:not(.discover-view):not(.detail-view) .shortcut:hover{transform:translateY(-2px);filter:brightness(1.1)}
body:not(.discover-view):not(.detail-view) .shortcut>*{visibility:hidden!important}
body:not(.discover-view):not(.detail-view) .shortcut-games{background-image:url('./art/discover-games.png')!important}
body:not(.discover-view):not(.detail-view) .shortcut-apps{background-image:url('./art/discover-apps.png')!important}
body:not(.discover-view):not(.detail-view) .shortcut-rewards{background-image:url('./art/discover-rewards.png')!important}
body:not(.discover-view):not(.detail-view) .shortcut-trending{background-image:url('./art/discover-trending.png')!important}
@media(max-width:650px){body:not(.discover-view):not(.detail-view) .shortcuts-section{margin:0 auto 22px!important;padding:0 18px!important}body:not(.discover-view):not(.detail-view) .shortcut-grid{gap:10px!important}body:not(.discover-view):not(.detail-view) .shortcut{border-radius:17px!important}}
@media(min-width:651px){body:not(.discover-view):not(.detail-view) .shortcuts-section{max-width:850px!important}body:not(.discover-view):not(.detail-view) .shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* NOVA homepage featured picks: edge-to-edge artwork and wider readable cards. */
body:not(.discover-view):not(.detail-view) .featured-section {
  width: min(100%, 1100px) !important;
  max-width: 1100px !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
body:not(.discover-view):not(.detail-view) .featured-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 10px !important;
}
body:not(.discover-view):not(.detail-view) .featured-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  padding: 0 0 11px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 17px !important;
  background: #171a35 !important;
  border: 1px solid #3d3864 !important;
}
body:not(.discover-view):not(.detail-view) .featured-card > .icon-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1.55 / 1 !important;
  flex: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: linear-gradient(135deg,#36206e,#121b39) !important;
}
body:not(.discover-view):not(.detail-view) .featured-card h3 {
  margin: 10px 10px 4px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -.2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body:not(.discover-view):not(.detail-view) .featured-card .feature-description {
  margin: 0 10px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: 29px !important;
}
body:not(.discover-view):not(.detail-view) .featured-card .card-arrow {display:none !important;}
@media (max-width:650px) {
  body:not(.discover-view):not(.detail-view) .featured-section {
    width:100% !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body:not(.discover-view):not(.detail-view) .featured-section .section-head {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  body:not(.discover-view):not(.detail-view) .featured-grid {gap: 9px !important;}
  body:not(.discover-view):not(.detail-view) .featured-card {border-radius: 15px !important;}
  body:not(.discover-view):not(.detail-view) .featured-card > .icon-img {aspect-ratio: 1.4 / 1 !important;}
}
@media (min-width:651px) {
  body:not(.discover-view):not(.detail-view) .featured-grid {grid-template-columns: repeat(3,minmax(0,1fr)) !important;gap: 16px !important;}
  body:not(.discover-view):not(.detail-view) .featured-card h3 {font-size: 15px !important;}
  body:not(.discover-view):not(.detail-view) .featured-card .feature-description {font-size: 12px !important;}
}

/* Homepage-only clean layout: featured banners are retained in assets, but not rendered. */
body:not(.discover-view):not(.detail-view) .hero {margin-bottom: 13px!important;}
body:not(.discover-view):not(.detail-view) .shortcuts-section {margin-bottom: 26px!important;}
body:not(.discover-view):not(.detail-view) .featured-section {margin-top: 20px!important;}
body:not(.discover-view):not(.detail-view) .featured-section .section-head {margin-bottom: 15px!important;}
@media (max-width:650px) {
  body:not(.discover-view):not(.detail-view) .hero {margin-bottom: 16px!important;}
  body:not(.discover-view):not(.detail-view) .hero-copy {padding-bottom: 4px!important;}
  body:not(.discover-view):not(.detail-view) .search-shell {margin-top: 17px!important;}
  body:not(.discover-view):not(.detail-view) .shortcuts-section {margin-bottom: 22px!important;padding-left: 12px!important;padding-right: 12px!important;}
  body:not(.discover-view):not(.detail-view) .featured-section {margin-top: 17px!important;}
}

/* Unified mobile content width: align gallery, library and category artwork. */
@media(max-width:650px){
  body:not(.discover-view):not(.detail-view) .shortcuts-section,
  body:not(.discover-view):not(.detail-view) .featured-section,
  body:not(.discover-view):not(.detail-view) .trending-section,
  body:not(.discover-view):not(.detail-view) .catalog-section {
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    margin-left:auto!important;margin-right:auto!important;
    padding-left:12px!important;padding-right:12px!important;
  }
  body:not(.discover-view):not(.detail-view) .featured-grid {gap:10px!important}
  body:not(.discover-view):not(.detail-view) .catalog-grid {width:100%!important;min-width:0!important}
  body:not(.discover-view):not(.detail-view) .catalog-controls {width:100%!important;box-sizing:border-box!important}
  body:not(.discover-view):not(.detail-view) .more-row {padding-bottom:28px!important}
  .catalog-section {padding-bottom:calc(135px + env(safe-area-inset-bottom,0px))!important}
  .more-row {margin-bottom:20px!important;padding-bottom:20px!important;position:relative!important;z-index:1!important}
  .mobile-tabs {bottom:max(10px,env(safe-area-inset-bottom,0px))!important}
}
/* Trending now has a real homepage destination after Featured Picks. */
body:not(.discover-view):not(.detail-view) .trending-section {
  display:block!important;
  scroll-margin-top:18px!important;
  margin-top:22px!important;
  margin-bottom:30px!important;
}
body:not(.discover-view):not(.detail-view) .trending-list {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
}
body:not(.discover-view):not(.detail-view) .trending-card {min-width:0!important;padding:9px!important;gap:8px!important}
body:not(.discover-view):not(.detail-view) .trending-icon {width:44px!important;height:44px!important;flex:0 0 44px!important}
body:not(.discover-view):not(.detail-view) .trending-copy {min-width:0!important}
body:not(.discover-view):not(.detail-view) .trending-copy b {font-size:12px!important}
body:not(.discover-view):not(.detail-view) .trending-copy small {font-size:10px!important}
body:not(.discover-view):not(.detail-view) .trending-chevron {width:25px!important;height:25px!important;flex:0 0 25px!important}
@media(max-width:390px){body:not(.discover-view):not(.detail-view) .trending-list {grid-template-columns:1fr!important}}
@media(min-width:651px){body:not(.discover-view):not(.detail-view) .trending-section{display:block!important}}

/* NOVA patch: compact two-column Trending cards and Discover-matched Library rows. */
body:not(.discover-view):not(.detail-view) #trending .trending-list {
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:10px!important;align-items:stretch!important;grid-auto-rows:auto!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-card {
 display:flex!important;flex-direction:row!important;align-items:center!important;
 width:100%!important;min-width:0!important;height:70px!important;min-height:0!important;
 margin:0!important;padding:8px!important;gap:8px!important;position:relative!important;
 border-radius:15px!important;background:linear-gradient(125deg,#1b1c3a,#25204a)!important;
 border:1px solid #41376d!important;overflow:hidden!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-icon {
 display:block!important;position:relative!important;width:46px!important;height:46px!important;
 min-width:46px!important;max-width:46px!important;flex:0 0 46px!important;
 margin:0!important;padding:0!important;border-radius:11px!important;overflow:hidden!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-icon img {
 display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-copy {
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 flex:1 1 auto!important;min-width:0!important;width:auto!important;margin:0!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-copy b {
 font-size:12px!important;line-height:1.3!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-copy small {
 display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
 overflow:hidden!important;white-space:normal!important;font-size:10px!important;
 line-height:1.3!important;margin-top:3px!important;
}
body:not(.discover-view):not(.detail-view) #trending .trending-chevron {
 display:grid!important;place-items:center!important;position:static!important;
 width:28px!important;height:28px!important;flex:0 0 28px!important;
 margin:0!important;border-radius:50%!important;
}
@media(max-width:360px){
 body:not(.discover-view):not(.detail-view) #trending .trending-list {grid-template-columns:1fr!important}
}
@media(min-width:651px){
 body:not(.discover-view):not(.detail-view) #trending .trending-list {grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
/* Exact shared dimensions for homepage Library and Discover list items. */
@media(max-width:650px){
 body:not(.discover-view):not(.detail-view) .catalog-section {
  padding-left:12px!important;padding-right:12px!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog.catalog-grid {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;width:100%!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog .app-card {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  width:100%!important;box-sizing:border-box!important;min-width:0!important;
  min-height:65px!important;height:auto!important;padding:6px!important;gap:10px!important;
  border-radius:15px!important;background:linear-gradient(110deg,#1c1d3c,#242047)!important;
  border:1px solid #42386d!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog .app-card .icon-img {
  width:52px!important;height:52px!important;flex:0 0 52px!important;
  border-radius:12px!important;object-fit:cover!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog .app-card .app-info {
  min-width:0!important;flex:1 1 auto!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog .app-card .app-info b {
  font-size:12px!important;line-height:1.25!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog .app-card .app-info small {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;white-space:normal!important;overflow:hidden!important;
  font-size:10px!important;line-height:1.35!important;margin-top:3px!important;
 }
 body:not(.discover-view):not(.detail-view) #catalog .app-card .arrow {
  display:grid!important;place-items:center!important;flex:0 0 32px!important;
  width:32px!important;height:32px!important;border-radius:50%!important;
  background:linear-gradient(135deg,#9c34ff,#4e1bb3)!important;
 }
}

/* NOVA homepage micro-polish: larger search, balanced spacing, compact feature artwork. */
body:not(.discover-view):not(.detail-view) .hero .search-shell {
  min-height: 54px !important;
  height: 54px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  border: 1.5px solid #9564ff !important;
  border-radius: 19px !important;
  background: linear-gradient(115deg,rgba(17,20,48,.97),rgba(19,14,49,.98)) !important;
  box-shadow: 0 0 0 1px rgba(149,100,255,.23),0 0 17px rgba(116,62,255,.34),-5px 0 17px rgba(39,146,255,.15) !important;
  transition: box-shadow .2s ease,border-color .2s ease !important;
}
body:not(.discover-view):not(.detail-view) .hero .search-shell:focus-within {
  border-color:#bb8aff !important;
  box-shadow:0 0 0 2px rgba(157,102,255,.22),0 0 23px rgba(129,66,255,.49),-5px 0 18px rgba(29,151,255,.24) !important;
}
body:not(.discover-view):not(.detail-view) .hero .search-shell input {
  height:100% !important;
  min-height:0 !important;
  font-size:14px !important;
  background:transparent !important;
}
body:not(.discover-view):not(.detail-view) .hero .search-shell .search-icon {
  font-size:26px !important;
  line-height:1 !important;
  flex-shrink:0 !important;
}
body:not(.discover-view):not(.detail-view) .shortcuts-section {
  margin-top:23px !important;
}
body:not(.discover-view):not(.detail-view) .featured-section .section-head {
  margin-bottom:12px !important;
}
body:not(.discover-view):not(.detail-view) .featured-card > .icon-img {
  aspect-ratio:1.65 / 1 !important;
}
@media(max-width:650px) {
  body:not(.discover-view):not(.detail-view) .hero .search-shell {margin-top:19px !important;}
  body:not(.discover-view):not(.detail-view) .shortcuts-section {margin-top:23px !important;margin-bottom:21px !important;}
  body:not(.discover-view):not(.detail-view) .featured-section {margin-top:14px !important;}
  body:not(.discover-view):not(.detail-view) .featured-card > .icon-img {aspect-ratio:1.65 / 1 !important;}
}
@media(max-width:360px) {
  body:not(.discover-view):not(.detail-view) .hero .search-shell {min-height:51px !important;height:51px !important;}
  body:not(.discover-view):not(.detail-view) .shortcuts-section {margin-top:19px !important;}
}

/* Search adornments: visual only, deliberately not interactive. */
.hero .search-shell{position:relative!important}
.hero .search-shell .search-icon{display:flex!important;align-items:center!important;justify-content:center!important}
.hero .search-shell .search-icon svg{width:23px;height:23px;display:block}
.hero .search-shell .search-decor{display:flex;align-items:center;gap:11px;flex:0 0 auto;margin-left:auto;padding-right:13px;color:#9a50e8;pointer-events:none;position:relative;z-index:2}
.hero .search-shell .search-mic{width:22px;height:25px}
.hero .search-shell .search-sparkles{width:25px;height:25px}
.hero .search-shell input{min-width:0;flex:1 1 auto!important;width:1%!important;padding-right:3px!important}
@media(max-width:350px){.hero .search-shell .search-decor{gap:6px;padding-right:8px}.hero .search-shell .search-mic{width:19px}.hero .search-shell .search-sparkles{width:21px}}

/* Homepage hero refinement: preserve layout, improve typography and search fit. */
@media (max-width:650px) {
 body:not(.discover-view):not(.detail-view) .hero-copy { padding-top: 8px !important; }
 body:not(.discover-view):not(.detail-view) .hero h1 { margin-top: 0 !important; margin-bottom: 12px !important; font-size: clamp(26px, 7.3vw, 34px) !important; line-height: 1.17 !important; letter-spacing: -1.35px !important; }
 body:not(.discover-view):not(.detail-view) .hero-copy > p { margin: 0 !important; font-size: 12.5px !important; line-height: 1.58 !important; max-width: 34ch !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell { margin-top: 16px !important; padding-left: 12px !important; padding-right: 7px !important; gap: 9px !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell input { font-size: 12.5px !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell .search-icon svg { width: 19px !important; height: 19px !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell .search-decor { gap: 7px !important; padding-right: 7px !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell .search-mic { width: 16px !important; height: 19px !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell .search-sparkles { width: 18px !important; height: 18px !important; }
}
@media (max-width:360px) {
 body:not(.discover-view):not(.detail-view) .hero .search-shell input { font-size: 11.5px !important; }
 body:not(.discover-view):not(.detail-view) .hero .search-shell .search-decor { gap: 5px !important; padding-right: 4px !important; }
}
