/* Top 10 (landing, inside "Listen & discover"): song cards per the Figma "Song" row —
   card surface, cream hairline, 56px cover, title/meta, round mango play button.
   Versioned file: index.html links top10.css?v=N. */
.t10-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 760px) { .t10-list { grid-template-columns: 1fr 1fr; gap: 16px 20px; } }
@media (min-width: 1100px) { .t10-list { grid-template-columns: repeat(3, 1fr); } }

.t10-row {
  position: relative; display: grid; grid-template-columns: 18px 56px minmax(0, 1fr) 40px; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--ad-line, rgba(255, 248, 234, .55)); border-radius: 24px; background: var(--ad-surface-card, #1c1a12);
  transition: border-color var(--duration-fast) ease, transform var(--duration-normal) var(--ease);
}
.t10-row:hover, .t10-row:focus-within { border-color: var(--ad-brand-tangerine, #ffb224); }
.t10-row.playing { border-color: var(--ad-brand-lavender, #a8e06a); }

.t10-rank { position: relative; font: 800 15px var(--font-display); color: var(--ad-text-secondary, #c2b99e); text-align: center; font-variant-numeric: tabular-nums; }
/* While playing, the number becomes a small equaliser. */
.t10-row.playing .t10-rank { color: transparent; }
.t10-row.playing .t10-rank::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 12px; margin: -6px 0 0 -7px;
  background: linear-gradient(var(--ad-brand-lavender), var(--ad-brand-lavender)) 0 100% / 3px 100% no-repeat,
              linear-gradient(var(--ad-brand-lavender), var(--ad-brand-lavender)) 50% 100% / 3px 60% no-repeat,
              linear-gradient(var(--ad-brand-lavender), var(--ad-brand-lavender)) 100% 100% / 3px 80% no-repeat;
  animation: t10eq .9s ease-in-out infinite alternate;
}
.t10-row.playing.paused .t10-rank::after { animation-play-state: paused; }
@keyframes t10eq {
  0% { background-size: 3px 40%, 3px 100%, 3px 60%; }
  50% { background-size: 3px 100%, 3px 50%, 3px 90%; }
  100% { background-size: 3px 70%, 3px 80%, 3px 35%; }
}

.t10-art { width: 56px; height: 56px; overflow: hidden; background: var(--ad-surface-raised, #2a2719); }
.t10-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.t10-play {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ad-action-primary, #ffb224); color: var(--ad-action-on-primary, #0f0e09);
  transition: transform var(--duration-fast) var(--ease), filter var(--duration-fast);
}
.t10-play:hover { transform: scale(1.06); filter: brightness(1.06); }
.t10-play svg { width: 16px; height: 16px; display: block; }
.t10-play:focus-visible { outline: 2px solid var(--ad-action-link); outline-offset: 2px; }

.t10-body, .t10-body:hover { min-width: 0; text-decoration: none; color: var(--ad-text-primary, #fff8ea); }
.t10-title { font: 600 16px/22px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t10-body:hover .t10-title { text-decoration: underline; text-underline-offset: 3px; }
.t10-row.playing .t10-title { color: var(--ad-brand-lavender, #a8e06a); }
.t10-meta { margin-top: 4px; color: var(--ad-text-secondary, #c2b99e); font-size: 14px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progress: a thin track under the title/meta, only while this row is the current song. */
.t10-bar { height: 3px; margin-top: 6px; border-radius: 2px; background: var(--ad-border-subtle, #3a3626); overflow: hidden; display: none; }
.t10-row.playing .t10-bar { display: block; }
.t10-fill { height: 100%; width: 0; background: var(--ad-brand-tangerine, #ffb224); }

.t10-skel { height: 90px; display: block; }
.t10-skel::after {
  content: ""; display: block; height: 14px; width: 60%; margin: 22px 0 0 88px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ad-surface-card), var(--ad-surface-raised), var(--ad-surface-card)); background-size: 200% 100%;
  animation: t10s 1.3s infinite linear;
}
@keyframes t10s { to { background-position: -200% 0; } }

/* Rows arrive one after another once the chart has data. */
.t10-ready .t10-row { animation: t10-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes t10-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  .t10-ready .t10-row, .t10-skel::after, .t10-row.playing .t10-rank::after { animation: none; }
  .t10-row, .t10-play { transition: none; }
}
