/* ===== 前端音乐网站样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #0f0f1a; color: #e0e0e0; font-size: 14px; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 三列布局 */
.site-wrapper { display: flex; min-height: calc(100vh - 60px); max-width: 1600px; margin: 0 auto; padding: 16px; gap: 16px; }

/* 左栏 */
.col-left { width: 240px; flex-shrink: 0; background: #1a1a2e; border-radius: 10px; padding: 20px; }
.site-brand { text-align: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #2a2a4a; }
.site-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.site-logo-text { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #e94560, #ff6b6b); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; }
.site-title { font-size: 20px; font-weight: bold; color: #fff; }

/* 搜索 */
.search-box { margin-bottom: 24px; }
.search-box form { display: flex; gap: 0; }
.search-input { flex: 1; padding: 8px 12px; border: 1px solid #2a2a4a; border-right: none; border-radius: 6px 0 0 6px; background: #0f0f1a; color: #fff; font-size: 13px; outline: none; }
.search-input:focus { border-color: #e94560; }
.search-btn { padding: 8px 14px; background: #e94560; color: #fff; border: none; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 13px; }
.search-btn:hover { background: #d63851; }

/* 分类列表 */
.col-title { font-size: 15px; font-weight: bold; color: #fff; margin-bottom: 12px; padding-left: 8px; border-left: 3px solid #e94560; }
.cat-list { margin-bottom: 24px; }
.cat-list ul li { margin-bottom: 2px; }
.cat-list ul li a { display: block; padding: 8px 12px; border-radius: 6px; color: #b0b0c0; transition: all 0.2s; font-size: 13px; }
.cat-list ul li a:hover { background: #2a2a4a; color: #fff; }
.cat-list ul li a.active { background: #e94560; color: #fff; }

/* 友情链接 */
.link-list ul li { margin-bottom: 2px; }
.link-list ul li a { display: block; padding: 6px 12px; border-radius: 6px; color: #8888aa; font-size: 12px; transition: all 0.2s; }
.link-list ul li a:hover { color: #e94560; background: #2a2a4a; }

/* 中栏 */
.col-center { flex: 1; background: #1a1a2e; border-radius: 10px; padding: 30px; display: flex; flex-direction: column; align-items: center; }

/* 播放器区域 */
.player-section { width: 100%; max-width: 600px; }
.song-info { text-align: center; margin-bottom: 24px; }
.song-title { font-size: 24px; font-weight: bold; color: #fff; margin-bottom: 10px; }
.song-meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.meta-item { font-size: 13px; color: #8888aa; }

/* 封面+频谱 */
.player-cover-wrap { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; }
.spectrum { width: 60px; height: 200px; }
.cover-box { width: 220px; height: 220px; border-radius: 12px; overflow: hidden; background: #2a2a4a; box-shadow: 0 8px 32px rgba(233, 69, 96, 0.3); flex-shrink: 0; position: relative; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: #444466; background: linear-gradient(135deg, #2a2a4a, #1a1a2e); }
.cover-box.playing .cover-img { animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 进度条 */
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; width: 100%; }
.time-current, .time-total { font-size: 12px; color: #8888aa; min-width: 45px; text-align: center; }
.progress-bar { flex: 1; height: 6px; background: #2a2a4a; border-radius: 3px; cursor: pointer; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(to right, #e94560, #ff6b6b); border-radius: 3px; width: 0%; transition: width 0.1s; }
.progress-thumb { position: absolute; top: 50%; left: 0%; transform: translate(-50%, -50%); width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s; }
.progress-bar:hover .progress-thumb { opacity: 1; }

/* 播放控制 */
.player-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.ctrl-btn { background: none; border: none; color: #b0b0c0; font-size: 22px; cursor: pointer; transition: all 0.2s; padding: 8px; }
.ctrl-btn:hover { color: #fff; transform: scale(1.1); }
.ctrl-play { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #e94560, #ff6b6b); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4); }
.ctrl-play:hover { transform: scale(1.05); color: #fff; }
.volume-wrap { display: flex; align-items: center; gap: 8px; margin-left: 20px; }
.volume-slider { width: 80px; height: 4px; -webkit-appearance: none; background: #2a2a4a; border-radius: 2px; outline: none; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #e94560; cursor: pointer; }

/* 分享代码 */
.share-section { width: 100%; background: #0f0f1a; border-radius: 8px; padding: 16px; }
.share-title { font-size: 13px; color: #8888aa; margin-bottom: 10px; }
.share-code-wrap { display: flex; gap: 8px; }
.share-code { flex: 1; padding: 8px 12px; background: #1a1a2e; border: 1px solid #2a2a4a; border-radius: 4px; color: #b0b0c0; font-size: 12px; font-family: monospace; resize: none; height: 60px; outline: none; }
.btn-copy { padding: 8px 16px; background: #e94560; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn-copy:hover { background: #d63851; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 80px; color: #444466; margin-bottom: 20px; }
.empty-state p { color: #8888aa; margin-bottom: 20px; }

/* 右栏 */
.col-right { width: 300px; flex-shrink: 0; background: #1a1a2e; border-radius: 10px; padding: 20px; max-height: calc(100vh - 100px); overflow-y: auto; }
.col-right::-webkit-scrollbar { width: 6px; }
.col-right::-webkit-scrollbar-track { background: transparent; }
.col-right::-webkit-scrollbar-thumb { background: #2a2a4a; border-radius: 3px; }
.song-count { color: #8888aa; font-weight: normal; font-size: 13px; }

/* 歌曲列表 */
.song-list { margin-top: 8px; }
.song-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s; margin-bottom: 4px; }
.song-item:hover { background: #2a2a4a; }
.song-item.playing { background: rgba(233, 69, 96, 0.15); border-left: 3px solid #e94560; }
.song-item-cover { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: #2a2a4a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.song-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-item-cover span { color: #555577; font-size: 18px; }
.song-item-info { flex: 1; min-width: 0; }
.song-item-name { font-size: 13px; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.song-item.playing .song-item-name { color: #e94560; }
.song-item-meta { font-size: 11px; color: #666688; }
.song-item-play { color: #555577; font-size: 14px; flex-shrink: 0; }
.song-item:hover .song-item-play { color: #e94560; }
.empty-list { text-align: center; color: #555577; padding: 40px 0; font-size: 13px; }

/* 页脚 */
.site-footer { background: #1a1a2e; padding: 16px; text-align: center; border-top: 1px solid #2a2a4a; }
.footer-content p { font-size: 12px; color: #666688; }
.footer-content a { color: #8888aa; }
.footer-content a:hover { color: #e94560; }

/* 响应式 */
@media (max-width: 1200px) {
    .col-left { width: 200px; }
    .col-right { width: 260px; }
}
@media (max-width: 900px) {
    .site-wrapper { flex-direction: column; }
    .col-left, .col-right { width: 100%; }
    .col-right { max-height: none; }
    .player-cover-wrap { flex-direction: column; }
    .spectrum { width: 200px; height: 60px; }
}
