/* listcleanup-20261115: Top Ten list polish only. Does not move instruments,
   nameplates, badges, or the private stage. Undo: remove this file and its
   <link id="mm-listcleanup-20261115"> from city pages.
   Row 1: artist name + Tickets (name gets all leftover width).
   Row 2: venue, date and time, fully readable, in the text column only.
   Row 3: song-preview chip + a smaller seller logo, right-aligned under Tickets. */
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .t5i,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > img.t5i,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > i.t5i{
  grid-column:1!important;
  grid-row:1 / -1!important;
  justify-self:center!important;
  align-self:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  min-height:44px!important;
  aspect-ratio:1 / 1!important;
  object-fit:contain!important;
  flex:none!important;
  margin:0!important;
}

/* 3 columns: art | text | Tickets (logo lives in the Tickets column, so it
   cannot steal width from the artist name). */
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) max-content!important;
  grid-template-rows:auto auto auto!important;
  column-gap:10px!important;
  row-gap:2px!important;
  align-items:center!important;
  box-sizing:border-box!important;
}
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .nw,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .mm-tix-wrap{
  display:contents!important;
}

/* Row 1 — name takes every pixel except the Tickets button. */
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .nw > b{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .mm-tix-wrap > a,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .mm-tix-wrap > a,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > a{
  grid-column:3!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
  z-index:2!important;
  position:static!important;
}

/* Row 2 — venue, date and time stay in the text column so a wrapped second
   line never runs under the logo. */
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .nw > span{
  grid-column:2!important;
  grid-row:2!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  line-height:1.25!important;
  max-height:2.5em!important;
  text-overflow:clip!important;
}

/* Row 3 — preview chip left, quieter seller logo right-aligned under Tickets.
   A definite width + min-width:0 is required: the SVG's intrinsic size was
   otherwise expanding column 3 to ~130px and crowding the artist name. */
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .nw > .cf-x{
  grid-column:2!important;
  grid-row:3!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li img.mm-tmlogo,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li img.mm-sellerlogo,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .mm-tix-wrap > img,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .mm-tix-wrap > .mm-tmlogo,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .mm-tix-wrap > .mm-sellerlogo,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .mm-tix-wrap > img,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .mm-tix-wrap > .mm-tmlogo,
html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .mm-tix-wrap > .mm-sellerlogo{
  grid-column:3!important;
  grid-row:3!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
  min-width:0!important;
  width:56px!important;
  max-width:56px!important;
  height:14px!important;
  max-height:14px!important;
  padding:2px 5px!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center right!important;
  overflow:hidden!important;
  flex:none!important;
  z-index:1!important;
  position:static!important;
}

/* Phone: same 3-row idea, but tighter so all 10 rows stay on screen above
   the private bar. Tickets still sit on row 1; logo stays a quiet badge. */
@media (max-width:820px){
  /* Clear the fixed #mm-private-label (29px tall, 8px from the bottom).
     Cap the list 45px above the viewport bottom and let it scroll, so the
     last row can sit fully above the bar. 174px is the usual list top. */
  html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next{
    max-height: calc(100dvh - 219px)!important;
    overflow-x: hidden!important;
    overflow-y: auto!important;
    padding-bottom: 8px!important;
    box-sizing: border-box!important;
    scroll-padding-bottom: 8px!important;
    overscroll-behavior: contain!important;
  }
  /* Venue/date may use the width under Tickets (Tickets lives on row 1),
     so typical dates stay on one line and all 10 rows fit above the bar. */
  html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li{
    column-gap:8px!important;
    row-gap:0!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
    overflow:visible!important;
  }
  html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .nw > span{
    grid-column:2 / -1!important;
    line-height:1.2!important;
  }
  html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > .mm-tix-wrap > a,
  html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li .mm-tix-wrap > a,
  html:root body:not(#mmx):not(#mmy):not(#mmz):not(#mmq):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5):not(#p6):not(#p7) ul#nextlist#nextlist.next li > a{
    min-height:22px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
  }
}
