/* Frontend Styles */
.vpm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vpm-group {
    margin-bottom: 40px;
}

.vpm-group-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.vpm-playlists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.vpm-playlist {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.vpm-playlist:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vpm-playlist-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.vpm-playlist-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vpm-playlist:hover .vpm-playlist-thumbnail img {
    transform: scale(1.05);
}

.vpm-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vpm-playlist:hover .vpm-play-overlay {
    opacity: 1;
}

.vpm-play-overlay .dashicons {
    color: #fff;
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.vpm-playlist-title {
    margin: 0;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Video Player Page */
.vpm-player-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.vpm-sidebar {
    flex: 0 0 350px;
}

.vpm-main-content {
    flex: 1;
}

.vpm-video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vpm-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vpm-video-details {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vpm-video-details h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.vpm-video-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.vpm-video-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.vpm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vpm-tag {
    background: #f0f0f1;
    color: #1d2327;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.vpm-transcript {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.vpm-transcript h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.vpm-transcript-content {
    line-height: 1.6;
}

.vpm-video-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.vpm-video-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.vpm-video-item:last-child {
    border-bottom: none;
}

.vpm-video-item:hover {
    background-color: #f9f9f9;
}

.vpm-video-item.active {
    background-color: #f0f6ff;
}

.vpm-video-item-thumbnail {
    flex: 0 0 120px;
    height: 68px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.vpm-video-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vpm-video-item-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
}

.vpm-video-item-info {
    flex: 1;
    min-width: 0;
}

.vpm-video-item-title {
    font-weight: 500;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vpm-video-item-meta {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .vpm-player-container {
        flex-direction: column;
    }
    
    .vpm-sidebar {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .vpm-playlists {
        grid-template-columns: 1fr;
    }
    
    .vpm-video-item {
        padding: 10px;
    }
    
    .vpm-video-item-thumbnail {
        flex: 0 0 100px;
        height: 56px;
    }
}