/* AVG Gallery Styles 7.5.0 - Updated for Scene Tease (Pink) */

/* --- ROOT VARIABLES (Scoped) --- */
.avg-wrapper, .avg-full-width-breakout {
    --avg-bg-deep: #05010d;       /* Midnight Deep (Updated from Theme) */
    --avg-bg-card: rgba(16, 18, 46, 0.5); /* Glassy Blue */
    --avg-accent: #F0036A;        /* Scene Tease Pink */
    --avg-accent-glow: rgba(240, 3, 106, 0.6);
    --avg-text-main: #f5f3ff;
    --avg-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
    
    font-family: var(--avg-font);
    box-sizing: border-box;
}

.avg-wrapper *, .avg-full-width-breakout * { box-sizing: border-box; }

/* --- VIDEO PLAYER HERO STYLES --- */
.avg-video-hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.avg-ambient-spark {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--avg-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px var(--avg-accent);
    opacity: 0;
    animation: avg-float 15s linear infinite;
}

@keyframes avg-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.3; }
    100% { transform: translate(30px, -100px) scale(0.5); opacity: 0; }
}

/* Video Wrapper */
.avg-video-wrapper {
    width: 100%;
    max-width: 100%; 
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
}

.avg-player-frame {
    padding: 0.5rem;
    border-radius: 2rem;
    background: rgba(20, 3, 38, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: avg-pulse-pink 3s infinite;
}

@keyframes avg-pulse-pink {
    0%, 100% { box-shadow: 0 0 20px rgba(240, 3, 106, 0.2); }
    50% { box-shadow: 0 0 40px rgba(240, 3, 106, 0.5); }
}

.avg-player-inner {
    position: relative;
    width: 100%;
    border-radius: 1.8rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateZ(0); 
}

.avg-aspect-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000; 
    overflow: hidden; 
}

.avg-aspect-box video {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important; 
    height: 100% !important;
    object-fit: cover !important; /* Force fill */
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    display: block !important;
    max-width: none !important; 
    max-height: none !important;
}

.avg-player-cta {
    background: rgba(5, 1, 13, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 20;
}
@media (min-width: 768px) { .avg-player-cta { flex-direction: row; } }

.avg-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avg-ping-dot {
    position: relative;
    display: flex;
    height: 0.75rem;
    width: 0.75rem;
}
.avg-ping-dot span:first-child {
    position: absolute;
    display: inline-flex;
    height: 100%; width: 100%;
    border-radius: 50%;
    background-color: var(--avg-accent);
    opacity: 0.75;
    animation: avg-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes avg-ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}
.avg-ping-dot span:last-child {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    height: 0.75rem; width: 0.75rem;
    background-color: var(--avg-accent);
}

.avg-live-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
}

.avg-btn-gradient {
    background: linear-gradient(135deg, var(--avg-accent) 0%, #ff4b91 100%);
    color: white !important; 
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(240, 3, 106, 0.3);
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s;
}
.avg-btn-gradient:hover { transform: scale(1.05); color: #fff !important; }


/* --- SIMPLIFIED AFFILIATE CARD --- */
.avg-aff-card-simple {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 15px auto;
    
    background: rgba(0, 0, 0, 0.2); 
    border: 2px solid var(--avg-accent);
    border-radius: 12px; 
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
    
    padding: 0;
    
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.avg-aff-card-simple:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.4), 0 5px 20px rgba(240, 3, 106, 0.15);
}

.avg-aff-link-block {
    display: block;
    padding: 20px;
    text-decoration: none !important;
    color: inherit;
}

.avg-aff-line-1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.avg-highlight {
    color: var(--avg-accent);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avg-aff-line-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.avg-accept-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
}

.avg-payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.avg-pay-pill {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- FULL WIDTH BREAKOUT UTILITY --- */
.avg-full-width-breakout {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden; 
}

/* --- MASONRY GALLERY --- */
.avg-gallery-section {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 2rem; 
    margin-bottom: 3rem;
    max-width: 1920px; 
    margin-left: auto;
    margin-right: auto;
}

.avg-masonry-grid {
    column-count: 1;
    column-gap: 20px;
    width: 100%;
}
@media (min-width: 768px) { 
    .avg-masonry-grid { column-count: 2; } 
}

/* Gallery Card */
.avg-gallery-card {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    background: transparent; 
    backdrop-filter: blur(24px);
    overflow: hidden; 
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    line-height: 0;
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    transform: translateZ(0); 
}

.avg-gallery-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(240, 3, 106, 0.5);
    box-shadow: 0 0 0 2px var(--avg-accent), 0 0 20px rgba(240, 3, 106, 0.4), 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 5;
}

.avg-gallery-thumb {
    width: 100%;
    height: auto;
    display: block; 
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0; 
    transition: transform 0.5s ease;
}

.avg-gallery-card:hover .avg-gallery-thumb {
    transform: scale(1.03);
}

.avg-gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.1) 30%, transparent 60%);
    transform: translateX(-150%);
    transition: transform 0.6s;
    pointer-events: none;
    z-index: 10;
}
.avg-gallery-card:hover::after {
    transform: translateX(150%);
    transition: transform 0.7s ease-in-out;
}

.avg-card-overlay-info {
    position: absolute; 
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(16, 18, 46, 0.95) 0%, rgba(16, 18, 46, 0.6) 60%, transparent 100%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: left;
    line-height: 1.2;
    font-size: 1rem;
}

.avg-gallery-card:hover .avg-card-overlay-info {
    opacity: 1;
}

.avg-card-title {
    font-family: var(--avg-font);
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    margin: 0;
    display: block;
}