/* 外部音频播放器 - 黑白灰简约风格 */
.external-audio-player {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 控制区域 */
.eap-control-section {
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eap-current-info {
    flex: 1;
}

.eap-track-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.eap-control-buttons {
    display: flex;
    gap: 8px;
}

.eap-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.eap-btn:hover {
    background: #f5f5f5;
}

.eap-play-btn {
    width: 44px;
    height: 44px;
    background: #333;
    color: white;
    border-color: #333;
}

.eap-play-btn:hover {
    background: #555;
}

/* 进度条区域 */
.eap-progress-section {
    padding: 15px 20px;
    background: white;
}

.eap-progress-bar {
    width: 100%;
    margin: 8px 0;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.eap-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
}

.eap-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 播放列表区域 */
.eap-playlist-section {
    background: white;
}

.eap-playlist-header {
    padding: 12px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.eap-track-count {
    font-size: 12px;
    color: #666;
    background: #e9e9e9;
    padding: 2px 8px;
    border-radius: 10px;
}

.eap-track-list {
    max-height: 300px;
    overflow-y: auto;
}

.eap-track-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.eap-track-item:hover {
    background: #f8f8f8;
}

.eap-track-item.eap-active {
    background: #f0f0f0;
    font-weight: 600;
}

.eap-track-number {
    width: 24px;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-right: 12px;
}

.eap-track-title {
    flex: 1;
    margin: 0;
}

.eap-track-duration {
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* 滚动条 */
.eap-track-list::-webkit-scrollbar {
    width: 6px;
}

.eap-track-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.eap-track-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* 隐藏音频元素 */
.eap-audio-element {
    display: none;
}

/* 简单播放器 */
.simple-audio-player {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.simple-audio-player p {
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 14px;
}

/* 错误提示 */
.eap-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px 15px;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .eap-control-section {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .eap-current-info {
        text-align: center;
    }
    
    .eap-track-item {
        padding: 10px 15px;
    }
}