/* ===== CAMERA MINI MAP ===== */ .sw-camera-minimap { position: relative; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.7); background: rgba(15, 23, 42, 0.96); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.3); overflow: hidden; display: flex; flex-direction: column; } .sw-camera-minimap-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #bfdbfe; background: rgba(15, 23, 42, 0.9); border-bottom: 1px solid rgba(148, 163, 184, 0.3); } .sw-camera-minimap-header i { color: #38bdf8; } .sw-camera-region-badge { margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.65rem; background: rgba(56, 189, 248, 0.18); border: 1px solid rgba(56, 189, 248, 0.5); color: #dbeafe; } .sw-camera-count { padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.65rem; background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.5); color: #86efac; } .sw-camera-minimap-container { flex: 1; min-height: 0; } .sw-camera-minimap-overlay { position: absolute; inset: 0; top: 36px; /* below header */ display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.85); color: #94a3b8; gap: 0.5rem; font-size: 0.85rem; } .sw-camera-loader i { margin-right: 0.4rem; } .sw-camera-error { color: #fca5a5; } .sw-camera-error i { color: #f87171; font-size: 1.2rem; } /* ===== CAMERA MARKERS ===== */ .sw-camera-marker { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.9)); border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; } .sw-camera-marker i { font-size: 14px; color: #fff; } .sw-camera-marker:hover { transform: scale(1.15); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.7); } .sw-camera-marker.is-selected { background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95)); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(34, 197, 94, 0.7); transform: scale(1.2); } /* ===== CAMERA CARD ===== */ .sw-camera-card { border-color: rgba(56, 189, 248, 0.35); } .sw-camera-card.selected { border-color: rgba(34, 197, 94, 0.7); box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); } .sw-camera-avatar { background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.25)); border-color: rgba(56, 189, 248, 0.6); } .sw-camera-avatar i { font-size: 16px; color: #38bdf8; } .sw-camera-badge { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; } .sw-camera-badge i { margin-right: 0.25rem; font-size: 0.6rem; } .sw-camera-thumbnail { height: 160px; background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)); } .sw-camera-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .sw-camera-thumb-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; height: 100%; color: #38bdf8; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; } .sw-camera-thumb-fallback i { font-size: 36px; opacity: 0.8; } .sw-camera-live-indicator { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.5rem; border-radius: 999px; background: rgba(239, 68, 68, 0.85); color: #fff; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; } .sw-camera-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: sw-camera-pulse 1.5s ease-in-out infinite; } @keyframes sw-camera-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ===== VIDEO MODAL ===== */ .sw-video-modal-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; padding: 1rem; } .sw-video-modal { position: relative; width: 100%; max-width: 900px; max-height: 90vh; background: rgba(15, 23, 42, 0.98); border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.6); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.3); overflow: hidden; display: flex; flex-direction: column; } .sw-video-modal-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: rgba(15, 23, 42, 0.95); border-bottom: 1px solid rgba(148, 163, 184, 0.3); } .sw-video-modal-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.25)); border: 1px solid rgba(56, 189, 248, 0.6); display: flex; align-items: center; justify-content: center; } .sw-video-modal-avatar i { font-size: 18px; color: #38bdf8; } .sw-video-modal-meta { flex: 1; min-width: 0; } .sw-video-modal-title { font-size: 1rem; font-weight: 800; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sw-video-modal-subtitle { font-size: 0.78rem; color: #94a3b8; } .sw-video-modal-live-badge { display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(239, 68, 68, 0.85); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; } .sw-video-modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(15, 23, 42, 0.8); color: #e5e7eb; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; } .sw-video-modal-close:hover { background: rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); } .sw-video-modal-content { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: auto; } .sw-video-player { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 aspect ratio */ background: #000; } .sw-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; } .sw-video-player-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #94a3b8; } .sw-video-player-fallback i { font-size: 48px; opacity: 0.6; } .sw-video-player-fallback a { padding: 0.5rem 1rem; border-radius: 999px; background: rgba(56, 189, 248, 0.2); border: 1px solid rgba(56, 189, 248, 0.5); color: #93c5fd; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background 0.15s ease; } .sw-video-player-fallback a:hover { background: rgba(56, 189, 248, 0.35); } .sw-video-modal-info { padding: 0.75rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.2); } .sw-video-modal-location { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.5rem; } .sw-video-modal-location i { color: #38bdf8; } .sw-video-modal-map { height: 180px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.3); } .sw-video-modal-actions { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid rgba(148, 163, 184, 0.2); flex-wrap: wrap; } /* ===== CAMERA LIST PANEL ===== */ .sw-camera-list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem; max-height: 400px; overflow-y: auto; } .sw-camera-list-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; font-size: 0.8rem; font-weight: 700; color: #bfdbfe; text-transform: uppercase; letter-spacing: 0.06em; } .sw-camera-list-header i { color: #38bdf8; } /* ===== RESPONSIVE ===== */ @media (max-width: 600px) { .sw-video-modal { max-width: 100%; max-height: 100vh; border-radius: 0; } .sw-video-modal-map { height: 140px; } .sw-camera-minimap { border-radius: 10px; } } /* ===== LIGHT THEME ===== */ body[data-theme="light"] .sw-camera-minimap { background: rgba(255, 255, 255, 0.98); border-color: rgba(148, 163, 184, 0.5); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); } body[data-theme="light"] .sw-camera-minimap-header { background: rgba(248, 250, 252, 0.95); color: #1e40af; } body[data-theme="light"] .sw-camera-minimap-overlay { background: rgba(255, 255, 255, 0.9); color: #475569; } body[data-theme="light"] .sw-video-modal { background: rgba(255, 255, 255, 0.98); } body[data-theme="light"] .sw-video-modal-header { background: rgba(248, 250, 252, 0.95); border-color: rgba(148, 163, 184, 0.3); } body[data-theme="light"] .sw-video-modal-title { color: #0f172a; } body[data-theme="light"] .sw-video-modal-subtitle { color: #64748b; } /* ===== BROADCAST MODAL ===== */ .sw-broadcast-modal { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(135deg, rgba(0, 20, 40, 0.96), rgba(0, 10, 30, 0.98)); display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(8px); animation: sw-fadeIn 0.3s ease; } @keyframes sw-fadeIn { from { opacity: 0; } to { opacity: 1; } } .sw-broadcast-container { position: relative; width: 100%; max-width: 1100px; max-height: 92vh; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.3); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.15); overflow: hidden; display: flex; flex-direction: column; animation: sw-slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } @keyframes sw-slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .sw-broadcast-header { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; background: rgba(15, 23, 42, 0.95); border-bottom: 1px solid rgba(56, 189, 248, 0.2); } .sw-broadcast-header-left { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; font-weight: 800; color: #f8fafc; text-transform: uppercase; letter-spacing: 0.08em; } .sw-broadcast-header-left i { color: #38bdf8; } .sw-broadcast-live-badge { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9)); color: #fff; font-size: 0.72rem; font-weight: 700; box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); } .sw-broadcast-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: sw-camera-pulse 1.2s ease-in-out infinite; } .sw-broadcast-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(15, 23, 42, 0.8); color: #e5e7eb; font-size: 1.2rem; cursor: pointer; transition: all 0.2s ease; } .sw-broadcast-close:hover { background: rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); transform: rotate(90deg); } .sw-broadcast-content { flex: 1; display: flex; min-height: 0; overflow: hidden; } .sw-broadcast-video-area { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sw-broadcast-main-video { position: relative; flex: 1; background: #000; min-height: 300px; } .sw-broadcast-video { width: 100%; height: 100%; object-fit: cover; } .sw-broadcast-video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #64748b; font-size: 0.95rem; } .sw-broadcast-video-placeholder i { font-size: 48px; opacity: 0.6; } /* PiP (Picture-in-Picture) */ .sw-broadcast-pip { position: absolute; bottom: 16px; right: 16px; width: 140px; height: 140px; border-radius: 12px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); cursor: move; transition: transform 0.15s ease; } .sw-broadcast-pip:hover { transform: scale(1.05); } .sw-broadcast-pip-video { width: 100%; height: 100%; object-fit: cover; } .sw-broadcast-pip-label { position: absolute; bottom: 4px; left: 4px; padding: 0.15rem 0.4rem; border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.65rem; font-weight: 600; } /* Camera label - shows which camera is active */ .sw-broadcast-camera-label { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.7rem; font-weight: 500; backdrop-filter: blur(4px); } .sw-broadcast-camera-label i { color: #4ade80; } /* No PiP indicator when single camera */ .sw-broadcast-no-pip { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border-radius: 8px; background: rgba(0, 0, 0, 0.5); color: rgba(255, 255, 255, 0.7); font-size: 0.7rem; backdrop-filter: blur(4px); } .sw-broadcast-no-pip i { opacity: 0.7; } /* Participants strip */ .sw-broadcast-participants-strip { position: absolute; bottom: 16px; left: 16px; right: 180px; display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem; } .sw-broadcast-participant { position: relative; width: 100px; height: 100px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); } .sw-broadcast-participant-video { width: 100%; height: 100%; object-fit: cover; } .sw-broadcast-participant-name { position: absolute; bottom: 4px; left: 4px; right: 4px; padding: 0.15rem 0.3rem; border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.6rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sw-broadcast-kick-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(239, 68, 68, 0.9); border: none; color: #fff; font-size: 0.6rem; cursor: pointer; opacity: 0; transition: opacity 0.15s ease; } .sw-broadcast-participant:hover .sw-broadcast-kick-btn { opacity: 1; } /* Camera controls overlay */ .sw-broadcast-controls-overlay { position: absolute; top: 16px; right: 16px; display: flex; gap: 0.5rem; z-index: 10; } .sw-broadcast-control-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.1rem; cursor: pointer; transition: all 0.15s ease; backdrop-filter: blur(4px); } .sw-broadcast-control-btn:hover { background: rgba(56, 189, 248, 0.4); transform: scale(1.1); } .sw-broadcast-control-btn.is-muted { background: rgba(239, 68, 68, 0.7); } .sw-broadcast-control-btn.is-disabled, .sw-broadcast-control-btn:disabled { opacity: 0.4; cursor: not-allowed; } .sw-broadcast-control-btn.is-disabled:hover, .sw-broadcast-control-btn:disabled:hover { transform: none; background: rgba(0, 0, 0, 0.6); } /* Side panel */ .sw-broadcast-side { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; padding: 1rem; background: rgba(15, 23, 42, 0.6); border-left: 1px solid rgba(56, 189, 248, 0.15); overflow-y: auto; } .sw-broadcast-form { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; } .sw-broadcast-label { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; } .sw-broadcast-input { padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(15, 23, 42, 0.8); color: #f8fafc; font-size: 0.95rem; } .sw-broadcast-input:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 12px rgba(56, 189, 248, 0.2); } .sw-broadcast-hint { font-size: 0.72rem; color: #64748b; } .sw-broadcast-category-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; } .sw-broadcast-field { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; } .sw-broadcast-select { padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(15, 23, 42, 0.8); color: #f8fafc; font-size: 0.85rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2rem; } .sw-broadcast-select:focus { outline: none; border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); } .sw-broadcast-select option { background: #1e293b; color: #f8fafc; } .sw-broadcast-live-info h3 { font-size: 1rem; font-weight: 800; color: #f8fafc; margin-bottom: 0.5rem; } .sw-broadcast-stats { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; color: #94a3b8; } .sw-broadcast-stats i { margin-right: 0.4rem; color: #38bdf8; } /* Join requests */ .sw-broadcast-requests { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(56, 189, 248, 0.15); } .sw-broadcast-requests h4 { font-size: 0.78rem; font-weight: 700; color: #fbbf24; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; } .sw-broadcast-request { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem; margin-bottom: 0.35rem; border-radius: 8px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); } .sw-broadcast-request-name { font-size: 0.85rem; color: #f8fafc; font-weight: 600; } .sw-broadcast-request-actions { display: flex; gap: 0.35rem; } .sw-broadcast-request-btn { width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; font-size: 0.7rem; transition: transform 0.15s ease; } .sw-broadcast-request-btn:hover { transform: scale(1.15); } .sw-broadcast-request-btn.approve { background: rgba(34, 197, 94, 0.9); color: #fff; } .sw-broadcast-request-btn.deny { background: rgba(239, 68, 68, 0.9); color: #fff; } .sw-broadcast-error { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; border-radius: 8px; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; font-size: 0.8rem; margin-top: 0.5rem; } .sw-broadcast-actions { margin-top: auto; padding-top: 1rem; } .sw-broadcast-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.2rem; border-radius: 12px; border: none; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; } .sw-broadcast-btn.primary { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4); } .sw-broadcast-btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5); } .sw-broadcast-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; } .sw-broadcast-btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4); } .sw-broadcast-btn.danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); } .sw-broadcast-btn.secondary { background: rgba(148, 163, 184, 0.2); border: 1px solid rgba(148, 163, 184, 0.4); color: #e5e7eb; } .sw-broadcast-btn.secondary:hover { background: rgba(148, 163, 184, 0.3); } /* End confirm overlay */ .sw-broadcast-confirm-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 10; backdrop-filter: blur(4px); } .sw-broadcast-confirm { padding: 1.5rem; border-radius: 16px; background: rgba(15, 23, 42, 0.98); border: 1px solid rgba(239, 68, 68, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); max-width: 340px; text-align: center; } .sw-broadcast-confirm h3 { font-size: 1.2rem; color: #f8fafc; margin-bottom: 0.5rem; } .sw-broadcast-confirm p { font-size: 0.85rem; color: #94a3b8; margin-bottom: 1rem; } .sw-broadcast-checkbox { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: 0.85rem; color: #e5e7eb; margin-bottom: 1rem; cursor: pointer; } .sw-broadcast-checkbox input { width: 18px; height: 18px; accent-color: #22c55e; } .sw-broadcast-confirm-actions { display: flex; gap: 0.75rem; justify-content: center; } .sw-broadcast-confirm-actions .sw-broadcast-btn { width: auto; padding: 0.6rem 1.2rem; font-size: 0.85rem; } /* ===== VIEWER MODAL ===== */ .sw-viewer-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: sw-fadeIn 0.3s ease; } .sw-viewer-container { position: relative; width: 100%; max-width: 1100px; max-height: 92vh; background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.25); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6); overflow: hidden; display: flex; flex-direction: column; animation: sw-slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } .sw-viewer-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: rgba(15, 23, 42, 0.95); border-bottom: 1px solid rgba(56, 189, 248, 0.15); } .sw-viewer-header-left { display: flex; align-items: center; gap: 0.75rem; } .sw-viewer-live-badge { display: flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(239, 68, 68, 0.9); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; } .sw-viewer-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: sw-camera-pulse 1.2s ease-in-out infinite; } .sw-viewer-title { font-size: 0.95rem; font-weight: 700; color: #f8fafc; } .sw-viewer-header-right { display: flex; align-items: center; gap: 0.75rem; } .sw-viewer-count { font-size: 0.8rem; color: #94a3b8; } .sw-viewer-count i { margin-right: 0.3rem; } .sw-viewer-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(15, 23, 42, 0.8); color: #e5e7eb; font-size: 1.1rem; cursor: pointer; transition: all 0.2s ease; } .sw-viewer-close:hover { background: rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); } .sw-viewer-content { flex: 1; display: flex; min-height: 0; overflow: hidden; } .sw-viewer-video-area { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sw-viewer-main-video { position: relative; flex: 1; background: #000; min-height: 300px; } .sw-viewer-video { width: 100%; height: 100%; object-fit: contain; } .sw-viewer-video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #64748b; font-size: 0.95rem; } .sw-viewer-video-placeholder i { font-size: 48px; opacity: 0.6; } .sw-viewer-video-placeholder.error { color: #fca5a5; } .sw-viewer-video-placeholder.error i { color: #ef4444; } .sw-viewer-pip, .sw-viewer-self-pip { position: absolute; bottom: 16px; right: 16px; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); } .sw-viewer-self-pip { right: 150px; border-color: rgba(34, 197, 94, 0.9); } .sw-viewer-pip-video { width: 100%; height: 100%; object-fit: cover; } .sw-viewer-pip-label { position: absolute; bottom: 4px; left: 4px; padding: 0.12rem 0.35rem; border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.6rem; font-weight: 600; } .sw-viewer-participants-strip { position: absolute; bottom: 16px; left: 16px; right: 290px; display: flex; gap: 0.5rem; overflow-x: auto; } .sw-viewer-participant { position: relative; width: 90px; height: 90px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); } .sw-viewer-participant-video { width: 100%; height: 100%; object-fit: cover; } .sw-viewer-participant-name { position: absolute; bottom: 3px; left: 3px; right: 3px; padding: 0.1rem 0.25rem; border-radius: 3px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.55rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Side panel */ .sw-viewer-side { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; padding: 1rem; background: rgba(15, 23, 42, 0.5); border-left: 1px solid rgba(56, 189, 248, 0.1); overflow-y: auto; } .sw-viewer-info { margin-bottom: 1rem; } .sw-viewer-host { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #f8fafc; font-weight: 600; margin-bottom: 0.4rem; } .sw-viewer-host i { color: #38bdf8; } .sw-viewer-description { font-size: 0.8rem; color: #94a3b8; line-height: 1.4; } .sw-viewer-map { height: 140px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(56, 189, 248, 0.2); margin-bottom: 1rem; } .sw-live-marker { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9)); border: 3px solid #fff; box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5); display: flex; align-items: center; justify-content: center; animation: sw-markerPulse 2s ease-in-out infinite; } @keyframes sw-markerPulse { 0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5); } 50% { transform: scale(1.1); box-shadow: 0 4px 24px rgba(239, 68, 68, 0.7); } } .sw-live-marker i { font-size: 14px; color: #fff; } /* Join section */ .sw-viewer-join-section { margin-bottom: 1rem; } .sw-viewer-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 10px; border: none; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; } .sw-viewer-btn.primary { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff; box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3); } .sw-viewer-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4); } .sw-viewer-btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; } .sw-viewer-join-pending { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.75rem; border-radius: 10px; background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.4); font-size: 0.8rem; color: #fbbf24; } .sw-viewer-btn-small { padding: 0.35rem 0.7rem; border-radius: 6px; border: none; background: rgba(148, 163, 184, 0.3); color: #e5e7eb; font-size: 0.72rem; cursor: pointer; } .sw-viewer-join-denied { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem; border-radius: 8px; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; font-size: 0.8rem; } .sw-viewer-participant-controls { margin-bottom: 1rem; } .sw-viewer-actions { margin-top: auto; } .sw-viewer-action-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.1); color: #93c5fd; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; } .sw-viewer-action-btn:hover { background: rgba(56, 189, 248, 0.2); border-color: rgba(56, 189, 248, 0.5); } /* ===== RESPONSIVE ===== */ @media (max-width: 768px) { .sw-broadcast-modal, .sw-viewer-modal { padding: 0; } .sw-broadcast-container, .sw-viewer-container { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; } .sw-broadcast-content, .sw-viewer-content { flex-direction: column; } .sw-broadcast-video-area { flex: 0 0 auto; height: 45vh; min-height: 250px; } .sw-broadcast-main-video { min-height: 100%; } .sw-broadcast-side, .sw-viewer-side { width: 100%; flex: 1; border-left: none; border-top: 1px solid rgba(56, 189, 248, 0.15); min-height: 0; overflow-y: auto; } .sw-broadcast-pip { width: 80px; height: 80px; bottom: 10px; right: 10px; } .sw-broadcast-controls-overlay { top: 10px; right: 10px; bottom: auto; left: auto; z-index: 10; } .sw-broadcast-control-btn { width: 40px; height: 40px; font-size: 1rem; } .sw-broadcast-camera-label { top: 8px; left: 8px; font-size: 0.65rem; padding: 0.2rem 0.5rem; } .sw-broadcast-no-pip { bottom: 10px; right: 10px; font-size: 0.65rem; } .sw-broadcast-participants-strip { right: 100px; left: 10px; } .sw-broadcast-participant { width: 70px; height: 70px; } .sw-broadcast-category-row { flex-direction: column; gap: 0.5rem; } .sw-broadcast-form { gap: 0.4rem; } .sw-broadcast-input, .sw-broadcast-select { padding: 0.55rem 0.7rem; font-size: 0.9rem; } .sw-viewer-pip, .sw-viewer-self-pip { width: 70px; height: 70px; } .sw-viewer-participants-strip { right: 160px; } }