:root {
  --bg: #0b0d17;          /* фон без фиолетового: тёмно-синий/графит */
  --panel: #15182a;       /* панели */
  --panel-2: #1c2033;     /* карточки */
  --accent: #ff2d78;      /* розово-малиновый акцент как на фото */
  --accent-2: #e91e63;
  --teal: #3ee6c4;
  --text: #ffffff;
  --muted: #8b90a5;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
}

/* Каркас */
.app-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}
.app-shell.layout {
  align-items: stretch;
  gap: 0;
  padding: 40px;
}

/* Общая панель (как окно плеера на фото) */
.auth-panel,
.sidebar,
.content {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.auth-panel { max-width: 420px; width: 100%; padding: 40px; }

/* Точки окна */
.window-dots { display: flex; gap: 8px; margin-bottom: 28px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

/* Вкладки */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.tab {
  flex: 1; padding: 10px; background: transparent; border: none;
  color: var(--muted); font-weight: 600; cursor: pointer;
  border-radius: 8px; transition: all 0.3s;
}
.tab.active { background: var(--accent); color: #fff; }

/* Типографика */
.auth-eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.auth-title { font-size: 28px; margin: 6px 0 8px; }
.auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* Поля */
.input-group { margin-bottom: 16px; }
.input-group label {
  display: block; margin-bottom: 6px;
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
}
.input-group input {
  width: 100%; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); border-radius: 10px; font-size: 15px; transition: all 0.3s;
}
.input-group input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 45, 120, 0.25);
}

/* Кнопка «плей» как на фото */
.btn-play-big {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--accent); color: #fff; border: none;
  font-weight: 700; font-size: 15px; letter-spacing: 1px;
  border-radius: 50px; cursor: pointer; transition: all 0.3s;
}
.btn-play-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 45, 120, 0.4);
}

.auth-status { margin-top: 14px; text-align: center; font-size: 13px; min-height: 18px; }
.auth-status.success { color: var(--teal); }
.auth-status.error { color: #ff6b6b; }

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ===== ПРОФИЛЬ ===== */

/* Боковое меню */
.sidebar { width: 240px; padding: 28px 20px; border-radius: var(--radius) 0 0 var(--radius); }
.menu-label { color: var(--muted); font-size: 13px; margin: 20px 0 10px; }
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu-item {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 14px;
  transition: background 0.25s, color 0.25s;
}
.menu-item:hover { background: rgba(255,255,255,0.05); }
.menu-item.active { color: var(--accent); font-weight: 600; }
.menu-item.logout { margin-top: 24px; color: var(--muted); }
.menu-item.logout:hover { color: #ff6b6b; background: rgba(255,107,107,0.08); }

.profile-brief { text-align: center; margin-bottom: 8px; }
.profile-brief strong { display: block; margin-top: 10px; }
.profile-brief .muted { font-size: 12px; }
.sidebar-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(255, 45, 120, 0.35);
}

/* Анимированный эквалайзер внизу меню (как на фото) */
.equalizer {
  display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 32px;
}
.equalizer span {
  width: 6px; background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 3px; animation: bounce 1.2s infinite ease-in-out;
}
.equalizer span:nth-child(1) { height: 30%; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.equalizer span:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.equalizer span:nth-child(4) { height: 70%; animation-delay: 0.45s; }
.equalizer span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
.equalizer span:nth-child(6) { height: 80%; animation-delay: 0.35s; }
.equalizer span:nth-child(7) { height: 45%; animation-delay: 0.2s; }
.equalizer span:nth-child(8) { height: 60%; animation-delay: 0.5s; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

/* Контент */
.content { flex: 1; padding: 32px; border-radius: 0 var(--radius) var(--radius) 0; }

.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar-wrapper { position: relative; }
.profile-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); box-shadow: 0 0 20px rgba(255, 45, 120, 0.4);
}
.profile-name { font-size: 26px; }
.profile-status { color: var(--accent); font-size: 14px; margin-top: 4px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { display: block; }

.panel {
  background: var(--panel-2); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.panel-title { font-size: 20px; margin-bottom: 16px; }

.cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.media-card strong { display: block; margin-top: 10px; font-size: 14px; }
.media-card .muted { font-size: 12px; }

.cover { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.cover-1 { background: linear-gradient(135deg, #ff2d78, #7b2dff); }
.cover-2 { background: linear-gradient(135deg, #ff9a3d, #ff2d78); }
.cover-3 { background: linear-gradient(135deg, #2d7bff, #3ee6c4); }
.cover-4 { background: linear-gradient(135deg, #b52dff, #ff2d78); }

.cover-sm { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }

.track-list { display: flex; flex-direction: column; gap: 8px; }
.track-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); padding: 10px 14px; border-radius: 10px;
}
.track-row > div { flex: 1; }
.btn-add {
  background: transparent; border: 1px solid var(--muted); color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: all 0.25s;
}
.btn-add:hover { border-color: var(--accent); color: var(--accent); }

/* Адаптив */
@media (max-width: 768px) {
  .app-shell.layout { flex-direction: column; padding: 16px; }
  .sidebar { width: 100%; border-radius: var(--radius); }
  .content { border-radius: var(--radius); padding: 20px; }
  .equalizer { display: none; }
}

.nickname-editor {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 220px;
}

.nickname-editor input {
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
}

.nickname-editor input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-nick {
  padding: 8px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.25s;
}

.btn-nick:hover {
  background: var(--accent);
  color: #fff;
}