/* Video Manager Pro - Public Styles */

/* Video Container */
.vmp-video-container {
    position: relative;
    width: 100%;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Horizontal Video (16:9, 4:3, etc.) */
.video-player-horizontal {
    max-width: 1200px;
}

.video-player-horizontal .video-js {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Vertical Video (9:16, TikTok-style) */
.video-player-vertical {
    max-width: 500px;
}

.video-player-vertical .video-js {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
}

/* Square Video (1:1) */
.vmp-video-container[data-aspect-ratio="1:1"] .video-js {
    aspect-ratio: 1 / 1;
}

/* Video.js Player Customization */
.video-js {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.video-js .vjs-big-play-button {
    font-size: 3em;
    line-height: 1.5em;
    height: 1.5em;
    width: 1.5em;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0.06666em solid #fff;
    background-color: rgba(43, 51, 63, 0.7);
    transition: all 0.3s ease;
}

.video-js:hover .vjs-big-play-button,
.video-js .vjs-big-play-button:focus {
    background-color: rgba(43, 51, 63, 0.9);
    border-color: #fff;
}

/* Video Metadata Display */
.vmp-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.vmp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vmp-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #999;
}

/* Single Video Page */
.single-video_clip .entry-content {
    max-width: 1200px;
    margin: 0 auto;
}

.vmp-video-header {
    margin-bottom: 30px;
}

.vmp-video-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.vmp-video-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
}

/* Related Videos */
.vmp-related-videos {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.vmp-related-videos h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.vmp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Archive Page */
.post-type-archive-video_clip .site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vmp-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.vmp-archive-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.vmp-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Video Card */
.vmp-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.vmp-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.vmp-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vmp-video-card:hover .vmp-card-thumbnail img {
    transform: scale(1.05);
}

.vmp-card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vmp-video-card:hover .vmp-card-play-overlay {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.vmp-card-play-overlay::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #333;
    margin-left: 4px;
}

.vmp-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.vmp-card-orientation {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.vmp-card-orientation.horizontal {
    background: rgba(33, 150, 243, 0.9);
}

.vmp-card-orientation.vertical {
    background: rgba(156, 39, 176, 0.9);
}

.vmp-card-content {
    padding: 20px;
}

.vmp-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
}

.vmp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.vmp-card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vmp-card-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #999;
}

/* Pagination */
.vmp-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.vmp-pagination a,
.vmp-pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.vmp-pagination a:hover {
    background: #f5f5f5;
    border-color: #999;
}

.vmp-pagination .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Error Message */
.vmp-error {
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {

    .vmp-archive-grid,
    .vmp-related-grid {
        grid-template-columns: 1fr;
    }

    .video-player-vertical {
        max-width: 100%;
    }

    .vmp-video-header h1 {
        font-size: 24px;
    }

    .vmp-archive-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .vmp-video-meta {
        flex-direction: column;
        gap: 10px;
    }
}