/* Base list styling */
.as-song-history { list-style: none; margin: 0; padding: 0; }

/* Rows */
.as-song-history .as-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
}
.as-song-history .as-row:last-child { border-bottom: 0; }

/* Time at the left */
.as-song-history .as-played-at {
  order: 0;
  min-width: 52px; /* align column */
  text-align: right;
  color: #6e7680;
  font-variant-numeric: tabular-nums;
}

/* Cover image */
.as-song-history .as-cover {
  order: 1;
  flex: 0 0 var(--as-cover-size, 40px);
  width: var(--as-cover-size, 40px);
  height: var(--as-cover-size, 40px);
  object-fit: cover;
  border-radius: 8px;
}

/* Metadata */
.as-song-history .as-meta {
  order: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.as-song-history .as-title {
  font-weight: 600;
  color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.as-song-history .as-artist {
  color: #6e7680;
  font-size: 0.95em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Playlist page tweaks (namespaced) */
.ash2-playlist-page .as-song-history .as-row { padding: 14px 0; gap: 14px; }
.ash2-playlist-page .as-song-history .as-cover { --as-cover-size: 56px; border-radius: 6px; }
.ash2-playlist-page .ash2-controls { margin: 8px 0 12px; }
.ash2-playlist-page .ash2-channel-select { max-width: 340px; width: 100%; padding: 8px 10px; }
.ash2-playlist-page .as-song-history .as-row:hover { background: #fafcff; }
.ash2-playlist-page .as-live {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  background: #00C853; /* groen label */
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ash2-playlist-page .as-separator {
  display: block;
  margin: 12px 0 6px;
  color: #7a818a;
  font-weight: 600;
  text-transform: none;
}
.ash2-playlist-page .ash2-date-nav { margin: 8px 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ash2-playlist-page .ash2-date-nav .as-date-label { color: #4d5561; font-weight: 600; }
.ash2-playlist-page .ash2-btn { appearance: none; border: 1px solid #e0e5ea; background: #fff; color: #222; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.ash2-playlist-page .ash2-btn:hover { background: #f7fafc; }
.ash2-playlist-page .ash2-btn:disabled { opacity: .5; cursor: default; }
.ash2-playlist-page .ash2-footer { text-align: center; margin: 16px 0 24px; }
.ash2-playlist-page .ash2-load-more {
  appearance: none;
  border: 1px solid #e0e5ea;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.ash2-playlist-page .ash2-load-more:hover { background: #f7fafc; }
.ash2-playlist-page .ash2-load-more:disabled { opacity: .5; cursor: default; }
.ash2-playlist-page .ash2-status { margin: 12px 0; color: #7a818a; }

/* Week view helpers */
.as-song-history-week { --as-cover-size: 40px; }
.as-song-history-week.size-compact { --as-cover-size: 28px; }
.as-song-history-week.size-large { --as-cover-size: 52px; }
.as-song-history-week.shape-pill .as-cover { border-radius: 999px; }
.as-song-history-week.shape-rounded .as-cover { border-radius: 10px; }
.as-song-history-week.shape-square .as-cover { border-radius: 3px; }

.as-song-history-week .as-week-nav { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.as-song-history-week .as-day-item { padding: 6px 10px; border: 1px solid #e5e8ec; border-radius: 999px; background: #fff; cursor: pointer; }
.as-song-history-week .as-day-item.active { background: var(--as-accent, #0E9FDD); color: #fff; border-color: transparent; }
.as-song-history-week .as-week-day.hidden { display: none; }
