.lgbtqmc{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #111827;
}

.lgbtqmc-chart-header{
  width: 100%;
  margin: 0 0 14px;
}

.lgbtqmc-chart-header img{
  width: 100%;
  height: auto;
  display: block;

  border-radius: 14px;
  border: 1px solid rgba(17,24,39,0.08);
}

/* Bb-ish explainer: more spacing + bold labels */
.lgbtq-chart-explainer{
  display:flex;
  flex-wrap:wrap;
  gap: 18px 26px;              /* more space between explanations */
  align-items:center;
  justify-content:center;
  text-align:center;

  margin: 0 0 18px;
  padding: 12px 10px;

  background: transparent;
  border: 0;
  box-shadow: none;
}

.lgbtq-chart-explainer span{
  font-size: 12px;
  letter-spacing: .02em;
  color: #6b7280;

  background: transparent;
  border: 0;
  padding: 0;

  white-space: nowrap;
}

.lgbtq-chart-explainer strong{
  color:#111827;
  font-weight: 900;
  text-transform: uppercase;   /* more “Billboard label” */
  letter-spacing: .06em;
}

.lgbtqmc-section-title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #111827;
}

/* Container: clean “chart page” card */
.lgbtqmc-chart .lgbtqmc-list{
  background: #ffffff;
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

/* Entry: minimal strip + a “chart rail” accent */
.lgbtqmc-chart .lgbtqmc-row{
  position: relative;
  display:flex;
  gap:16px;
  align-items:center;

  padding: 16px 16px 16px 18px;
  background: #ffffff;
  border-bottom: 1px solid rgba(17,24,39,0.06);
}
.lgbtqmc-chart .lgbtqmc-row:last-child{ border-bottom: none; }

/* thin accent on the left (Billboard-ish) */
.lgbtqmc-chart .lgbtqmc-row:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background: linear-gradient(180deg, #111827, rgba(17,24,39,0.10));
  opacity: .10;
}

.lgbtqmc-chart .lgbtqmc-row:hover{
  background: #fafafa;
}
.lgbtqmc-chart .lgbtqmc-row:hover:before{
  opacity: .22;
}

/* Cover: flatter, clean */
.lgbtqmc-cover{
  width:92px;
  height:92px;
  padding:0;
  border:0;
  background:transparent;
  position:relative;
  cursor:pointer;

  border-radius: 10px;
  overflow:hidden;
  flex: 0 0 92px;

  box-shadow: none;
}
.lgbtqmc-cover img{
  width:92px;
  height:92px;
  object-fit:cover;
  display:block;
}

/* Number: bottom-left corner with gold star background */
.lgbtqmc-cover-number {
  position: absolute;
  left: 0;
  bottom: 0;
  top: auto;
  z-index: 3;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lgbtqmc-cover-number::before {
  /* U+2B50 WHITE MEDIUM STAR — renders as gold emoji on all modern platforms */
  content: "\2b50";
  position: absolute;
  font-size: 58px;
  line-height: 1;
  z-index: 0;
  left: 0;
  bottom: 0;
}

.lgbtqmc-cover-number span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  font-size: 37.5px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}

/* Play overlay: subtle */
.lgbtqmc-cover .lgbtqmc-cover-state{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition: opacity .15s ease;
  background: rgba(17,24,39,0.12);
  z-index: 2;
}
.lgbtqmc-cover:hover .lgbtqmc-cover-state{ opacity:1; }
.lgbtqmc-cover.is-playing .lgbtqmc-cover-state{ opacity:1; }

.lgbtqmc-cover .lgbtqmc-cover-state:before{
  content: "▶";
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  box-shadow: none;
}
.lgbtqmc-cover.is-playing .lgbtqmc-cover-state:before{
  content: "❚❚";
  font-size: 14px;
  letter-spacing: 2px;
}

/* Meta */
.lgbtqmc-meta{ flex:1 1 auto; min-width:0; }

h2.lgbtqmc-topline{
  margin:0 !important;
  padding:0 !important;

  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap: nowrap;
  min-width: 0;

  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  color:#111827 !important;
  letter-spacing: .01em;
}

h2.lgbtqmc-topline .lgbtqmc-artist,
h2.lgbtqmc-topline .lgbtqmc-title,
h2.lgbtqmc-topline .lgbtqmc-sep{
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

h2.lgbtqmc-topline .lgbtqmc-artist,
h2.lgbtqmc-topline .lgbtqmc-title{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
h2.lgbtqmc-topline .lgbtqmc-artist{ max-width: 44%; }
h2.lgbtqmc-topline .lgbtqmc-title{ max-width: 56%; }

/* LW/WOC: uppercase micro-label look */
.lgbtqmc-subline{
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lgbtqmc-subline strong{
  font-weight: 900;
  color: #374151;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  line-height: 1;
}

/* Movement direction indicators inside LW */
.lgbtqmc-movement { font-weight: 900; vertical-align: middle; }
.lgbtqmc-movement-up   { color: #16a34a; } /* green  */
.lgbtqmc-movement-down { color: #dc2626; } /* red    */
.lgbtqmc-movement-same { color: #7c3aed; } /* purple */

/* Whole-stat colour modifiers for LW / WOC / Peak (positions 1–50) */
.lgbtqmc-subline .lgbtqmc-stat--up   { color: #16a34a; } /* green */
.lgbtqmc-subline .lgbtqmc-stat--down { color: #dc2626; } /* red   */
.lgbtqmc-subline .lgbtqmc-stat--same { color: #7c3aed; } /* purple */

/* Tags: cleaner + slightly tighter */
.lgbtqmc-tags{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.lgbtqmc-tag{
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;

  background: #f3f4f6;
  color: #111827;
  font-weight: 900;

  border: 1px solid rgba(17,24,39,0.06);
  letter-spacing: .03em;
}

/* Keep your special tag colors */
.lgbtqmc-tag.tag-new{ background: #FF0000; color:#fff; border-color: rgba(0,0,0,0.06); }
.lgbtqmc-tag.tag-newcomer{ background: #6225D1; color:#fff; border-color: rgba(0,0,0,0.06); }
.lgbtqmc-tag.tag-highlight{ background: #7B2F7B; color:#fff; border-color: rgba(0,0,0,0.06); }
.lgbtqmc-tag.tag-highlight-week{ background: #3A7D15; color:#fff; border-color: rgba(0,0,0,0.06); }
.lgbtqmc-tag.tag-song{ background: #3A7D15; color:#fff; border-color: rgba(0,0,0,0.06); }
.lgbtqmc-tag.tag-outed{ background: #FF00BF; color:#fff; border-color: rgba(0,0,0,0.06); }

/* Actions: minimal square-ish icons */
.lgbtqmc-actions{
  flex:0 0 auto;
  display:flex;
  flex-direction:row;
  gap:10px;
  align-items:center;
  justify-content:center;
  min-width: 74px;
}

.lgbtqmc-vote,
.lgbtqmc-buy{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: transparent;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 10px;
}

button.lgbtqmc-vote,
button.lgbtqmc-vote:hover,
button.lgbtqmc-vote:focus,
button.lgbtqmc-vote:active{
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:0;
  cursor:pointer;
  line-height:0;
}
.lgbtqmc-buy{
  text-decoration:none;
  line-height:0;
}

.lgbtqmc-icon{
  width:22px;
  height:22px;
  display:block;
}
/* Voting dates below the static chart only. */
.lgbtqmc-static-view {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  clear: both;
  float: none;
}
.lgbtqmc-static-view > * {
  grid-column: 1;
  min-width: 0;
}
.lgbtqmc-static-view > .lgbtqmc-static-voting-period {
  display: block;
  clear: both;
  float: none;
  width: 100%;
  text-align: center;
  font-size: 12px !important;
  line-height: 1.5;
  margin: 16px 0 0;
}

/* Promotion controls appear only alongside voting controls. */
.lgbtqmc-promote {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.lgbtqmc-promote svg { flex-shrink: 0; }
.lgbtqmc-promote:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.lgbtqmc-full-chart { clear: both; text-align: center; margin: 24px 0; }
.lgbtqmc-promotion { display: flow-root; width: 100%; }
.lgbtqmc-share-status {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 12px 16px;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
}

.lgbtqmc-read-more ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.lgbtqmc-read-more a { display: flex; align-items: center; gap: 12px; }
.lgbtqmc-read-more img { width: 80px; height: 80px; object-fit: cover; }

/* The same heart stays black until hover or an active voting cooldown. */
.lgbtqmc-vote .lgbtqmc-icon-vote { filter: brightness(0); }
.lgbtqmc-vote.has-voted .lgbtqmc-icon-vote,
.lgbtqmc-vote:active .lgbtqmc-icon-vote { filter: none; }
@media (hover: hover) {
  .lgbtqmc-vote:hover .lgbtqmc-icon-vote { filter: none; }
}

/* Smartphone chart layout */
@media (max-width: 600px) {
  .lgbtqmc-chart .lgbtqmc-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    padding: 12px;
  }
  .lgbtqmc-chart .lgbtqmc-cover,
  .lgbtqmc-chart .lgbtqmc-cover img {
    width: 46px;
    height: 46px;
  }
  .lgbtqmc-chart .lgbtqmc-cover {
    flex-basis: 46px;
    min-width: 46px;
    border-radius: 6px;
  }
  .lgbtqmc-cover-number { width: 29px; height: 29px; }
  .lgbtqmc-cover-number::before { font-size: 29px; }
  .lgbtqmc-cover-number span { font-size: 19px; }
  .lgbtqmc-cover .lgbtqmc-cover-state:before {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .lgbtqmc-chart h2.lgbtqmc-topline {
    display: block;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .lgbtqmc-chart h2.lgbtqmc-topline .lgbtqmc-artist,
  .lgbtqmc-chart h2.lgbtqmc-topline .lgbtqmc-title {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .lgbtqmc-chart h2.lgbtqmc-topline .lgbtqmc-sep { display: none; }
  .lgbtqmc-subline {
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .02em;
  }
  .lgbtqmc-subline strong { line-height: 1.3; }
  .lgbtqmc-tags { gap: 4px; margin-top: 6px; }
  .lgbtqmc-tag {
    font-size: 10px;
    line-height: 1.4;
    padding: 3px 6px;
    overflow-wrap: anywhere;
    max-width: 100%;
    box-sizing: border-box;
  }
  .lgbtqmc-chart .lgbtqmc-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
    width: auto;
    gap: 2px;
  }
  .lgbtqmc-actions .lgbtqmc-vote,
  .lgbtqmc-actions .lgbtqmc-buy,
  .lgbtqmc-actions .lgbtqmc-promote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .lgbtqmc-chart .lgbtqmc-actions .lgbtqmc-icon,
  .lgbtqmc-chart .lgbtqmc-actions .lgbtqmc-promote svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    max-width: none;
  }
  .lgbtq-chart-explainer { gap: 6px 10px; padding: 8px 0; margin-bottom: 12px; }
  .lgbtq-chart-explainer span { font-size: 10px; white-space: normal; }
  .lgbtqmc-promotion > h2 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
}

/* Memorial entries remain black, including on hover and smartphones. */
.lgbtqmc-chart .lgbtqmc-row.lgbtqmc-row-memory,
.lgbtqmc-chart .lgbtqmc-row.lgbtqmc-row-memory:hover {
  background: #000;
  color: #fff;
  border-bottom-color: #444;
}
.lgbtqmc-row-memory h2.lgbtqmc-topline { color: #fff !important; }
.lgbtqmc-row-memory .lgbtqmc-subline,
.lgbtqmc-row-memory .lgbtqmc-subline strong { color: #fff; }
.lgbtqmc-memory-label {
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.lgbtqmc-row-memory .lgbtqmc-promote { color: #fff; }
.lgbtqmc-row-memory button.lgbtqmc-vote,
.lgbtqmc-row-memory button.lgbtqmc-vote:hover,
.lgbtqmc-row-memory button.lgbtqmc-vote:focus,
.lgbtqmc-row-memory button.lgbtqmc-vote:active,
.lgbtqmc-row-memory .lgbtqmc-buy {
  background: #fff !important;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .lgbtqmc-memory-label { font-size: 11px; margin-top: 6px; }
}
