
/* Small extras on top of Bootstrap */
body { background: #0b1020; color: #f8fafc; }
.navbar { background: #0f172a; }
.card { background: #0f172a; border-color: rgba(255,255,255,.08); color: #f8fafc; }
.form-control, .form-select { background: #0b1226; color: #e5e7eb; border-color: rgba(255,255,255,.12); }
.form-control:focus, .form-select:focus { background: #0b1226; color: #e5e7eb; }
.canvas-wrap { max-height: 500px; overflow: hidden; border-radius: .75rem; border: 1px solid rgba(255,255,255,.08); background: #050814; }
.canvas-wrap canvas { width: 100%; height: auto; display:block; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.preset-card { cursor: pointer; transition: border-color .12s ease, outline-color .12s ease; }
.preset-card:hover { border-color: rgba(255,255,255,.22); }
.preset-card.active { outline: 2px solid rgba(59,130,246,.9); }
.small-muted { color: rgba(248,250,252,.78); }

/* Preset gallery: keep two rows visible, scroll the rest */
.preset-scroll { max-height: 720px; overflow-y: auto; padding: .25rem; }
.preset-card { position: relative; }
.preset-card.selected { outline: 2px solid rgba(34,197,94,.85); }

/* Playlist selection (for "Record Selected" infrastructure) */
.list-group-item.selected { outline: 2px solid rgba(34,197,94,.75); background: rgba(34,197,94,.08); }


.btn-nowrap { min-width: 150px; }


/* Thumbnail regenerate button (positioned by .preset-badges flex, not absolute) */
.preset-regen{ padding:.1rem .4rem; line-height:1.2; }

/* Square thumbnails (320x320) */
.preset-thumbwrap{ position: relative; width: 100%; height: 320px; background:#050814 url("../thumbs/placeholder.svg") center/cover no-repeat; overflow:hidden; }
.preset-thumb{ width:100%; height:100%; display:block; object-fit:cover; }
.preset-title-overlay{
  position:absolute; left:0; right:0; bottom:0;
  padding:.55rem .65rem;
  color:#fff; font-weight:600; line-height:1.15;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-shadow:0 2px 10px rgba(0,0,0,.95), 0 1px 2px rgba(0,0,0,.85);
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  z-index: 2;
}
.preset-badges{
  position:absolute; top:.5rem; left:.5rem; right:.5rem;
  display:flex; justify-content:space-between; gap:.5rem;
  z-index: 3;
  pointer-events: none;
}
.preset-badges .form-check{ margin:0; }
.preset-badges > * { pointer-events: auto; }

/* Tags shown as small chips above the title overlay (not clickable) */
.preset-tags-overlay{
  position:absolute;
  left:.5rem;
  right:.5rem;
  bottom:2.4rem;
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
  z-index: 2;
  pointer-events:none;
}
.preset-tag-chip{
  display:inline-block;
  font-size:.68rem;
  padding:.08rem .38rem;
  border-radius:999px;
  background: #00BFFF; /* DeepSkyBlue */
  color: #042536;
  border: 1px solid rgba(0,0,0,.12);
  font-weight: 600;
}
.preset-tag-chip.preset-tag-more{
  background: #4169E1; /* RoyalBlue */
  color: #F8FAFC;
}





/* Thumb fallback: keep deterministic src; show placeholder if load fails */
.preset-thumbwrap{
  background: url('../thumbs/placeholder.svg') center/contain no-repeat;
}
.preset-thumb.thumb-failed{
  opacity: 0;
}


/* Studio layout: Controls + Preview pane */
.a2v-top-pane{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .85rem;
  padding: .85rem;
}
/* Ensure the two cards match height inside the studio pane */
.a2v-top-pane .col-lg-4 > .w-100 > .card,
.a2v-top-pane .col-lg-8 > .w-100 > .card{
  height: 100%;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25rem;
}

#recProgressWrap .progress-stacked {height: 28px;}
#recProgressWrap .progress {height: 100%;}

#recProgressWrap .progress-bar {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

#playTransportBar {
  background-color: #042536;
  padding: 3px;
  border-radius: 6px;  
}
#playTransportBar .progress-bar {
  font-size: 0.9rem;
  font-weight: 600;
}


#audioPlaylistList .list-group-item {
  padding-left: 4px;  
  padding-right: 4px;  
  font-size: 0.75rem;
}

#audioPlaylistList .list-group-item .small {
	font-size: 0.75rem;
	line-height: 1;
	padding-right: 4px;
	display: block-inline;
  /*overflow: hidden;
  white-space: nowrap; 
  text-overflow: ellipsis;  
  */
}

#playTransportBar button.btn {
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 8px;
}