
/* MX_MARKET_COMPACT_PHASE2_V1
   Marketplace main page only.
   No global navigation or player overrides. */

#page .market-v2 {
  box-sizing:border-box;
  width:100%;
  max-width:1240px;
  min-width:0;
  margin-inline:auto;
  padding:16px 20px 28px;
}

#page .market-v2 .market-v2-top {
  box-sizing:border-box;
  border-radius:16px;
  padding:18px;
  gap:12px;
}

#page .market-v2 .market-v2-brand h1 {
  font-size:clamp(23px,3vw,32px);
  line-height:1.15;
}

#page .market-v2 .market-v2-brand p {
  font-size:13px;
  line-height:1.5;
}

#page .market-v2 .market-v2-search {
  min-width:0;
  min-height:46px;
  border-radius:12px;
}

#page .market-v2 .market-v2-search input {
  width:100%;
  min-width:0;
  font-size:14px;
}

#page .market-v2 .market-v2-section {
  min-width:0;
  margin-top:22px;
}

#page .market-v2 .market-v2-heading {
  gap:10px;
  margin-bottom:12px;
}

#page .market-v2 .market-v2-heading h2 {
  font-size:20px;
  line-height:1.25;
}

#page .market-v2 .market-v2-heading p {
  font-size:12px;
  line-height:1.4;
}

#page .market-v2 .market-v2-categories,
#page .market-v2 .market-v2-services {
  gap:10px;
}

#page .market-v2 .market-v2-rail,
#page .market-v2 .market-v2-latest-grid {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-columns:auto!important;
  gap:14px!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
  min-width:0;
  max-width:100%;
}

#page .market-v2 .market-v2-card {
  box-sizing:border-box;
  position:relative;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  overflow:hidden;
  border-radius:12px;
  background:#111e2c;
  border:1px solid #263a4e;
}

#page .market-v2 .market-v2-card-link {
  display:block;
  width:100%;
  min-width:0;
  text-decoration:none;
}

#page .market-v2 .market-v2-image {
  position:relative;
  aspect-ratio:1/1!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden;
}

#page .market-v2 .market-v2-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

#page .market-v2 .market-v2-card-body {
  padding:12px!important;
  min-width:0;
}

#page .market-v2 .market-v2-card-body h3 {
  font-size:14px!important;
  line-height:1.4;
  min-height:39px;
  margin-bottom:6px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow-wrap:anywhere;
}

#page .market-v2 .market-v2-location {
  font-size:11px;
  overflow-wrap:anywhere;
}

#page .market-v2 .market-v2-card-body strong {
  display:block;
  margin-top:8px;
  font-size:15px!important;
  overflow-wrap:anywhere;
}

#page .market-v2 .market-v2-heart {
  width:34px!important;
  height:34px!important;
  border-radius:50%;
  background:#08111edb;
}

#page .market-v2 .market-v2-empty {
  grid-column:1/-1;
}

@media(max-width:1050px){
  #page .market-v2 .market-v2-rail,
  #page .market-v2 .market-v2-latest-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

@media(max-width:800px){
  #page .market-v2 .market-v2-rail,
  #page .market-v2 .market-v2-latest-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  html body #page .market-v2 {
    padding:8px 10px 24px!important;
    width:100%;
    min-width:0;
  }

  html body #page .market-v2 .market-v2-top {
    padding:12px!important;
    gap:10px;
    border-radius:12px;
  }

  html body #page .market-v2 .market-v2-rail,
  html body #page .market-v2 .market-v2-latest-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  html body #page .market-v2 .market-v2-heading h2 {
    font-size:18px!important;
  }

  html body #page .market-v2 .market-v2-card-body {
    padding:9px!important;
  }

  html body #page .market-v2 .market-v2-card-body h3 {
    font-size:13px!important;
    min-height:36px!important;
  }

  html body #page .market-v2 .market-v2-card-body strong {
    font-size:13px!important;
  }

  html body #page .market-v2 .market-v2-heart {
    width:30px!important;
    height:30px!important;
  }
}
