.vg-5ba1e8cf-container {
    width: 100%;
    box-sizing: border-box;
}

/* Search Bar styling */
.vg-5ba1e8cf-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.vg-5ba1e8cf-search-input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border: 1px solid #e1e8ed;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vg-5ba1e8cf-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.vg-5ba1e8cf-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    opacity: 0.6;
}

/* Filters styling */
.vg-5ba1e8cf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.vg-5ba1e8cf-filter-btn {
    background: #f3f4f6;
    border: none;
    outline: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #4b5563;
    transition: background-color 0.25s, color 0.25s;
}

.vg-5ba1e8cf-filter-btn:hover {
    background-color: #e5e7eb;
}

.vg-5ba1e8cf-filter-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Video Grid styling */
.vg-5ba1e8cf-grid {
    display: grid;
    grid-gap: 24px;
}

/* Video Card styling */
.vg-5ba1e8cf-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vg-5ba1e8cf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vg-5ba1e8cf-card-media {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000000;
    overflow: hidden;
}

.vg-5ba1e8cf-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vg-5ba1e8cf-card:hover .vg-5ba1e8cf-cover-img {
    transform: scale(1.05);
}

.vg-5ba1e8cf-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(59, 130, 246, 0.9);
    border: none;
    outline: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.vg-5ba1e8cf-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
    fill: #ffffff;
}

.vg-5ba1e8cf-play-btn:hover {
    background: #2563eb;
    transform: translate(-50%, -50%) scale(1.1);
}

.vg-5ba1e8cf-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.vg-5ba1e8cf-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vg-5ba1e8cf-video-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #1f2937;
}

.vg-5ba1e8cf-video-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Lightbox overlay styling */
.vg-5ba1e8cf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.admin-bar .vg-5ba1e8cf-lightbox {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .vg-5ba1e8cf-lightbox {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.vg-5ba1e8cf-lightbox.active {
    opacity: 1;
}

.vg-5ba1e8cf-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.vg-5ba1e8cf-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}

.vg-5ba1e8cf-lightbox-close:hover {
    opacity: 0.8;
}

.vg-5ba1e8cf-iframe, .vg-5ba1e8cf-video {
    width: 100%;
    height: 100%;
    border: none;
}

/* No results state */
.vg-5ba1e8cf-no-results {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 16px;
}
