/* --------------------------- 
       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;
  }

}
