.club-lights-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Container gói cả source và beam */
.club-lights-wrapper .light-unit {
    position: absolute;
    transform-origin: center top;
    animation: beamFade 2s ease-in-out infinite;
}

/* Vòng tròn trắng – nguồn sáng */
.light-unit .source {
    width: 12px;
    height: 12px;
    background: rgb(245, 241, 245);
    border-radius: 50%;
    position: relative;
    top: -6px;
    left: -6px;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.7);
}

.light-unit .beam {
    position: absolute;
    top: 0px;
    left: -30px;
    width: 60px;
    height: 600px;

    background: linear-gradient(
        to bottom,
        rgba(213, 214, 244, 0.7),   /* light blue with some opacity */
        rgba(201,213,237, 0.3),     /* deep sky blue */
        rgba(0, 191, 255, 0)        /* fade out to transparent */
    );

    clip-path: polygon(
        calc(50% - 5px) 0%, 
        calc(50% + 5px) 0%, 
        100% 100%, 
        0% 100%
    );

    transform-origin: top center;
    pointer-events: none;
}

/* Tùy chọn thêm để căn chỉnh đèn chiếu trái/phải */
.club-lights-wrapper .fixed-light {
    transform-origin: top center;
}
.fixed-light .beam {
    height: 400px;
}

.blinking-light {
    animation: beamFade 3s ease-in-out infinite;
}

/* Animation đồng bộ */
@keyframes beamFade {
    0%, 100% { opacity: 0; }
    10% { opacity: 0.6; }
    60% { opacity: 0.3; }
}
.light-unit.star-light .source {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 60%, transparent 100%);
    position: relative;
    top: -7px;
    left: -7px;

    box-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    10px 0 30px rgba(255, 255, 255, 0.1),
    -10px 0 30px rgba(255, 255, 255, 0.1),
    0 10px 30px rgba(255, 255, 255, 0.1),
    0 -10px 30px rgba(255, 255, 255, 0.1),
    5px 5px 20px rgba(255, 255, 255, 0.05),
    -5px -5px 20px rgba(255, 255, 255, 0.05);

    animation: starGlow 1s ease-in-out infinite;
}

/*.light-unit.star-light .source {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    position: relative;
    top: -10px;
    left: -10px;

    box-shadow:
        0 0 30px 10px rgba(255, 255, 255, 0.8),
        0 0 60px 30px rgba(255, 255, 255, 0.4),
        0 0 100px 60px rgba(255, 255, 255, 0.2);

    animation: starBlink 3s infinite ease-in-out;
}*/
@keyframes starGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.9) rotate(0deg);
        filter: blur(1px);
    }
    30% {
        opacity: 0.8;
        transform: scale(1.15) rotate(45deg);
        filter: blur(0px);
    }
    60% {
        opacity: 0.5;
        transform: scale(1.05) rotate(90deg);
        filter: blur(1px);
    }
}


@keyframes starBlink {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    40% { opacity: 1; transform: scale(1.2); }
    70% { opacity: 0.6; transform: scale(1); }
}
