/* bo.css - ArtPlayer 版本 */
.video-player-container {
    margin: 20px 0;
    position: relative;
    container-type: inline-size;
}

.player-wrapper {
    position: relative;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.player-ratio-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    aspect-ratio: 16 / 9;
}

.player-ratio-container .artplayer-app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}

/* ArtPlayer 自定义样式 */
.artplayer-app {
    --art-theme: #b7daff;
}

.art-controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)) !important;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    border-radius: 8px;
}

.loading-gif {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.info-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1001;
    display: none;
    min-width: 220px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.info-panel.active {
    display: block;
}

.info-content {
    line-height: 1.5;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
}

.info-label {
    font-weight: 600;
    margin-right: 15px;
    color: #ccc;
    flex-shrink: 0;
}

.info-value {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-align: right;
    flex: 1;
}

.status-success {
    color: #28a745 !important;
}

.status-warning {
    color: #ffc107 !important;
}

.status-info {
    color: #17a2b8 !important;
}

.episode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding: 0 5px;
}

.episode-btn {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    cursor: pointer;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-btn.active {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.episode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .video-player-container {
        margin: 15px 0;
    }
    
    .episode-buttons {
        gap: 6px;
        margin-top: 12px;
    }
    
    .episode-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 4px;
        max-width: 150px;
    }
    
    .info-panel {
        font-size: 11px;
        min-width: 200px;
        padding: 10px 12px;
    }
    
    .info-value {
        font-size: 10px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-gif {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
}

/* 确保 ArtPlayer 视频正确显示 */
.artplayer-app video {
    object-fit: contain !important;
}

.player-ratio-container {
    overflow: hidden;
}

.loading-overlay {
    z-index: 1000 !important;
}

/* 信息按钮样式 */
.art-controls .art-controls-right .art-control[data-name="videoInfo"] {
    margin: 0 5px;
}

.art-control[data-name="videoInfo"]:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}