/* FluidSphere51 - Main Styles */

.fs51-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    background: var(--fs51-bg, #020b18);
    border-radius: 0;
}

.fs51-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    cursor: crosshair;
    touch-action: none;
}

/* Loading Spinner */
.fs51-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.7);
    font-family: sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.6s ease;
}
.fs51-loading.fs51-loaded {
    opacity: 0;
    pointer-events: none;
}

.fs51-loading-sphere {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: rgba(77,200,255,0.8);
    animation: fs51-spin 1s linear infinite;
}

@keyframes fs51-spin {
    to { transform: rotate(360deg); }
}

/* Gyroscope button */
.fs51-gyro-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(77,200,255,0.15);
    border: 1px solid rgba(77,200,255,0.5);
    color: #4dc8ff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    z-index: 20;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.fs51-gyro-btn:hover {
    background: rgba(77,200,255,0.3);
}

/* Placeholder */
.fs51-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #0d1b2a;
    color: rgba(255,255,255,0.4);
    font-family: sans-serif;
    font-size: 14px;
    border: 1px dashed rgba(255,255,255,0.15);
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.fs51-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fs51-lbFadeIn 0.35s ease;
}

@keyframes fs51-lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fs51-lb-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
}

.fs51-lb-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: fs51-imgPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

@keyframes fs51-imgPop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Close Button */
.fs51-lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}
.fs51-lb-close:hover { transform: scale(1.2); color: #4dc8ff; }

.fs51-lb-close--circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255,255,255,0.25) !important;
}
.fs51-lb-close--circle span { line-height: 0; }

.fs51-lb-close--square {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255,255,255,0.25) !important;
}

.fs51-lb-close--minimal {
    font-size: 36px;
    opacity: 0.7;
}
.fs51-lb-close--minimal:hover { opacity: 1; }

/* Nav Arrows */
.fs51-lb-prev,
.fs51-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    width: 56px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.fs51-lb-prev { left: -70px; }
.fs51-lb-next { right: -70px; }
.fs51-lb-prev:hover,
.fs51-lb-next:hover {
    background: rgba(77,200,255,0.2);
    border-color: rgba(77,200,255,0.5);
    color: #4dc8ff;
}

@media (max-width: 900px) {
    .fs51-lb-prev { left: 8px; }
    .fs51-lb-next { right: 8px; }
    .fs51-lb-inner { width: 100vw; height: 80vh; }
}

/* Autoplay */
.fs51-lb-autoplay {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.fs51-lb-autoplay-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.fs51-lb-autoplay-btn:hover { background: rgba(77,200,255,0.25); }

.fs51-lb-progress {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}
.fs51-lb-progress-bar {
    height: 100%;
    width: 0%;
    background: #4dc8ff;
    border-radius: 2px;
    transition: width linear;
}

/* ─────────────────────────────────────────
   RESPONSIVE HEIGHTS — set via JS
───────────────────────────────────────── */
