/* =========================================
   Music Composer — Additions
   Shared styles come from composer.css
   ========================================= */

/* ---- Equalizer border decoration ---- */

.eq-border {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 32px;
  background: var(--grid-color);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;
}

.eq-border.left {
  left: 0;
}

.eq-border.right {
  right: 0;
}

.eq-bar {
  width: 10px;
  background: var(--border-subtle);
  border-radius: 1px;
}

/* Varying heights via nth-child for visual rhythm */
.eq-bar:nth-child(16n + 1) {
  height: 8px;
}
.eq-bar:nth-child(16n + 2) {
  height: 14px;
}
.eq-bar:nth-child(16n + 3) {
  height: 6px;
}
.eq-bar:nth-child(16n + 4) {
  height: 18px;
}
.eq-bar:nth-child(16n + 5) {
  height: 10px;
}
.eq-bar:nth-child(16n + 6) {
  height: 16px;
}
.eq-bar:nth-child(16n + 7) {
  height: 7px;
}
.eq-bar:nth-child(16n + 8) {
  height: 12px;
}
.eq-bar:nth-child(16n + 9) {
  height: 18px;
}
.eq-bar:nth-child(16n + 10) {
  height: 9px;
}
.eq-bar:nth-child(16n + 11) {
  height: 15px;
}
.eq-bar:nth-child(16n + 12) {
  height: 6px;
}
.eq-bar:nth-child(16n + 13) {
  height: 11px;
}
.eq-bar:nth-child(16n + 14) {
  height: 17px;
}
.eq-bar:nth-child(16n + 15) {
  height: 8px;
}
.eq-bar:nth-child(16n) {
  height: 13px;
}

/* ---- Character count badge ---- */

.char-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-subtle);
}

.char-count.warning {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.1);
}

/* ---- Section 5 animation delay ---- */

.section:nth-child(5) {
  animation-delay: 0.3s;
}

.output-section {
  animation-delay: 0.35s;
}

/* ---- Caption output ---- */

.caption-text {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .eq-border {
    display: none;
  }
}
