/* ==============================
   RATINGS LIST (NEON) — FULL
   Includes visibility overrides for filters
============================== */

/* Container */
.ratings-list {
  margin-top: 20px;
  border-radius: 12px;
  overflow: visible; /* allow glow/shadows and header controls to show */
  background: transparent;
}

/* Header
   We use 4 columns: song | score | status | filters
*/
.ratings-list-header {
  display: grid;
  grid-template-columns: 1fr 80px 80px auto; /* song | score | status | filters */
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-accent);
  border-bottom: 1px solid rgba(255,105,180,0.25);
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
}

/* Small screens: collapse filters beneath header */
@media (max-width: 640px) {
  .ratings-list-header {
    grid-template-columns: 1fr 72px; /* collapse to two columns */
    align-items: start;
  }
  .ratings-list-header .ratings-filters {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
    flex-wrap: wrap;
  }
}

/* Filters (placed in header's 4th column) */
.ratings-list-header .ratings-filters {
  grid-column: 4;
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 500;
}

/* Individual filter buttons / links */
.ratings-filters .filter {
  text-decoration: none;
  color: var(--color-accent);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,105,180,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Active + hover states */
.ratings-filters .filter.active,
.ratings-filters .filter:hover {
  background: linear-gradient(90deg, rgba(255,105,180,0.06), rgba(255,0,255,0.04));
  box-shadow: 0 0 10px rgba(255,105,180,0.12);
}

/* Arrow icon styling */
.ratings-filters .icon {
  font-size: 0.7rem;
  color: var(--color-accent);
  line-height: 1;
}

/* Rows */
.ratings-full .ratings-list-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 12px 16px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background: transparent;
  transition: 0.2s ease;
  overflow: visible; /* let glowing pills show */
  position: relative;
}

.ratings-list-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,105,180,0.12);
}

.ratings-list-row:hover {
  background: rgba(255,105,180,0.04);
  box-shadow: inset 0 0 12px rgba(255,105,180,0.06);
}

/* Song cell */
.song-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* allow shrinking and prevent pushing the score */
  flex: 1 1 auto;
}

.song-cell img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(255,105,180,0.4);
  flex: 0 0 auto;
}

.song-text {
  min-width: 0;
  flex: 1 1 auto; /* allow title to shrink before pushing layout */
}

.song-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.05;
  word-break: break-word;
  margin-bottom: 4px;
  max-width: 100%;
  text-shadow: 0 0 8px rgba(255,105,180,0.08);
}

.song-text span {
  font-size: 0.8rem;
  color: #aaa;
  display: block;
  line-height: 1;
}

/* Score cell: center-aligned */
.score-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding-left: 8px;
  box-sizing: border-box;
  pointer-events: none;
}

/* Status cell */
.status-cell {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/* Plain text scores on list pages (ratings, plan to listen, activity) */
.page-list-plain .score-pill {
  background: none !important;
  color: #ff69b4 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
  letter-spacing: 0.01em;
}

/* Fallback score pill for preview usage */
.ratings-full .preview-score-pill {
  position: absolute;
  right: 18px;                  /* distance from right edge */
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 60;
}

/* No cover placeholder */
.no-cover {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #222;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(255,105,180,0.12);
}

/* Sidebar column variants */
.left-column .ratings-list-header,
.left-column .ratings-list-row {
  display: grid;
  grid-template-columns: 1fr 72px; /* song | score */
  align-items: center;
}

.left-column .score-cell {
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .ratings-full .ratings-list-row { padding-right: 12px; grid-template-columns: 1fr 72px; }
  .song-cell img { width: 44px; height: 44px; }
  .ratings-full .preview-score-pill { right: 10px; padding: 5px 8px; font-size: 0.85rem; }
  .left-column .rated-preview { padding-right: 12px; }
  .score-pill { padding: 5px 8px; font-size: 0.85rem; }
}

/* Accessibility focus states */
.ratings-filters .filter:focus,
.ratings-filters .filter:active,
.ratings-list-row:focus {
  outline: 2px dashed rgba(255,105,180,0.25);
  outline-offset: 4px;
  box-shadow: 0 0 14px rgba(255,105,180,0.08);
}

/* Optional active underline for filters (neon tab effect) */
.ratings-filters .filter.active {
  position: relative;
}
.ratings-filters .filter.active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ff69b4,#ff00ff);
  box-shadow: 0 0 14px rgba(255,0,255,0.12);
}

/* Ensure filters visible if some global rule hides them */
.home-discovery-section .ratings-list-header .ratings-filters,
.ratings-list .ratings-filters {
  display: flex;
  z-index: 500;
}

/* Make sure header spacing doesn't collapse */
.ratings-list-header .col-song { overflow: visible; }