/* Import YouTube font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.yvg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}
#yvg-no-results {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    font-weight: 500;
}

/* Main responsive player */
.yvg-player-wrapper {
    position: relative;
    width: 100%;
    height: auto;       /* ✅ no reserved space */
    margin-bottom: 20px;
    background: none;   /* ✅ remove black background */
}
.yvg-player-wrapper iframe {
    width: 100%;
    height: 300px;      /* ✅ compact fixed height */
    border-radius: 10px;
    display: block;
}

/* Floating mini-player */
#yvg-floating-player {
    position: fixed;
    bottom: 550px;   /* ✅ lift it higher (try 150px or more) */
    right: 20px;
    width: 320px;
    height: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: #000;
    z-index: 9999;
    border-radius: 10px;
}
#yvg-floating-player.hidden {
    display: none;
}
#yvg-floating-player iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
}


/* Gallery grid */
.yvg-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Card */
.yvg-card {
    background: #fff;
    transition: background 0.2s ease;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    padding-top: 8px; padding-left: 8px; padding-right: 8px;
}
.yvg-card:hover {
    background: #f1f1f1; /* only background change */
}
.yvg-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Info block for consistent alignment */
.yvg-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px;
}
.yvg-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px;
    color: #111;
    line-height: 1.3;
}
.yvg-meta {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.3;
    /* Optional: clamp meta height to keep cards even */
    /* max-height: 2.6em; overflow: hidden; */
}
.yvg-date {
    font-size: 12px;
    color: #999;
    margin-top: auto; /* pins date to bottom of info block */
}

.yvg-thumb.hidden {
    display: none;
}

/* Show More button */
#yvg-show-more {
    display: block;
    margin: 20px auto 0;
    padding: 12px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}
#yvg-show-more:hover {
    background: #b80000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .yvg-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    #yvg-floating-player {
        width: 340px;
        height: 191px; /* 16:9 */
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 600px) {
    .yvg-gallery {
        grid-template-columns: 1fr;
    }
    #yvg-floating-player {
        display: none !important; /* completely hide on mobile */
    }

    /* Mobile floating player: full-width bottom bar */
    #yvg-floating-player {
        width: 100%;
        height: 200px;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
      
    }
}
