/* ========================================
   右侧固定播放器面板
   ======================================== */

/* ===== 登录注册按钮 ===== */
.auth-buttons {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.auth-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.login-btn {
    background: #e94560;
    color: #fff;
}
.login-btn:hover {
    background: #ff6b6b;
}
.register-btn {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}
.register-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.user-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #fff;
    padding: 6px 0;
}
.logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
}
.logout-btn:hover {
    color: #fff;
    border-color: #fff;
}

/* ===== 弹窗样式 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-box {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}
.modal-close:hover {
    color: #333;
}
.modal-body {
    padding: 20px;
}
.form-item {
    margin-bottom: 14px;
}
.form-item label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.form-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.form-item input:focus {
    border-color: #5470c6;
}
.error-msg {
    color: #e94560;
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
}
.modal-footer {
    padding: 0 20px 20px;
}
.btn-primary {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #5470c6;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #4160b0;
}
/* 播放器页面 */
.right-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(180deg, #1e1e2f 0%, #252542 50%, #1a1a2e 100%);
    padding: 24px 14px;
    box-sizing: border-box;
    z-index: 100;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.06);
    box-shadow: -4px 0 20px rgba(0,0,0,0.25);
}

/* ========================================
   播放器主体
   ======================================== */

.side-player {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
}

/* 唱片封面 */
.side-cover {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b8a 0%, #6b5ce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 15px rgba(255, 107, 138, 0.35), 0 0 0 4px rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
    cursor: default;
}

.side-cover.playing {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 歌名链接 */
.side-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
    word-break: break-all;
    padding: 0 4px;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.side-name:hover {
    color: #ff8fab;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 播放按钮 */
.side-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b8a 0%, #e94560 100%);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(233, 69, 96, 0.4);
    margin-top: 2px;
}

.side-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 18px rgba(233, 69, 96, 0.55);
}

.side-btn:active {
    transform: scale(0.95);
}

.side-btn.playing {
    background: linear-gradient(135deg, #7c6ce7 0%, #5b4cc4 100%);
    box-shadow: 0 3px 12px rgba(92, 76, 196, 0.4);
}

.side-btn.playing:hover {
    box-shadow: 0 5px 18px rgba(92, 76, 196, 0.55);
}

/* 进度条 */
.side-progress {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.side-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.side-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b8a 0%, #e94560 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.side-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.side-progress:hover .side-fill::after {
    opacity: 1;
}

/* 时间 */
.side-time {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* 音量控制 */
.side-vol {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 0 2px;
}

.side-vol .vol-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.side-vol:hover .vol-icon {
    opacity: 1;
}

.side-vol .vol-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.side-vol .vol-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.85) 100%);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* 装饰性分隔线 */
.side-player::before {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    border-radius: 2px;
    margin-bottom: 4px;
}