/* v126.1: override legacy homepage/mobile trend-row rules with a stable four-part layout. */
body.publicArea .homeTrendPanel {
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 24px;
  background: radial-gradient(ellipse at 96% 0%, rgba(229,0,104,.075), transparent 38%), var(--surface);
  box-shadow: 0 16px 44px rgba(13, 20, 32, .08);
  overflow: hidden;
}

body.publicArea .homeTrendPanel .trendPanelHeading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}
body.publicArea .homeTrendPanel .trendPanelHeading > div { min-width: 0; }
body.publicArea .homeTrendPanel .trendEyebrow {
  display: block;
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}
body.publicArea .homeTrendPanel .trendPanelHeading h2 {
  margin: 0;
  color: var(--text);
  font: 800 clamp(24px, 3vw, 34px)/1.06 Manrope, Inter, sans-serif;
  letter-spacing: -.045em;
}
body.publicArea .homeTrendPanel .trendPanelHeading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
body.publicArea .homeTrendPanel .trendPanelHeading > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.publicArea .homeTrendPanel .trendCompactList { display: grid; gap: 7px; }
body.publicArea .homeTrendPanel .trendCompactRow {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 88px 42px !important;
  grid-auto-flow: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 82px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
body.publicArea .homeTrendPanel .trendCompactRow:last-child { border-bottom: 0; }
body.publicArea .homeTrendPanel .trendRank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
body.publicArea .homeTrendPanel .trendCompactRow:first-child .trendRank {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
}
body.publicArea .homeTrendPanel .trendTrackLink {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
body.publicArea .homeTrendPanel .trendTrackLink > img {
  display: block;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 15px;
  object-fit: cover;
  background: var(--surface-3);
  box-shadow: 0 7px 18px rgba(11, 17, 29, .12);
}
body.publicArea .homeTrendPanel .trendTrackCopy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
body.publicArea .homeTrendPanel .trendTrackCopy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.publicArea .homeTrendPanel .trendTrackCopy small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.publicArea .homeTrendPanel .trendMetric {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
  overflow: visible;
  color: var(--muted);
  text-align: right;
  white-space: normal;
}
body.publicArea .homeTrendPanel .trendMetric strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
body.publicArea .homeTrendPanel .trendMetric small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
}
body.publicArea .homeTrendPanel .trendMetric em {
  max-width: 88px;
  overflow: hidden;
  color: var(--brand);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.publicArea .homeTrendPanel .trendPlay {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0;
  padding: 0;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(229, 0, 104, .23);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.publicArea .homeTrendPanel .trendPlay:hover {
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow: 0 11px 24px rgba(229, 0, 104, .3);
}
body.publicArea .homeTrendPanel .trendPlay .playGlyph { width: 10px; height: 11px; }
body.publicArea .homeTrendPanel .trendTrackLink:hover .trendTrackCopy strong { color: var(--brand); }
html[data-theme="light"] body.publicArea .homeTrendPanel {
  background: radial-gradient(ellipse at 96% 0%, rgba(229,0,104,.06), transparent 38%), #fff;
}
html[data-theme="dark"] body.publicArea .homeTrendPanel {
  background: radial-gradient(ellipse at 96% 0%, rgba(229,0,104,.1), transparent 38%), var(--surface);
}

@media (max-width: 900px) {
  body.publicArea .homeTrendPanel { padding: 19px 17px 12px; border-radius: 20px; }
  body.publicArea .homeTrendPanel .trendCompactRow {
    grid-template-columns: 32px minmax(0, 1fr) 67px 38px !important;
    gap: 9px;
    min-height: 76px;
  }
  body.publicArea .homeTrendPanel .trendRank { width: 30px; height: 34px; border-radius: 11px; font-size: 11px; }
  body.publicArea .homeTrendPanel .trendTrackLink { grid-template-columns: 49px minmax(0, 1fr); gap: 10px; }
  body.publicArea .homeTrendPanel .trendTrackLink > img { width: 49px; height: 49px; border-radius: 12px; }
  body.publicArea .homeTrendPanel .trendTrackCopy strong { font-size: 12px; }
  body.publicArea .homeTrendPanel .trendTrackCopy small { font-size: 10px; }
  body.publicArea .homeTrendPanel .trendMetric strong { font-size: 13px; }
  body.publicArea .homeTrendPanel .trendMetric small,
  body.publicArea .homeTrendPanel .trendMetric em { font-size: 8px; }
  body.publicArea .homeTrendPanel .trendPlay { width: 38px !important; height: 38px !important; }
}
@media (max-width: 420px) {
  body.publicArea .homeTrendPanel { padding: 16px 13px 10px; }
  body.publicArea .homeTrendPanel .trendPanelHeading { align-items: flex-start; gap: 8px; }
  body.publicArea .homeTrendPanel .trendPanelHeading h2 { font-size: 23px; }
  body.publicArea .homeTrendPanel .trendPanelHeading p { max-width: 230px; font-size: 10px; }
  body.publicArea .homeTrendPanel .trendPanelHeading > a { padding: 8px 9px; font-size: 9px; }
  body.publicArea .homeTrendPanel .trendCompactRow {
    grid-template-columns: 27px minmax(0, 1fr) 52px 34px !important;
    gap: 6px;
    min-height: 68px;
    padding: 7px 0;
  }
  body.publicArea .homeTrendPanel .trendRank { width: 26px; height: 30px; border-radius: 9px; font-size: 10px; }
  body.publicArea .homeTrendPanel .trendTrackLink { grid-template-columns: 42px minmax(0, 1fr); gap: 7px; }
  body.publicArea .homeTrendPanel .trendTrackLink > img { width: 42px; height: 42px; border-radius: 10px; }
  body.publicArea .homeTrendPanel .trendTrackCopy { gap: 3px; }
  body.publicArea .homeTrendPanel .trendTrackCopy strong { font-size: 10px; }
  body.publicArea .homeTrendPanel .trendTrackCopy small { font-size: 9px; }
  body.publicArea .homeTrendPanel .trendMetric { gap: 2px; }
  body.publicArea .homeTrendPanel .trendMetric strong { font-size: 12px; }
  body.publicArea .homeTrendPanel .trendMetric small,
  body.publicArea .homeTrendPanel .trendMetric em { font-size: 7px; }
  body.publicArea .homeTrendPanel .trendMetric em { max-width: 52px; }
  body.publicArea .homeTrendPanel .trendPlay { width: 34px !important; height: 34px !important; }
  body.publicArea .homeTrendPanel .trendPlay .playGlyph { width: 8px; height: 9px; }
}
