/* --------------------------- 
       Songs page tweaks
    --------------------------- */

.songItem { 
  position: relative; 
}

.songActions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 6px;
  min-height: 30px;
}
.songActions:empty { 
  display:none; 
}

/* ---------------------------
   Setlist icon button
--------------------------- */

.pickBtn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--accent, #8fd3ff);
  border-radius: 50%;
  padding: 6px 8px;
  cursor: pointer;
  line-height: 1;
  user-select: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  width: 30px;
  height: 30px;
}

.pickBtn:hover { 
  background: rgba(255,255,255,.06); 
}

.pickBtn.isPicked {
  border-color: rgba(120,255,180,.35);
  background: rgba(120,255,180,.12);
}

.pickIcon{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display:block;
}

/* ---------------------------
   Search input
--------------------------- */

.songSearch{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text, #fff);
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1;
  font-size: 14px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 220px;
}

.songSearch::placeholder{ 
  opacity: .75; 
}

/* ---------------------------
   Sticky setlist bar
--------------------------- */

.setlistBar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 14px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(6px);

  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.setlistBar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.setlistCount {
  font-weight: 700;
  white-space: nowrap;
}

.setlistPreview {
  opacity: .85;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.setlistBar .right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* =========================================================
   HEADER LAYOUT FIX
   Goal:
   Row 1 → controls (left) + burger (right)
   Row 2 → titleblock full width
========================================================= */

.songsHeader .topbar{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-areas:
    "controls burger"
    "title    title" !important;
  gap: 12px !important;
  align-items: start !important;
}

/* Assign grid areas explicitly */
.songsHeader .controls{
  grid-area: controls !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0;
}

.songsHeader .titleblock{
  grid-area: title !important;
  min-width: 0;
}

.songsHeader .burgerWrap{
  grid-area: burger !important;
  justify-self: end !important;
  align-self: start !important;
  margin-top: 0 !important;
}

/* Controls fill from LEFT */
.songsHeader .filterRow{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  justify-content:flex-start !important;
  align-items:center !important;
  min-width: 0;
}

/* ---------------------------
   Responsive
--------------------------- */

@media (max-width: 820px){

  .songsHeader .topbar{
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "controls burger"
      "title    title" !important;
  }

  .songsHeader .burgerWrap{
    justify-self: end !important;
    align-self: start !important;
    margin-top: 0 !important;
  }

}
/* =========================================================
   Source Coloring + Hover Badge (Stable Version)
========================================================= */

/* Link styling */
.songLink {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

/* Source colors */
.songLink[data-source="Others"] {
  color: rgba(234, 179, 8, 0.75);
}

.songLink[data-source="The Session"] {
  color: rgba(34, 197, 94, 0.85);
}

.songLink[data-source="Paul Hardy"] {
  color: rgba(96, 165, 250, 0.85);
}

/* Hover badge — positioned BELOW to avoid clipping */
.songLink::after {
  content: attr(data-source);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;

  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);

  display: none;
  white-space: nowrap;
  pointer-events: none;
}

/* Show only when hovering the link */
.songLink:hover::after {
  display: inline-block;
}

/* =========================================================
   INDEX PAGE – Make it match full-width stats layout
========================================================= */

body.songListPage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.songListPage .wrap {
  max-width: 100%;   /* remove boxed look */
  margin: 0;
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.songListPage main {
  flex: 1;
  display: flex;
  min-height: 0;
}

body.songListPage main > .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* homeBtn plus statsBtn */
a.homeBtn, a.statsBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.08);
  color:#2dff00;
  text-decoration:none;
  transition:all .15s ease;
}
a.homeBtn:hover{
  background:rgba(96,165,250,.25);
  border-color:rgba(96,165,250,.6);
  transform:translateY(-2px);
}
a.statsBtn:hover{
  background:rgba(168,85,247,.25);
  border-color:rgba(168,85,247,.6);
  transform:translateY(-2px);
}

.homeBtn svg,
.statsBtn svg{
  width:18px;
  height:18px;
  display:block;
}

/* ======================================
   Index: true far-left stats button
====================================== */

.songListPage .controls {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.songListPage .controls .statsBtn {
  flex: 0 0 auto;
}

.songListPage .filterRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;  
}