/* zerod.css - regole specifiche per ppaged (usare insieme a zeroa.css) */

/* container */
.container { max-width: 920px; margin: 18px auto; padding: 0 12px; }

/* Track layout: icone 32x25 */
.track {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

/* Header row */
.track-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 12px;
  align-items: center;
}

/* Icons unified 32x25 */
.icon {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.track .icon.play { margin-left: -8px; }

/* Title in maroon */
.title {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: maroon;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 0.3rem 0;   /* niente margin-left fisso */
  font-size: 0.85rem;
  color: #666;
  margin-left: 2.6rem;          /* allineato sotto il titolo (icona 32px + gap) */
}

/* Progress wrap (middle column) */
.progress-wrap { grid-column: 2 / 3; display: flex; align-items: center; gap: 10px; }

/* Visual progress bar fixed size 200x25 */
.progress-bg {
  width: 200px;
  height: 25px;
  background: #e6e6e6;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin-top: 12px;
}
.progress-fill {
  height: 100%;
  background: #b30000;
  width: 0%;
  transition: width 0.08s linear;
}

/* Time text */
.time { font-size: 12px; color: #444; min-width: 110px; text-align: right; }

/* Right area: icon + small italic label "download .mid" */
.progress-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.progress-right .icon.download img {
  width: 24px;
  height: 20px;
  object-fit: contain;
  display:block;
}
.dl-label {
  font-size: 12px;
  font-style: italic;
  color: #444;
  white-space: nowrap;
}

/* Text and notes aligned under title (middle column) */
.track-text { grid-column: 2 / 3; margin-top: 10px; font-style: italic; color: #333;  margin-left: 2.6rem;  }
.track-notes { grid-column: 2 / 3; margin-top: 6px; color: #444;   margin-left: 2.6rem; }

/* Group header (stacco e allineamento con i titoli) */
.track-group {
  grid-column: 2 / 3;
  margin-top: 20px;           /* più staccato rispetto al brano precedente */
  margin-bottom: 8px;
  font-weight: 700;           /* grassetto */
  color: #111;
}
.track-group .group-small {
  color: maroon;              /* bb in maroon */
  font-weight: 700;
  font-size: 0.95em;
}

/* Playing state */
.track.playing .title { color: #b30000; }

/* Accessibility focus */
.icon:focus, .title:focus { outline: 2px solid #b56565; outline-offset: 2px; border-radius: 3px; }

/* No-data message */
.no-data { color: #900; padding: 18px 0; text-align: center; }

