/* MCPOTAR Video History & Progress - Styles */

.mvvh-history-container,
.mvvh-watch-later-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.mvvh-history-container h2,
.mvvh-watch-later-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* History/Watch Later Grid */
.mvvh-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mvvh-video-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mvvh-video-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.mvvh-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #f0f0f0;
    overflow: hidden;
}

.mvvh-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mvvh-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #C8860A;
    width: 0%;
    transition: width 0.3s ease;
}

.mvvh-video-info {
    padding: 12px;
}

.mvvh-video-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mvvh-video-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.mvvh-progress-text {
    font-size: 11px;
    color: #C8860A;
    font-weight: 600;
    margin-bottom: 6px;
}

.mvvh-video-actions {
    display: flex;
    gap: 6px;
}

.mvvh-video-actions button {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mvvh-btn-watch {
    background-color: #C8860A;
    color: white;
}

.mvvh-btn-watch:hover {
    background-color: #a86f08;
}

.mvvh-btn-remove {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.mvvh-btn-remove:hover {
    background-color: #e0e0e0;
}

/* Empty State */
.mvvh-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.mvvh-empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mvvh-empty-state-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Loading */
.mvvh-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #C8860A;
    border-radius: 50%;
    animation: mvvh-spin 1s linear infinite;
}

@keyframes mvvh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar on Video Card */
.mvvh-video-card.has-progress .mvvh-progress-bar {
    background: linear-gradient(90deg, #C8860A 0%, #ffc107 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .mvvh-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .mvvh-history-container,
    .mvvh-watch-later-container {
        padding: 10px;
    }

    .mvvh-history-container h2,
    .mvvh-watch-later-container h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .mvvh-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mvvh-video-actions {
        flex-direction: column;
    }

    .mvvh-video-actions button {
        width: 100%;
    }
}
