.vid-gallery-page {
    background: #12101a;
    color: #ece8f4;
    min-height: 60vh;
}
.vid-gallery-hero {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 28px; margin-bottom: 36px; padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.vid-gallery-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: #c084fc; margin-bottom: 10px;
}
.vid-gallery-hero h2 {
    font-size: clamp(28px, 4vw, 42px); color: #fff; margin: 0 0 10px; line-height: 1.2;
}
.vid-gallery-hero h2 span { color: #c084fc; }
.vid-gallery-hero p { color: #a89bb8; max-width: 560px; margin: 0; line-height: 1.7; font-size: 15px; }
.vid-gallery-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.vid-gallery-stat {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 16px 22px; min-width: 110px; text-align: center;
}
.vid-gallery-stat strong { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.vid-gallery-stat span { font-size: 12px; color: #9a8fad; margin-top: 6px; display: block; }

.vid-gallery-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 16px; margin-bottom: 28px;
}
.vid-gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-gallery-filter {
    border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
    color: #c9bfd8; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .25s ease;
}
.vid-gallery-filter em { font-style: normal; opacity: .65; margin-left: 4px; font-size: 12px; }
.vid-gallery-filter:hover { border-color: rgba(192,132,252,.5); color: #fff; }
.vid-gallery-filter.active {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(147,51,234,.4);
}
.vid-gallery-view-hint { font-size: 13px; color: #8a7d9a; }
.vid-gallery-view-hint i { margin-right: 6px; color: #c084fc; }

.vid-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}
.vid-gallery-item {
    animation: vidGalleryFadeIn .5s ease backwards;
    animation-delay: var(--delay, 0s);
}
.vid-gallery-item.is-hidden { display: none; }
.vid-gallery-item.is-featured {
    grid-column: span 2;
    grid-row: span 2;
}
@keyframes vidGalleryFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.vid-gallery-trigger {
    display: block; width: 100%; height: 100%; padding: 0; border: 0;
    background: transparent; cursor: pointer; text-align: left; color: inherit;
}
.vid-gallery-frame {
    position: relative; height: 100%; border-radius: 16px; overflow: hidden;
    background: #1e1828; border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.vid-gallery-frame img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .35s ease;
}
.vid-gallery-item:hover .vid-gallery-frame img {
    transform: scale(1.06);
    filter: brightness(.75);
}
.vid-gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,6,18,.92) 0%, rgba(10,6,18,.15) 50%, rgba(10,6,18,.25) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; opacity: 1; transition: background .35s ease;
}
.vid-gallery-item:hover .vid-gallery-overlay {
    background: linear-gradient(to top, rgba(10,6,18,.95) 0%, rgba(80,40,120,.25) 100%);
}
.vid-gallery-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(147,51,234,.9); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; padding-left: 4px;
    box-shadow: 0 8px 32px rgba(147,51,234,.5);
    transition: transform .3s ease, background .3s ease;
}
.vid-gallery-item:hover .vid-gallery-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #a855f7;
}
.vid-gallery-duration {
    position: absolute; top: 14px; right: 14px;
    background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px; letter-spacing: .3px;
}
.vid-gallery-cat {
    display: inline-block; align-self: flex-start;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    background: rgba(192,132,252,.25); color: #e9d5ff; padding: 4px 10px; border-radius: 999px;
    margin-bottom: 8px;
}
.vid-gallery-meta h3 {
    font-size: 17px; color: #fff; margin: 0 0 6px; line-height: 1.35;
}
.vid-gallery-meta p { font-size: 13px; color: #b8adc8; margin: 0; line-height: 1.5; }

.vid-gallery-empty {
    grid-column: 1 / -1; text-align: center; padding: 70px 20px;
    background: rgba(255,255,255,.03); border-radius: 16px;
    border: 1px dashed rgba(255,255,255,.1); color: #8a7d9a;
}
.vid-gallery-empty i { font-size: 48px; color: #5b4d70; margin-bottom: 16px; display: block; }
.vid-gallery-empty h4 { color: #c9bfd8; margin-bottom: 8px; }

/* Modal player */
.vid-gallery-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vid-gallery-modal[hidden] { display: none !important; }
.vid-gallery-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(8,4,14,.88); backdrop-filter: blur(6px);
}
.vid-gallery-modal-dialog {
    position: relative; width: 100%; max-width: 960px;
    background: #1a1424; border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 32px 80px rgba(0,0,0,.55);
    animation: vidModalIn .35s ease;
}
@keyframes vidModalIn {
    from { opacity: 0; transform: scale(.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.vid-gallery-modal-close {
    position: absolute; top: 10px; right: 12px; z-index: 5;
    border: 0; background: rgba(0,0,0,.5); color: #fff;
    width: 40px; height: 40px; border-radius: 50%; font-size: 24px;
    cursor: pointer; line-height: 1;
}
.vid-gallery-modal-close:hover { background: #9333ea; }
.vid-gallery-modal-player {
    position: relative; width: 100%; padding-top: 56.25%;
    background: #000;
}
.vid-gallery-modal-player iframe,
.vid-gallery-modal-player video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.vid-gallery-modal-info { padding: 20px 24px 24px; }
.vid-gallery-modal-info h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.vid-gallery-modal-info p { color: #a89bb8; margin: 0; font-size: 14px; line-height: 1.6; }

@media (max-width: 991px) {
    .vid-gallery-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .vid-gallery-item.is-featured { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 575px) {
    .vid-gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .vid-gallery-item.is-featured { grid-column: span 1; }
    .vid-gallery-hero { flex-direction: column; align-items: flex-start; }
    .vid-gallery-stats { width: 100%; }
    .vid-gallery-stat { flex: 1; min-width: 0; }
    .vid-gallery-toolbar { flex-direction: column; align-items: stretch; }
    .vid-gallery-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .vid-gallery-filter { white-space: nowrap; flex-shrink: 0; }
}
