
.slw-widget {
  position: fixed;
  z-index: 2147483647;
  font-family: system-ui, sans-serif;
  pointer-events: none;
}
.slw-widget[data-theme="light"] {
  --bg: #ffffff; --text: #1a202c; --border: #e2e8f0; --primary: #1F3A5F; --muted: #718096;
}
.slw-widget[data-theme="dark"] {
  --bg: #1a202c; --text: #f7fafc; --border: #2d3748; --primary: #4299E1; --muted: #a0aec0;
}

.slw-widget.pos-bottom-right { bottom: 20px; right: 20px; }
.slw-widget.pos-bottom-left { bottom: 20px; left: 20px; }
.slw-widget.pos-top-right { top: 20px; right: 20px; }
.slw-widget.pos-top-left { top: 20px; left: 20px; }

.slw-toggle-btn {
  pointer-events: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  transition: transform 0.2s;
}
.slw-widget.pos-bottom-right .slw-toggle-btn { bottom: 0; right: 0; }
.slw-toggle-btn:hover { transform: scale(1.05); }

.slw-panel {
  pointer-events: auto;
  position: absolute;
  width: 320px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.slw-widget.pos-bottom-right .slw-panel { bottom: 70px; right: 0; }

.slw-widget.is-open .slw-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.slw-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.slw-title { margin: 0; font-size: 16px; font-weight: 600; }
.slw-close-btn { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; }

.slw-content { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.slw-form-group { display: flex; flex-direction: column; gap: 4px; }
.slw-form-group label { font-size: 12px; color: var(--muted); }
.slw-select { 
  padding: 8px; border-radius: 6px; border: 1px solid var(--border); 
  background: var(--bg); color: var(--text); 
}

.slw-video-container {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.slw-video { width: 100%; height: 100%; object-fit: cover; }

.slw-status-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
  background: rgba(0,0,0,0.7); color: white;
}
.status-available { border-left: 3px solid #48bb78; }
.status-fallback { border-left: 3px solid #ed8936; }
.status-unavailable { border-left: 3px solid #e53e3e; }

.slw-message {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text); font-size: 14px; text-align: center; padding: 16px;
}
