/* Responsive Player Container */
.yvm-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.yvm-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Main Player Meta */
.yvm-main-meta {
    margin-top: 12px;
}

.yvm-main-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #2c3e50;
    line-height: 1.4;
}

/* Video Grid Layout */
.yvm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.yvm-card {
    cursor: pointer;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.yvm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.yvm-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
}

.yvm-card-body {
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.yvm-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin: 0 0 6px 0;
}

/* Dim & Small Publish Date Label */
.yvm-date {
    font-size: 12px;
    color: #888888;
    margin: 0;
    font-weight: normal;
}

/* Lightbox Modal */
.yvm-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.yvm-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.yvm-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}