/* ==========================================
   音频播放器样式 (player.css)
   ========================================== */

/* --- 播放器容器 --- */
.custom-audio-player {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.custom-audio-player audio {
    width: 100%;
    border-radius: 8px;
}

/* --- 自定义播放器 --- */
.player-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.play-btn:hover { transform: scale(1.05); }

.player-progress {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.progress-current {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-time {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
    white-space: nowrap;
}

.pitch-select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

/* --- 会员付费保护块 --- */
.membership-protected {
    background: transparent; border-radius: 12px; padding: 30px 20px;
    text-align: center; color: #475569; margin: 25px 0;
    position: relative; border: 2px dashed #cbd5e0;
}
.membership-protected-icon { font-size: 42px; margin-bottom: 15px; display: block; color: #3b82f6; }
.membership-login-hint { margin-top: 12px; font-size: 13px; }
.membership-login-hint a { color: #3b82f6; font-weight: 600; }
.btn-membership-buy {
    background: #3b82f6; color: #fff; border: none;
    border-radius: 10px; padding: 10px 24px; margin-top: 12px;
    font-weight: 600; cursor: pointer; transition: opacity 0.15s;
}
.btn-membership-buy:hover { opacity: 0.9; }

.player-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}
.player-volume input[type=range] {
    width: 60px;
    height: 4px;
    accent-color: #3b82f6;
}

/* ==========================================
   变调下载区 (pitch-download) — 简洁深蓝
   ========================================== */

.pd-container { margin-top: 20px; }
.pd-container .glass {
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,.95);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.pd-container .toolbar-row { margin-bottom:16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.pd-container .toolbar-row:last-child { margin-bottom: 0; }

.pd-container .download-original {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8px 12px; height: auto; min-height: 48px;
    border-radius: 10px; cursor: pointer;
    border: 1px solid #e2e8f0; background: #ffffff;
    color: inherit; text-decoration: none;
    -webkit-user-select: none; user-select: none;
    transition: border-color 0.15s ease;
}
.pd-container .download-original:hover { border-color: #3b82f6; }
.pd-container .download-original .pd-main { font-weight: 600; line-height: 1; }
.pd-container .download-original .pd-sub {
    font-size: 12px; color: #94a3b8; margin-top: 4px; line-height: 1;
}

.pd-container .pitch-group {
    display: flex; align-items: center; gap: 6px;
}
.pd-container .pitch-label {
    font-size: 13px; color: #475569; margin-right: 4px; white-space: nowrap;
}
.pd-container .pitch-btn {
    width: 34px; height: 34px; border-radius: 8px;
    background: #fff; border: 1px solid #e2e8f0;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; padding: 0;
    color: #1e293b; font-weight: 600; transition: border-color 0.15s ease;
}
.pd-container .pitch-btn:hover { border-color: #3b82f6; color: #3b82f6; }
.pd-container .pitch-btn:active { background: #eff6ff; }
.pd-container .pitch-display {
    min-width: 40px; text-align: center; font-weight: 700;
    color: #1e293b; font-size: 14px; font-variant-numeric: tabular-nums;
}

.pd-container .generate-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 18px; height: 38px;
    background: #3b82f6; color: #fff; border: none;
    font-weight: 600; font-size: 14px; border-radius: 8px;
    cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
}
.pd-container .generate-btn:hover { opacity: 0.9; }
.pd-container .generate-btn:active { opacity: 0.8; }
.pd-container .generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pd-container .pd-status { font-size: 13px; color: #94a3b8; white-space: nowrap; }

.pd-container .download-list {
    display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.pd-container .download-row {
    display: flex; gap: 8px; align-items: center; padding: 4px 0;
}
.pd-container .download-row .meta {
    font-size: 13px; color: #475569; min-width: 150px;
}
.pd-container .dl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 14px; height: 32px;
    background: #2563eb; color: #fff; border: none;
    font-weight: 600; font-size: 13px; border-radius: 8px;
    cursor: pointer; -webkit-user-select: none; user-select: none;
    transition: opacity 0.15s;
}
.pd-container .dl-btn:hover { opacity: 0.9; }
.pd-container .dl-btn:active { opacity: 0.8; }

/* 长按复制 Toast */
#pd-toast-container {
    position: fixed; left: 50%; top: 2vh;
    transform: translateX(-50%); z-index: 99999; pointer-events: none;
}
.pd-toast {
    pointer-events: auto; display: inline-block; max-width: 90vw;
    background: rgba(15,23,42,0.95); color: #fff;
    padding: 10px 14px; border-radius: 10px;
    box-shadow: 0 6px 20px rgba(2,6,23,0.2);
    font-size: 14px; line-height: 1.3; word-break: break-word;
}