/* 整體設定 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #121212; /* 深色背景 */
    color: #fff;
    text-align: center;
}

/* 返回按鈕 */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #555;
}

/* 專輯主體 */
.album {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.album img {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 專輯標題與年份 */
#album-title {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0 0;
}


#album-year {
    font-size: 16px;
    color: #666;
    margin: 0;
}


/* 歌曲清單 */
#album-songs {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    max-width: 400px;
    text-align: left;
    counter-reset: song-counter;
}

#album-songs li {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    transition: background 0.2s;
}

#album-songs li::before {
    color: #aaa;
    margin-right: 8px;
}

#album-songs li:hover {
    background: #2a2a2a;
    cursor: pointer;
}

/* 歌曲名稱連結樣式 */
#album-songs li a {
    color: #fff; /* 歌曲名稱設為白色，與背景協調 */
    text-decoration: none; /* 移除底線 */
    transition: color 0.2s; /* 平滑顏色過渡 */
}

#album-songs li a:link,
#album-songs li a:visited {
    color: #fff; /* 未訪問和已訪問都保持白色 */
}

#album-songs li a:hover {
    color: rgb(79, 194, 223); /* hover 時變為藍綠色，與 h1 一致 */
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右分散：歌名在左，按鈕在右 */
}

.song-item .action-btns {
    display: flex;
    gap: 8px; /* 控制 lyrics 和愛心的間距 */
}




/* 調整歌詞按鈕樣式，避免被歌曲連結樣式覆蓋 */
#album-songs .lyrics-btn {
  margin-left: 15px;
  font-size: 14px;
  color: #fafafa !important; /* 強制文字顏色 */
  text-decoration: none;
  background: #222;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

#album-songs .lyrics-btn:hover {
  background: #4fc2df;
  color: #121212 !important; /* hover 後仍保持正確顏色 */
}

/* 隨機撥放一首按鈕樣式 */
.purple-btn {
    background: linear-gradient(135deg, #6b568a, #6d4cb5); /* 漸層紫色 */
    border: none;
    border-radius: 12px;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.purple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 90, 213, 0.4);
}

/* 喜歡按鈕樣式 */
.like-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
  color: gray;
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn:hover {
  transform: scale(1.2);
}

.like-btn.liked {
  color: rgb(206, 30, 30);
}

