/* Masonry Grid */
.vvgp-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
    padding: 24px 0 0;
}
.mason-tall { grid-row: span 2; }
.mason-wide { grid-column: span 2; }

/* Masonry cards */
.vvgp-mason-card {
    position: relative; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    opacity: 0; transform: translateY(18px);
    animation: vvgReveal 0.6s ease forwards;
    transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
    height: 100%;
}
.vvgp-mason-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 22px 50px rgba(0,0,0,0.25);
    z-index: 2;
}

/* Dots indicator */
.vvgp-mason-dots {
    position: absolute; top: 12px; right: 12px;
    display: flex; gap: 4px; z-index: 3;
}
.vvgp-dot {
    width: 5px; height: 5px; border-radius: 3px;
    background: rgba(255,255,255,0.35);
    transition: all 0.4s ease;
}
.vvgp-dot.active { width: 16px; background: #fff; }

/* Large Shorts cards */
.vvgp-short-card { width: 220px; height: 391px; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0;}
.vv-short-card { width: 220px; height: 391px; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0;}

/* Image fits */
.vvgp-mason-img, .vvgp-short-img, .vv-short-img, .vvgp-card-img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.vv-shorts-wrap {
    display: flex;
    align-items: center;
}

.vv-shorts-scroll, .vvgp-shorts-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}

.vv-shorts-scroll::-webkit-scrollbar, .vvgp-shorts-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Tag Badges */
.vvgp-tag, .vv-short-badge, .vvgp-short-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    z-index: 2;
}

.vvgp-tag.tag-latest { background: #e74c3c; }
.vvgp-tag.tag-breaking { background: #f39c12; }
.vvgp-tag.tag-business { background: #3498db; }
.vvgp-tag.tag-health { background: #27ae60; }
.vvgp-tag.tag-politics { background: #9b59b6; }
.vvgp-tag.tag-sports { background: #e67e22; }
.vvgp-tag.tag-tech { background: #34495e; }
.vvgp-tag.tag-local { background: #1abc9c; }

.vv-short-badge, .vvgp-short-badge {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.vvgp-short-play, .vv-short-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: rgba(255, 0, 0, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvgp-short-info, .vv-short-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
    color: white;
    z-index: 2;
}

.vvgp-short-info h4, .vv-short-info h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: #ffffff !important;
}

/* Overlays */
.vvgp-mason-overlay, .vvgp-card-overlay, .vvgp-short-overlay, .vv-short-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    transition: background 0.3s ease;
    z-index: 1;
}

.vvgp-mason-info, .vvgp-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.vvgp-img-count {
    color: white;
    font-size: 12px;
}

.vvgp-mason-info h3, .vvgp-card-info h3 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.vvgp-header {
    margin-bottom: 24px;
}

.vvgp-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vvgp-title {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.vvgp-subtitle {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}

.vvgp-shorts-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vvgp-yt-icon {
    background: #FF0000;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvgp-shorts-title {
    margin: 0;
    font-size: 22px;
}

.vvgp-shorts-from {
    color: #888;
    font-size: 14px;
}

.vvgp-shorts-link {
    margin-left: auto;
    color: #FF0000;
    font-weight: bold;
    text-decoration: none;
}

.vvgp-filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vvgp-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vvgp-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.vvgp-chip.active {
    background: #C0211B;
    color: white;
    border-color: #C0211B;
}

.vvgp-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.vvgp-news-card {
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.vv-shorts-nav, .vvgp-shorts-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.vv-shorts-nav.prev, .vvgp-shorts-nav.prev { left: -20px; }
.vv-shorts-nav.next, .vvgp-shorts-nav.next { right: -20px; }

@keyframes vvgReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vvPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.vv-pulse {
    animation: vvPulse 2s infinite ease-in-out;
}

@media(max-width:599px) {
    .vvgp-masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .mason-wide { grid-column: span 1; }
    .vvgp-short-card, .vv-short-card { width: 140px; height: 250px; }
}
