/* Hot on ShinyHits: /trending, the "Hot right now" strip and the card page's
   line. No endless animation here beyond the shared foil lettering. */
.ht { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.4rem; }
.ht-public { padding: 0.4rem 0 2rem; }
.ht-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ht-head h1 { margin: 0 0 0.35rem; font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 900; letter-spacing: -0.045em; }
.ht-lede { margin: 0; max-width: 40rem; }
.ht-sec { min-width: 0; }
.ht-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; margin-bottom: 0.7rem; }
.ht-sec-head h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1.15rem; }

/* big card tiles: the "now" row scrolls sideways, "rising" wraps */
.ht-row, .ht-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.ht-row { grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); overflow-x: auto; padding-bottom: 0.4rem;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.ht-row > li { scroll-snap-align: start; }
.ht-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.ht-card { display: flex; flex-direction: column; gap: 0.55rem; color: inherit; }
.ht-card:hover { text-decoration: none; }
.ht-art { position: relative; display: block; aspect-ratio: 63 / 88; border-radius: 4.6% / 3.3%; overflow: hidden; background: var(--panel-2);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.8); transition: transform 0.35s var(--ease); }
.ht-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ht-card:hover .ht-art { transform: translateY(-4px); }
.ht-own { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 900; color: #0d1a12; background: var(--pos); }
.ht-meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ht-name { font-size: 0.9rem; line-height: 1.2; overflow-wrap: anywhere; }
.ht-meta small { font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-top: 0.2rem; }
.ht-n { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; font-weight: 800; color: var(--ink-dim); }
.ht-n .ico { width: 0.95em; height: 0.95em; color: #f3a86b; }
.ht-p { font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ht-meta .ht-extra { color: var(--pos); font-weight: 700; }

/* the three ranked lists */
.ht-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ht-cols .ht-sec { padding: 1rem; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ht-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ht-list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.55rem; }
.ht-rank { font-weight: 900; font-size: 0.85rem; color: var(--muted); text-align: center; }
.ht-list li:nth-child(-n+3) .ht-rank { background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ht-li { display: flex; align-items: center; gap: 0.55rem; min-width: 0; color: var(--ink); }
.ht-li:hover { text-decoration: none; }
.ht-li img { width: 36px; height: auto; border-radius: 3px; flex: none; }
.ht-li span { display: flex; flex-direction: column; min-width: 0; }
.ht-li b { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-li small { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-count { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.1; }
.ht-count small { display: block; font-size: 0.66rem; font-weight: 700; color: var(--muted); }
.ht-note { margin: 0; }

/* the strip, for other pages */
.ht-strip { margin: 0 0 1.2rem; padding: 0.8rem 0.9rem 0.6rem; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.ht-strip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.55rem; }
.ht-strip-t { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.92rem; }
.ht-strip-row { list-style: none; margin: 0; padding: 0 0 0.3rem; display: grid; grid-auto-flow: column; grid-auto-columns: 72px; gap: 0.6rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.ht-strip-row li { scroll-snap-align: start; }
.ht-strip-row a { position: relative; display: block; border-radius: 5px; overflow: hidden; aspect-ratio: 63 / 88; background: var(--panel-2); }
.ht-strip-row img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.ht-strip-row a:hover img { transform: scale(1.05); }
.ht-strip-n { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 900; color: #10141a; background: var(--sticker); }
.ht-strip-noart { display: grid; place-items: center; height: 100%; padding: 4px; font-size: 0.62rem; text-align: center; color: var(--muted); }

/* the card page's line */
.ht-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin: 0.7rem 0 0; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.84rem; color: var(--ink-dim); }
.ht-line b { color: var(--ink); font-weight: 800; }
.ht-line a { margin-left: auto; font-size: 0.78rem; }
@media (prefers-reduced-motion: reduce) { .ht-art, .ht-strip-row img { transition: none; } }

/* demand signals on the card page */
.ht-card-demand { margin: 0.7rem 0 0; display: grid; gap: 0.5rem; }
.ht-card-demand .ht-line { margin: 0; }
.ht-demand-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ht-demand-row li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: var(--pill);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8rem; color: var(--ink-dim); }
.ht-demand-row b { color: var(--ink); }
.ht-demand-row .ico { width: 0.95em; height: 0.95em; color: var(--ice); }
:root[data-theme="light"] .ht-demand-row .ico { color: var(--ice-deep); }
.ht-also p { margin: 0 0 0.35rem; }
.ht-also-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 64px)); gap: 0.45rem; }
.ht-also-row a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 63 / 88; background: var(--panel-2); }
.ht-also-row img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.ht-also-row a:hover img { transform: scale(1.05); }
.ht-line:empty { display: none; }
