/* ==========================================================================
   Solo Residence Live Camera — Round Pulsing Icon & Pop-up Modal
   ========================================================================== */

.solo-camera-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.solo-camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solo-camera-title {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.solo-camera-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    color: #f87171 !important;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    line-height: 1;
}

.solo-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
    animation: solo-pulse 1.5s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes solo-pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.solo-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.solo-live-video,
.solo-live-video-lazy {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    pointer-events: auto;
}

.solo-live-video::-webkit-media-controls,
.solo-live-video-lazy::-webkit-media-controls,
.solo-live-video::-webkit-media-controls-enclosure,
.solo-live-video-lazy::-webkit-media-controls-enclosure,
.solo-live-video::-webkit-media-controls-panel,
.solo-live-video-lazy::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none !important;
}

.solo-player-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 22, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.solo-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: solo-spin 0.85s linear infinite;
}

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

/* ==========================================================================
   Floating Pure Round Live Camera Icon (#solo-live-fab)
   ========================================================================== */

#solo-live-fab.solo-live-fab {
    position: fixed;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    z-index: 99998;
    width: 62px;
    height: 62px;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 25%, #1e293b 0%, #0f172a 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(239, 68, 68, 0.22) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                border-color 0.25s ease !important;
}

#solo-live-fab.solo-live-fab.solo-pos-left {
    left: 24px;
}

#solo-live-fab.solo-live-fab.solo-pos-right {
    right: 24px;
}

#solo-live-fab.solo-live-fab:hover,
#solo-live-fab.solo-live-fab:focus {
    background: radial-gradient(circle at 30% 25%, #263449 0%, #0f172a 100%) !important;
    border-color: rgba(239, 68, 68, 0.65) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(239, 68, 68, 0.35) !important;
}

#solo-live-fab.solo-live-fab:active {
    transform: scale(0.96);
}

.solo-fab-pulse-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid rgba(239, 68, 68, 0.7);
    animation: solo-ring-ripple 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

.solo-fab-pulse-ring.solo-ring-delay {
    animation-delay: 1.2s;
}

@keyframes solo-ring-ripple {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
    }
    75% {
        transform: scale(1.36);
        opacity: 0;
    }
    100% {
        transform: scale(1.36);
        opacity: 0;
    }
}

.solo-fab-svg {
    width: 32px;
    height: 32px;
    display: block;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.solo-svg-rec-dot {
    animation: solo-pulse 1.3s infinite ease-in-out;
}

.solo-svg-wave {
    animation: solo-wave-fade 1.8s infinite ease-in-out;
}

.solo-wave-2 {
    animation-delay: 0.35s;
}

@keyframes solo-wave-fade {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

.solo-fab-mini-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #0f172a !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    color: #f8fafc !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.solo-fab-mini-badge .solo-pulse-dot {
    width: 5px;
    height: 5px;
}

/* ==========================================================================
   Pop-up Modal (#solo-live-modal)
   ========================================================================== */

.solo-live-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.solo-live-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.solo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 19, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.solo-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    background: #0b111e;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.solo-live-modal.is-open .solo-modal-dialog {
    transform: translateY(0) scale(1);
}

.solo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solo-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.solo-modal-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #f8fafc !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.solo-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.solo-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.solo-modal-btn svg {
    width: 17px;
    height: 17px;
}

.solo-modal-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.solo-modal-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    max-height: 78vh;
}

.solo-modal-dialog:fullscreen,
.solo-modal-dialog:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #000000 !important;
}

.solo-modal-dialog:fullscreen .solo-modal-body,
.solo-modal-dialog:-webkit-full-screen .solo-modal-body {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: calc(100vh - 58px) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.solo-modal-dialog:fullscreen .solo-live-video-lazy,
.solo-modal-dialog:-webkit-full-screen .solo-live-video-lazy,
.solo-live-video-lazy:fullscreen,
.solo-live-video-lazy:-webkit-full-screen {
    object-fit: contain !important;
}

/* ==========================================================================
   Responsive Design (Mobile Phones & Tablets)
   ========================================================================== */

@media (max-width: 768px) {
    #solo-live-fab.solo-live-fab {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
    }

    #solo-live-fab.solo-live-fab.solo-pos-left {
        left: 16px;
    }

    #solo-live-fab.solo-live-fab.solo-pos-right {
        right: 16px;
    }

    .solo-fab-svg {
        width: 28px;
        height: 28px;
    }

    .solo-live-modal {
        padding: 12px;
    }

    .solo-modal-dialog {
        border-radius: 14px;
    }

    .solo-modal-header {
        padding: 11px 14px;
    }

    .solo-modal-title {
        font-size: 14px !important;
    }

    .solo-modal-btn {
        width: 34px;
        height: 34px;
    }
}
