/**
 * 音乐弹窗播放器样式
 */

/* =========================
   弹窗遮罩层
   ========================= */
.music-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-modal-overlay.show {
  opacity: 1;
}

/* =========================
   弹窗主体
   ========================= */
.music-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-primary);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(88, 166, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.music-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================
   弹窗头部
   ========================= */
.music-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-primary);
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.8) 0%, rgba(13, 17, 23, 0.8) 100%);
}

.music-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  padding-right: 20px;
}

.music-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.music-modal-close:hover {
  background: var(--bg-tertiary);
  border-color: rgba(88, 166, 255, 0.5);
  transform: scale(1.1);
}

.music-modal-close:active {
  transform: scale(0.95);
}

.music-modal-close i {
  font-size: 14px;
}

/* =========================
   弹窗内容区
   ========================= */
.music-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* 自定义滚动条 */
.music-modal-body::-webkit-scrollbar {
  width: 8px;
}

.music-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.music-modal-body::-webkit-scrollbar-thumb {
  background: rgba(88, 166, 255, 0.3);
  border-radius: 4px;
}

.music-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 166, 255, 0.5);
}

/* =========================
   弹窗中的播放器样式调整
   ========================= */
.music-modal-body .music-detail-player {
  margin-bottom: 20px;
}

/* 弹窗中的碟盘稍小一些 */
.music-modal-body .music-disc {
  width: 250px;
  height: 250px;
}

.music-modal-body .disc-cover {
  width: 180px;
  height: 180px;
}

.music-modal-body .disc-placeholder {
  width: 180px;
  height: 180px;
}

.music-modal-body .disc-placeholder i {
  font-size: 52px;
}

/* 弹窗中的波形图稍矮一些 */
.music-modal-body .music-waveform-container {
  height: 100px;
}

/* =========================
   音乐信息区
   ========================= */
.music-modal-info {
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-primary);
}

.music-modal-info .music-desc {
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.6;
}

.music-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.music-meta-info .small {
  font-size: 13px;
}

.music-modal-info .music-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.music-modal-info .music-tags .badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

/* =========================
   响应式设计
   ========================= */
@media (max-width: 768px) {
  .music-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .music-modal-header {
    padding: 16px 20px;
  }
  
  .music-modal-title {
    font-size: 16px;
  }
  
  .music-modal-body {
    padding: 16px;
  }
  
  .music-modal-body .music-detail-player {
    padding: 20px;
  }
  
  .music-modal-body .music-disc {
    width: 200px;
    height: 200px;
  }
  
  .music-modal-body .disc-cover {
    width: 140px;
    height: 140px;
  }
  
  .music-modal-body .disc-placeholder {
    width: 140px;
    height: 140px;
  }
  
  .music-modal-body .disc-placeholder i {
    font-size: 48px;
  }
  
  .music-modal-body .music-waveform-container {
    height: 80px;
  }
  
  .music-modal-info {
    padding: 16px;
  }
  
  .music-meta-info {
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================
   动画效果
   ========================= */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}




