/* 播放器容器样式 */
.feijipan-player-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* 视频容器 - 用于保持宽高比 */
.feijipan-video-wrapper {
    overflow: hidden;
}

/* 播放列表控制按钮样式 */
.feijipan-playlist-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.feijipan-control-btn {
    padding: 8px 16px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.feijipan-control-btn:hover {
    background-color: #006ba1;
}

.prev-btn {
    background-color: #6c757d;
}

.prev-btn:hover {
    background-color: #5a6268;
}

.next-btn {
    background-color: #28a745;
}

.next-btn:hover {
    background-color: #218838;
}

/* 加载状态样式 */
.feijipan-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    z-index: 10;
}

.feijipan-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.feijipan-loading-text {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示样式 */
.feijipan-error {
    color: #dc3232;
    padding: 10px;
    background-color: #fef0f0;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    margin: 10px 0;
}

/* 视频播放器样式 - 修改为填满容器 */
#feijipan-main-video, #feijipan-backup-video {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover; /* 使视频填满容器，可能会裁剪部分画面 */
    background-color: #000;
}

/* 移动端和特殊浏览器样式适配 */
@media (max-width: 768px) {
    .feijipan-player-container {
        padding: 10px;
        margin: 10px 0;
    }
    
    #feijipan-main-video, #feijipan-backup-video {
        height: 100% !important;
        /* 移除max-height限制，让视频填满容器 */
    }
    
    .feijipan-playlist-title {
        font-size: 13px;
    }
    
    .feijipan-playlist-size {
        display: none; /* 移动端隐藏文件大小，节省空间 */
    }
    
    .feijipan-control-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 播放列表容器样式 */
.feijipan-playlist-container {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

/* 播放列表标题栏样式 */
.feijipan-playlist-header {
    cursor: pointer;
    padding: 8px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 播放列表展开/折叠按钮 */
.feijipan-playlist-toggle {
    font-size: 14px;
    font-weight: normal;
}

/* 播放列表列表样式 */
.feijipan-playlist {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* 播放列表展开状态 */
.feijipan-playlist.visible {
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.5s ease-in;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* 播放列表项样式 */
.feijipan-playlist-item {
    padding: 10px 15px;
    margin-bottom: 0;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.feijipan-playlist-item:last-child {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

/* 播放列表项hover状态 */
.feijipan-playlist-item:hover {
    background-color: #f0f7ff;
}

/* 播放列表项选中状态 */
.feijipan-playlist-item.active {
    background-color: #e6f0ff;
    border-left: 3px solid #007cba;
}

/* 播放列表项编号 */
.feijipan-playlist-number {
    width: 24px;
    height: 24px;
    background-color: #007cba;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 12px;
}

/* 播放列表项标题 */
.feijipan-playlist-title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* 播放列表项文件大小 */
.feijipan-playlist-size {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    white-space: nowrap;
}
    