:root {
  --primary-color: #7285F3;
  --primary-dark: #5a6fc9;
  --light-gray: #f5f5f7;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --text-color: #333;
  --white: #fff;
}

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

.zdy-music-player {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.zdy-header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 15px;
}

.zdy-music-list-title {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 600;
  margin: 0;
}

.zdy-control-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.zdy-control-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: var(--medium-gray);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.zdy-control-btn:hover {
  background-color: #d0d0d0;
}

.zdy-play-btn {
  width: 42px;
  height: 42px;
  background-color: var(--primary-color);
  color: var(--white);
}

.zdy-play-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.zdy-music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.zdy-music-item {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 12px;
  text-align: center;
}

.zdy-music-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.zdy-cover-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  margin: 0;
  overflow: hidden;
}

.zdy-music-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  z-index: 1;
}

.zdy-cover-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.7));
  z-index: 2;
}

/* 核心调整：加大白色发光效果 */
.zdy-music-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 5px 5px;
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000; /* 保持黑色文字 */
  /* 增大发光：双层阴影+更大模糊半径（8px/12px）+更高透明度 */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 
               0 0 12px rgba(255, 255, 255, 0.8),
               0 0 16px rgba(255, 255, 255, 0.6);
  font-weight: 600; /* 适当加粗，让文字在强光晕下更清晰 */
  z-index: 3;
}

.zdy-status-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 14px;
  border-radius: 16px;
  font-weight: 600;
  z-index: 4;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(114, 133, 243, 0.5);
}

.zdy-music-item.zdy-active .zdy-status-tag {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(114, 133, 243, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(114, 133, 243, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(114, 133, 243, 0);
  }
}

.zdy-music-info {
  padding: 0;
  text-align: center;
}

/* 平板设备响应式调整 */
@media (max-width: 768px) {
  .zdy-music-player {
    padding: 8px 15px;
  }
  
  .zdy-header-section {
    padding: 6px 0;
    margin-bottom: 12px;
  }
  
  .zdy-music-list-title {
    font-size: 17px;
  }
  
  .zdy-control-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .zdy-play-btn {
    width: 40px;
    height: 40px;
  }
  
  .zdy-status-tag {
    width: 70px;
    height: 28px;
    font-size: 12px;
  }

  .zdy-music-title {
    font-size: 12px;
    /* 平板端同步加大发光，比例适配 */
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 
                 0 0 10px rgba(255, 255, 255, 0.8);
  }
}

/* 手机设备响应式调整 */
@media (max-width: 480px) {
  .zdy-music-player {
    padding: 5px 10px;
    border-radius: 0;
    box-shadow: none;
  }
  
  .zdy-header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    margin-bottom: 10px;
  }
  
  .zdy-music-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .zdy-music-item {
    padding: 10px;
  }
  
  .zdy-status-tag {
    width: 60px;
    height: 24px;
    font-size: 11px;
  }
  
  .zdy-music-title {
    font-size: 11px;
    padding: 6px 5px 4px;
    /* 手机端适配发光大小，避免过度模糊 */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 
                 0 0 8px rgba(255, 255, 255, 0.8);
  }
}