/* ================================================
   TEAM GLAM — Video Grid / Reels Widget
   ================================================ */

.tg-vg-wrap {
    width: 100%;
    background-color: #ffffff;
    padding: 60px 40px;
    box-sizing: border-box;
}

.tg-vg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

/* Aspect Ratios */
.tg-vg-ratio--9-16 .tg-vg-card {
    aspect-ratio: 9 / 16;
}

.tg-vg-ratio--3-4 .tg-vg-card {
    aspect-ratio: 3 / 4;
}

.tg-vg-ratio--1-1 .tg-vg-card {
    aspect-ratio: 1 / 1;
}

/* Video Card Base */
.tg-vg-card {
    position: relative;
    overflow: hidden;
    background-color: #000000;
    cursor: pointer;
    border-radius: 0;
    user-select: none;
    -webkit-user-select: none;
}

.tg-vg-video,
.tg-vg-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.tg-vg-iframe-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tg-vg-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

.tg-vg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #888888;
    font-family: sans-serif;
    font-size: 12px;
}

/* Text Overlay (Title & Eyebrow) */
.tg-vg-text-overlay {
    position: absolute;
    top: 32px;
    left: 20px;
    right: 20px;
    z-index: 4;
    text-align: center;
    color: #ffffff;
    pointer-events: none;
}

.tg-vg-eyebrow {
    display: block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.tg-vg-title {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Center Circular Play Button Overlay */
.tg-vg-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.12);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.tg-vg-card.is-playing .tg-vg-play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tg-vg-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.tg-vg-play-btn svg {
    margin-left: 2px;
}

.tg-vg-card:hover .tg-vg-play-btn {
    transform: scale(1.12);
    background: rgba(0, 0, 0, 0.7);
}

/* Custom Bottom Controls Bar */
.tg-vg-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
}

.tg-vg-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.tg-vg-btn-play,
.tg-vg-btn-mute {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-vg-progress-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.tg-vg-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.tg-vg-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-vg-time {
    font-size: 10px;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .tg-vg-wrap {
        padding: 48px 24px;
    }
    .tg-vg-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .tg-vg-wrap {
        padding: 40px 16px;
    }
    .tg-vg-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}
