body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, #020617, #1e1b4b, #312e81);
  color: #e0e7ff;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

button {
  background: #4f46e5;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  margin: 4px;
}

button.secondary {
  background: #334155;
}

button.active {
  background: #0026ad;
}

.avatars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.avatar {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 12px;
}

.card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

#contactModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

#contactBox {
  background: #020617;
  max-width: 320px;
  margin: 15% auto;
  padding: 20px;
  border-radius: 16px;
}

footer {
  text-align: center;
  opacity: 0.6;
  margin-top: 40px;
}

.progress-container, .volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #4f46e5 0%, #4f46e5 0%, #64748b 0%, #64748b 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0026ad;
  cursor: pointer;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0026ad;
  cursor: pointer;
  border: none;
}

input {
  background: rgba(15,23,42,0.9);
  color: #e0e7ff;
  border: 1px solid #334155;
  width: 100%;
  border-radius: 8px;
  margin: 4px 0;
}

/* ---------- Панель авторизации ---------- */
#authPanel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#authPanel span {
  font-weight: 500;
  color: #e0e7ff;
}

#authPanel button {
  margin-left: auto; /* кнопка выхода всегда справа */
  background: #334155;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 64px;
}

/* обычные кнопки вход/регистрация */
#authPanel button.secondary {
  margin-left: 0;
}

/* ---------- Анимация появления/исчезновения ---------- */
#authPanel span, #authPanel button {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-5px);
}

#authPanel.active span,
#authPanel.active button {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Модалка ---------- */
#modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#modal.show {
  opacity: 1;
}

#modal > div {
  transform: scale(0.95) translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

#modal.show > div {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th, .admin-table td {
  border: 1px solid #334155;
  padding: 8px;
  text-align: center;
}

.admin-table th {
  background: #020617;
}

.admin-table select {
  background: #020617;
  color: #fff;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

/* Общий стиль кнопок для файлов */
.file-btn {
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background: #4f46e5;   /* фиолетовая основа */
  color: white;
}

.file-btn:hover {
  background: #3730a3;
}

/* Красная кнопка для удаления */
.file-del-btn {
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background: #dc2626;   /* красный */
  color: white;
}

.file-del-btn:hover {
  background: #b91c1c;
}

/* Немного отступа между кнопками */
.file-btn + .file-btn,
.file-del-btn + .file-btn,
.file-btn + .file-del-btn {
  margin-left: 6px;
}
#trackList {
  max-height: 240px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 6px;
}

.track {
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

.track:hover {
  background: #020617;
}

.track.active {
  background: #1e293b;
  color: #e5e7eb;
  font-weight: 600;
}

#trackList::-webkit-scrollbar {
  width: 6px;
}
#trackList::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
