body {
  background-color: #f8f9fa;
  overflow-x: auto;
}

code {
  white-space: nowrap;
}

audio {
  width: 100%;
  min-width: 180px;
  max-width: 320px;
  height: 32px;
}

.audio-with-mel {
  display: grid;
  gap: 0.4rem;
}

.mel-thumb-btn {
  border: 1px solid #ced4da;
  background: #0b1020;
  border-radius: 0.25rem;
  padding: 0;
  width: fit-content;
  cursor: zoom-in;
}

.mel-thumb {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 68px;
  object-fit: cover;
  image-rendering: auto;
}

.sample-meta {
  min-width: 280px;
  max-width: 560px;
}

.reference-text {
  margin: 0;
}

.empty-audio {
  color: #6c757d;
  font-size: 0.875rem;
  font-style: italic;
}

.table th {
  white-space: nowrap;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.audio-cell {
  min-width: 230px;
}

.task-table-wrap {
  position: relative;
  overflow: visible;
}

.task-table-wrap .table {
  margin-bottom: 0;
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}

.task-table-wrap .table thead {
  position: sticky;
  top: 0;
  z-index: 6;
}

.task-table-wrap .table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8f9fa;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.task-table-wrap .table th:first-child,
.task-table-wrap .table td:first-child {
  position: sticky;
  left: 0;
}

.task-table-wrap .table tbody td:first-child {
  z-index: 4;
  background: #ffffff;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08);
}

.task-table-wrap .table thead th:first-child {
  z-index: 8;
  background: #f8f9fa;
}

.mel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}

.mel-modal-panel {
  width: min(98vw, 1800px);
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.75rem 0.75rem 0.5rem;
}

.mel-modal-close {
  display: inline-block;
  margin-bottom: 0.5rem;
  border: 1px solid #adb5bd;
  border-radius: 0.25rem;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.mel-modal-image {
  display: block;
  width: 100%;
  max-height: min(88vh, 1200px);
  object-fit: contain;
  image-rendering: crisp-edges;
  border: 1px solid #dee2e6;
  background: #0b1020;
}

.mel-modal-caption {
  margin: 0.5rem 0 0;
  color: #495057;
  font-size: 0.875rem;
}

body.mel-modal-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .sample-meta {
    min-width: 220px;
  }

  .audio-cell {
    min-width: 190px;
  }

  .mel-thumb {
    width: 180px;
    height: 60px;
  }

  .task-table-wrap {
    overflow: visible;
  }
}

.github-link {
  color: #212529;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.github-link:hover {
  color: #000;
  transform: scale(1.08);
  opacity: 0.8;
}
