/* 播客播放器样式 */

/* 主播放器样式 */
.podcast-player {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 30px 0;
}

.podcast-player-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.podcast-cover {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 0px;
    margin-top: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.podcast-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-info {
    flex: 1;
}

.podcast-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.podcast-author {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

/* 波形播放器 */
#waveform {
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

#wave-timeline {
    height: 20px;
    margin-bottom: 15px;
}

/* 播放器控制区 */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.control-group {
    display: flex;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #3B8686;
    font-size: 16px;
}

.control-btn:hover {
    background: rgba(59, 134, 134, 0.1);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-btn {
    background: #3B8686;
    color: white;
    width: 48px;
    height: 48px;
    margin: 0 10px;
}

.play-btn:hover {
    background: #2a6363;
    transform: scale(1.05);
}

.play-btn .fa-pause {
    display: none;
}

.play-btn.playing .fa-play {
    display: none;
}

.play-btn.playing .fa-pause {
    display: inline;
}

/* 时间显示 */
.time-display {
    font-family: monospace;
    font-size: 14px;
    color: #666;
    margin: 0 15px;
}

/* 音量控制 */
.volume-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.volume-control {
    width: 80px;
    margin-left: 5px;
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3B8686;
    cursor: pointer;
}

.volume-control::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3B8686;
    cursor: pointer;
    border: none;
}

/* 播放速度选择器 */
.speed-selector {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* 加载指示器 */
#loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 粘性播放器样式 */
.sticky-player {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 20px;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.sticky-player.visible {
    transform: translateY(-80px);
}

.sticky-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.sticky-player-info {
    display: flex;
    align-items: center;
    width: 30%;
}

.sticky-player-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.sticky-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-player-text {
    overflow: hidden;
}

.sticky-player-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-player-author {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-player-controls {
    display: flex;
    align-items: center;
}

.sticky-player-time {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    margin: 0 15px;
    white-space: nowrap;
}

.sticky-player-volume, .sticky-player-speed {
    display: flex;
    align-items: center;
}

.sticky-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f0f0f0;
    cursor: pointer;
}

.sticky-progress-bar {
    height: 100%;
    background: #3B8686;
    width: 0;
    transition: width 0.1s linear;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .podcast-player-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .podcast-cover {
        margin-bottom: 15px;
    }
    
    .player-controls {
        flex-wrap: wrap;
    }
    
    .control-group {
        margin-bottom: 10px;
    }
    
    .sticky-player-container {
        flex-wrap: wrap;
    }
    
    .sticky-player-info {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .sticky-player-controls {
        width: 100%;
        justify-content: center;
    }
    
    .sticky-player-time, .sticky-player-volume, .sticky-player-speed {
        display: none;
    }
    
    .sticky-player.visible {
        transform: translateY(0px);
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sticky-player.playing .sticky-player-cover {
    animation: pulse 2s infinite;
}
