* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #1e1f22;
  color: #e6e6e6;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #2b2d31;
  border-bottom: 1px solid #3a3c40;
  flex-wrap: wrap;
}

.toolbar button,
.file-label {
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  background: #4a4dff;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
}

.toolbar button:disabled {
  background: #555;
  cursor: not-allowed;
}

#file-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}

.file-item:hover {
  background: #2b2d31;
}

.file-item.selected {
  background: #33365a;
  border-color: #4a4dff;
}

.file-item.playing {
  background: #3a5a3a;
  border-color: #5ad15a;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4a4dff;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  visibility: hidden;
}

.file-item.selected .order-badge {
  visibility: visible;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-bar {
  padding: 10px;
  background: #2b2d31;
  border-top: 1px solid #3a3c40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transport {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e1f22;
  border-radius: 999px;
  padding: 8px 16px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #e6e6e6;
  color: #1e1f22;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#elapsed-time,
#current-duration,
#total-duration {
  font-variant-numeric: tabular-nums;
  color: #e6e6e6;
  flex-shrink: 0;
}

.sep {
  color: #777;
}

#seek-bar {
  width: 100%;
}

#audio {
  display: none;
}

.controls {
  display: flex;
  gap: 8px;
}

.controls button {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  background: #3a3c40;
  color: #e6e6e6;
  cursor: pointer;
}
