
.dj-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dj-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dj-loading {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(238, 241, 247, 0.35);
  backdrop-filter: blur(2px);
}
.dj-loading.show { display: flex; }
.dj-loading .spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #111;
  animation: djSpin 0.8s linear infinite;
}
@keyframes djSpin { to { transform: rotate(360deg); } }

.list-loading,
.list-empty {
  text-align: center;
  padding: 50px 20px;
  font-size: 0.78rem;
  color: #bbb;
  letter-spacing: 2px;
}
.list-empty i {
  font-size: 2.4rem;
  color: #ddd;
  display: block;
  margin-bottom: 14px;
}

.song-action-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.7rem;
}
.song-action-btn:hover { color: #d9534f; border-color: rgba(217, 83, 79, 0.35); }

.page-title-tip {
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 1px;
  margin: 0 4px 12px 4px;
}

.playlist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}
.playlist-card .pl-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.playlist-card .pl-info { flex: 1; min-width: 0; }
.playlist-card .pl-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  letter-spacing: 1px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-card .pl-count { font-size: 0.68rem; color: #999; letter-spacing: 1px; }
.playlist-card .pl-actions { display: flex; gap: 8px; }
.playlist-card .pl-actions button {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #555;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}
.playlist-card .pl-actions button:hover { background: #111; color: #fff; }
.playlist-card .pl-actions button.danger:hover { background: #d9534f; }

.playlist-create-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.playlist-create-bar input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  outline: none;
  letter-spacing: 1px;
}
.playlist-create-bar button {
  border: none;
  padding: 0 18px;
  border-radius: 24px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.edit-avatar-upload {
  margin: 10px auto 18px auto;
  display: flex;
  justify-content: center;
}
.edit-avatar-upload input[type="file"] { display: none; }
.edit-avatar-upload label {
  padding: 13px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.edit-avatar-upload label:hover { background: #fff; color: #111; }

.edit-page .edit-avatar-preview img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.song-item.active { border-color: rgba(17, 17, 17, 0.25); background: rgba(255, 255, 255, 0.85); }

.player-controls .player-ctrl-btn { user-select: none; }

@media (max-width: 480px) {
  .song-action-btn { width: 26px; height: 26px; }
}

.dj-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}
.dj-modal {
  width: 100%;
  max-width: 420px;
  max-height: 72vh;
  overflow-y: auto;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.dj-modal h3 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #111;
  text-align: center;
}
.dj-playlist-list { display: flex; flex-direction: column; gap: 8px; }
.dj-playlist-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  color: #222;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: left;
}
.dj-playlist-option:hover { background: #111; color: #fff; }
.dj-playlist-option i { font-size: 0.8rem; }
.dj-playlist-option .dj-playlist-name { flex: 1; }
.dj-playlist-option em { font-style: normal; font-size: 0.66rem; opacity: 0.6; }
.dj-modal-empty { padding: 26px 0; text-align: center; color: #aaa; font-size: 0.76rem; }
.dj-playlist-create { display: flex; gap: 8px; margin-top: 14px; }
.dj-playlist-create input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  outline: none;
}
.dj-playlist-create button,
.dj-modal-close {
  border: none;
  padding: 10px 16px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 1px;
  cursor: pointer;
}
.dj-modal-close {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
}
.dj-playlist-create button:disabled { opacity: 0.6; cursor: default; }

.dj-song-filter {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  outline: none;
}
.dj-song-picker { display: flex; flex-direction: column; gap: 8px; max-height: 48vh; overflow-y: auto; }
.dj-song-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  text-align: left;
}
.dj-song-option:hover { background: #fff; }
.dj-song-option:disabled { opacity: 0.5; cursor: default; }
.dj-song-option img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.dj-song-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dj-song-text strong { font-size: 0.78rem; color: #111; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-song-text em { font-style: normal; font-size: 0.66rem; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-song-dur { font-size: 0.66rem; color: #999; flex-shrink: 0; }


.splash-screen, .sub-page, .auth-page, .edit-page, .search-page,
.result-page, .player-page, .dj-confirm-mask, .dj-loading, .dj-modal-mask {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.auth-slider .slider-text {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.gp-player.is-playing .gp-cover::after {
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
}


@supports not (height: clamp(130px, 24vw, 200px)) {
  .banner-carousel { height: 160px; }
  .player-cover-wrap { width: 220px; height: 220px; }
}


.download-edit-bar {
  position: -webkit-sticky;
  position: sticky;
}


.page-scroll, .sub-page, .search-page, .result-page, .player-page {
  -webkit-overflow-scrolling: touch;
}
button, .nav-item, .category-chip, .song-tab, .song-item,
.auth-submit-btn, .search-submit-btn, .bottom-nav-container,
.slider-handle, .slider-captcha .slider-handle {
  touch-action: manipulation;
}
