.dpk-mine-style-player {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

.dpk-video-container {
    width: 100%;
    background: #000;
    position: relative;
    aspect-ratio: 16 / 9;
}

#dpk-main-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

/* 封面层样式 */
.dpk-video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
}

.dpk-video-poster.hidden {
    display: none;
}

.dpk-poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* 封面播放按钮 - 修复定位问题 */
.dpk-poster-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 21;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.dpk-poster-play-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 中心控制栏样式 */
.dpk-center-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dpk-center-controls.active {
    opacity: 1;
    pointer-events: auto;
}

.dpk-control-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.dpk-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    transform: scale(1.1);
}

.dpk-control-btn:active {
    transform: scale(0.95);
}

.dpk-control-btn svg {
    width: 24px;
    height: 24px;
}

.dpk-play-pause-btn svg {
    width: 28px;
    height: 28px;
}

.dpk-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.dpk-control-btn:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    transform: none;
}

/* 选项卡样式 */
.dpk-tabs-container {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dpk-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.dpk-tab:hover {
    background: #e8e8e8;
    color: #333;
}

.dpk-tab.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    background: #fff;
}

/* 视频列表样式 */
.dpk-videos-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px;
    gap: 15px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior-x: contain;
}

.dpk-video-item {
    flex: 0 0 auto;
    width: 160px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.dpk-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dpk-video-item.active {
    border-color: #3498db;
}

.dpk-item-cover {
    position: relative;
    width: 100%;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: #000;
}

.dpk-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dpk-video-item:hover .dpk-item-cover img {
    transform: scale(1.05);
}

/* 移除列表中的播放图标 */
.dpk-play-icon {
    display: none;
}

.dpk-item-info {
    padding: 10px 8px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpk-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dpk-mine-style-player {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .dpk-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .dpk-videos-list {
        padding: 12px 10px;
        gap: 12px;
    }

    .dpk-video-item {
        width: 140px;
    }

    .dpk-item-cover {
        height: 80px;
    }

    .dpk-item-info {
        padding: 8px 6px;
    }

    .dpk-item-title {
        font-size: 12px;
    }

    .dpk-center-controls {
        gap: 30px;
    }

    .dpk-control-btn {
        width: 50px;
        height: 50px;
    }

    .dpk-control-btn svg {
        width: 20px;
        height: 20px;
    }

    .dpk-play-pause-btn svg {
        width: 24px;
        height: 24px;
    }

    .dpk-poster-play-btn svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .dpk-video-item {
        width: 120px;
    }

    .dpk-item-cover {
        height: 70px;
    }

    .dpk-videos-list {
        padding: 10px 8px;
        gap: 10px;
    }

    .dpk-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .dpk-center-controls {
        gap: 20px;
    }

    .dpk-control-btn {
        width: 45px;
        height: 45px;
    }

    .dpk-poster-play-btn svg {
        width: 50px;
        height: 50px;
    }
}

/* 滚动条样式 */
.dpk-videos-list::-webkit-scrollbar {
    height: 6px;
}

.dpk-videos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dpk-videos-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dpk-videos-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dpk-videos-list {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 微信和iOS专用修复 */
@supports (-webkit-touch-callout: none) {
    .dpk-mine-style-player {
        transform: none !important;
    }
    
    .dpk-tab {
        cursor: pointer;
    }
    
    .dpk-video-item {
        cursor: pointer;
    }
}
/* ===== 电脑端专用修复 ===== */
@media (min-width: 769px) {
    /* 修复右侧异常图标：确保封面播放按钮正确定位 */
    .dpk-video-container {
        position: relative;
        overflow: hidden;
    }
    
    .dpk-poster-play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 21;
    }
    
    /* 隐藏可能重复显示的播放图标 */
    .dpk-video-poster .dpk-poster-play-btn {
        display: block !important;
    }
    
    /* 确保控制栏在电脑端正常显示 */
    .dpk-center-controls {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .dpk-center-controls.active {
        opacity: 1;
    }
    
    /* 电脑端视频列表项悬停效果 */
    .dpk-video-item {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dpk-video-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    /* 确保选项卡在电脑端可点击 */
    .dpk-tab {
        cursor: pointer;
        user-select: none;
    }
}
/* ===== 电脑端专用修复 ===== */
@media (min-width: 769px) {
    /* 修复右侧异常图标 */
    .dpk-video-container {
        position: relative;
        overflow: hidden;
    }
    
    /* 确保只有一个播放按钮显示 */
    .dpk-poster-play-btn {
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 21;
    }
    
    /* 隐藏控制栏中的播放按钮，只显示在封面 */
    .dpk-center-controls .dpk-play-pause-btn {
        display: none !important;
    }
    
    /* 电脑端视频列表项样式 */
    .dpk-video-item {
        cursor: pointer;
    }
    
    .dpk-tab {
        cursor: pointer;
    }
}