/* Compact rating typography across promo, listing, related and app-detail cards. */
.rating-badge{gap:4px;padding:4px 7px!important}
.rating-stars{font-size:11px!important;letter-spacing:.5px!important}
.rating-value{font-size:9px!important}
.rating-unset{padding:4px 8px!important;font-size:9px!important}
.top-promo-rating .rating-badge,.top-promo-rating .rating-unset{padding:3px 6px!important}
.top-promo-rating .rating-stars{font-size:10px!important}
.top-promo-rating .rating-value{font-size:8px!important}
@media(max-width:760px){
  html body.home-page #directory>.app-grid,
  html body.home-page .spotlight .collection-panel.active,
  html body .top-app-banner-grid,
  html body .related-listings{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
  html body.home-page #directory>.app-grid>.app-card,
  html body.home-page .spotlight .collection-panel.active>.app-card,
  html body .top-app-banner-grid>.top-app-promo,
  html body .related-listings>.related-listing-card{
    display:grid;width:100%;max-width:none;min-width:0;justify-self:stretch;box-sizing:border-box
  }
  /* Match every mobile listing to the roomy Top Picks card geometry; keep each section's colors. */
  html body.home-page #directory>.app-grid>.app-card,
  html body.home-page .spotlight .collection-panel.active>.app-card,
  html body .related-listings>.related-listing-card{
    grid-template-columns:64px minmax(0,1fr) 98px;grid-template-rows:auto auto;column-gap:10px;
    align-items:center;min-height:126px;padding:12px 14px;border-radius:16px
  }
  html body.home-page #directory>.app-grid>.app-card .app-icon,
  html body.home-page .spotlight .collection-panel.active>.app-card .app-icon,
  html body .related-listings>.related-listing-card .related-listing-icon{width:64px;height:64px;border-radius:15px}
  html body.home-page #directory>.app-grid>.app-card .card-download-stack,
  html body.home-page .spotlight .collection-panel.active>.app-card .card-download-stack,
  html body .related-listings>.related-listing-card .related-download-stack{
    width:98px;display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-self:end
  }
  html body.home-page #directory>.app-grid>.app-card .download-button,
  html body.home-page .spotlight .collection-panel.active>.app-card .download-button,
  html body .related-listings>.related-listing-card .related-listing-download{
    width:100%;min-width:0;min-height:46px;justify-content:center;box-sizing:border-box
  }
  html body.home-page #directory>.app-grid>.app-card .rating-badge,
  html body.home-page #directory>.app-grid>.app-card .rating-unset,
  html body.home-page .spotlight .collection-panel.active>.app-card .rating-badge,
  html body.home-page .spotlight .collection-panel.active>.app-card .rating-unset,
  html body .related-listings>.related-listing-card .rating-badge,
  html body .related-listings>.related-listing-card .rating-unset{align-self:center}
  html body.home-page #directory>.app-grid .app-meta span,
  html body.home-page .spotlight .collection-panel .app-meta span{font-size:8px;line-height:1.25;white-space:nowrap}
  html body.home-page #directory>.app-grid .app-meta span:before,
  html body.home-page .spotlight .collection-panel .app-meta span:before{display:inline;margin-right:4px;font-size:8px}
  html body.home-page .spotlight{margin-bottom:16px}
}
@media(max-width:390px){
  html body.home-page #directory>.app-grid>.app-card,
  html body.home-page .spotlight .collection-panel.active>.app-card,
  html body .related-listings>.related-listing-card{grid-template-columns:54px minmax(0,1fr) 86px;column-gap:8px;min-height:116px;padding:9px}
  html body.home-page #directory>.app-grid>.app-card .app-icon,
  html body.home-page .spotlight .collection-panel.active>.app-card .app-icon,
  html body .related-listings>.related-listing-card .related-listing-icon{width:54px;height:54px;border-radius:12px}
  html body.home-page #directory>.app-grid>.app-card .card-download-stack,
  html body.home-page .spotlight .collection-panel.active>.app-card .card-download-stack,
  html body .related-listings>.related-listing-card .related-download-stack{width:86px;gap:7px}
}

/* Keep the requested live highlights ticker moving, including on reduced-motion devices. */
html body .highlight-track{animation:highlight-scroll 34s linear infinite!important}

/* Trim excessive vertical gaps between page sections. */
html body .detail{padding-top:36px!important;padding-bottom:48px!important}
html body .detail-grid{padding-top:28px!important}
html body .related-section{margin-top:16px!important;padding:18px!important}
html body .related-section+.related-section{margin-top:10px!important}
html body .related-heading{margin-bottom:12px!important}
html body.home-page .spotlight{margin-bottom:24px}
html body.home-page #directory.section{padding-top:22px;padding-bottom:36px}
html body.home-page .seo-content{padding-top:40px;padding-bottom:48px}

/* Make Similar/Suggested listings follow the home directory's horizontal row layout. */
html body .related-listings{grid-template-columns:minmax(0,1fr);gap:0;overflow:hidden}
html body .related-listings>.related-listing-card{
  grid-template-columns:112px minmax(0,1fr) 184px;grid-template-rows:auto;column-gap:20px;
  min-height:148px;padding:16px 22px;border:0;border-bottom:1px solid #d9dfdb;border-radius:0;background:#fff
}
html body .related-listings>.related-listing-card:last-child{border-bottom:0}
html body .related-listings .related-listing-icon{width:112px;height:112px;border-radius:20px}
html body .related-listings .related-listing-name{font-size:14px;line-height:1.25;margin:0 0 5px}
html body .related-listings .related-listing-offer{display:flex;flex-direction:column;gap:4px;font-size:10px;line-height:1.35}
html body .related-listings .related-listing-offer span:first-child{color:#8b2132}
html body .related-listings .related-listing-offer span:nth-child(2){color:#087847}
html body .related-listings .related-listing-offer span:nth-child(3){color:#53675e}
html body .related-listings .related-download-stack{width:184px;display:flex;flex-direction:column;align-items:stretch;gap:10px;justify-self:end}
html body .related-listings .related-listing-download{width:100%;min-height:46px;min-width:0;justify-content:center;border-radius:11px;font-size:11px}
@media(max-width:760px){
  html body.home-page .top-app-banner{padding-bottom:6px!important}
  html body.home-page #directory.section{padding-top:4px!important}
  html body.home-page .spotlight{margin-top:4px!important;margin-bottom:12px!important}
  html body.home-page #directory.section{padding-bottom:24px}
  html body.home-page .seo-content{padding-top:28px;padding-bottom:32px}
  html body .detail{padding-top:20px!important;padding-bottom:28px!important}
  html body .detail-grid{padding-top:18px!important}
  html body .related-section{margin-top:12px!important;padding:12px!important}
  html body .related-section+.related-section{margin-top:8px!important}
  html body .related-heading{margin-bottom:10px!important}
  html body.home-page .spotlight{margin-bottom:14px}
  html body .related-listings>.related-listing-card{grid-template-columns:64px minmax(0,1fr) 98px;column-gap:10px;min-height:126px;padding:12px 14px}
  html body .related-listings .related-listing-icon{width:64px;height:64px;border-radius:15px}
  html body .related-listings .related-listing-name{font-size:13px;margin-bottom:5px}
  html body .related-listings .related-listing-offer{gap:3px;font-size:9px;line-height:1.25;white-space:nowrap}
  html body .related-listings .related-download-stack{width:98px;gap:8px}
}
@media(max-width:390px){
  html body .related-listings>.related-listing-card{grid-template-columns:54px minmax(0,1fr) 86px;column-gap:8px;min-height:116px;padding:9px}
  html body .related-listings .related-listing-icon{width:54px;height:54px;border-radius:12px}
  html body .related-listings .related-listing-name{font-size:12px}
  html body .related-listings .related-listing-offer{font-size:8px}
  html body .related-listings .related-download-stack{width:86px;gap:7px}
}
