/* Modal background overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: -20; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

/* Modal container */
.modal-content {
  background: #363636;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}

/* Header and footer - fixed inside modal */
.modal-header, .modal-footer {
  padding: 1em;
  background-color: #3f3e3e;
  flex-shrink: 0;
}

.modal-header {
  border-bottom: 1px solid #666;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.modal-footer {
  border-top: 1px solid #666;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

/* Scrollable lyrics content */
#modalLyrics {
  padding: 1em;
  overflow: auto;
  white-space: pre-wrap; /* preserves line breaks */
  max-height: 60vh;
  overflow-x: auto; /* enable horizontal scroll if needed */
  font-family: monospace;
  background-color: #1c1c1c;
  flex-grow: 1;
}

/* Close button - top-right corner */
.modal-close-btn {
  position: absolute;
  top: 0.5em;
  right: 0.7em;
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
}