/* style.css */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background: #f8f9fa;
  --text-color: #2c3e50;
}


body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-color);
  min-height: 100vh;
  padding: 2rem;
}




.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

#song-list {
  display: grid;
  gap: 1rem;
}

.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.song-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.song-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--secondary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.song-item:hover::before {
  opacity: 1;
}

.song-info {
  flex: 1;
  margin-right: 2rem;
}

.song-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

button.like-btn {
  position: relative;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
   background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
}

button.like-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

button.like-btn:hover::before {
  opacity: 1;
}

button.like-btn i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

button.like-btn.liked i {
  color: #ffd700;
  transform: scale(1.2);
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

button.like-btn.liked {
  animation: heartbeat 0.6s ease;
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.remaining-likes-box {
  background: rgba(255,255,255,0.15);
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.remaining-likes-box:hover {
  background: rgba(255,255,255,0.25);
}

/* 移动端样式 */
@media (max-width: 768px) {
  .song-item {
    padding: 1rem;
  }
  
  .song-name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
  }
  
  button.like-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

button.like-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

button.like-btn:disabled {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  cursor: not-allowed;
  opacity: 0.7;
}

.like-count {
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  margin-left: 0.5rem;
}

#remaining-likes {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#remaining-likes-count {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.3rem;
}

/* 加载动画 */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
