/* ── Stream embed ────────────────────────────────────── */
.ls-stream-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid #e2e8f0;
}
.ls-stream-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ls-no-stream {
  font-size: 0.85rem;
  color: #64748b;
}
.ls-no-stream a { color: #3b82f6; text-decoration: none; }
.ls-no-stream a:hover { text-decoration: underline; }

/* ── Section ─────────────────────────────────────────── */
.ls-section { margin-bottom: 32px; }

.ls-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

/* ── Card ────────────────────────────────────────────── */
.ls-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
}

/* ── Field ───────────────────────────────────────────── */
.ls-field { display: flex; flex-direction: column; gap: 6px; }

.ls-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ls-row { display: flex; gap: 8px; }

.ls-select {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
}
.ls-select:focus { border-color: #93c5fd; }

/* ── URL row ─────────────────────────────────────────── */
.ls-url-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ls-url-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: monospace;
  color: #334155;
  background: #f8fafc;
  outline: none;
  min-width: 0;
}

.ls-btn-copy,
.ls-btn-preview {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  transition: background .15s;
}
.ls-btn-copy:hover,
.ls-btn-preview:hover { background: #f1f5f9; }

/* ── Position grid ───────────────────────────────────── */
.ls-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(2, 36px);
  gap: 5px;
}

.ls-pos-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 1rem;
  cursor: pointer;
  transition: background .1s, border-color .1s;
  user-select: none;
}
.ls-pos-cell:hover  { background: #f1f5f9; border-color: #cbd5e1; }
.ls-pos-cell.active { background: #dbeafe; border-color: #93c5fd; }

/* ── Appearance ──────────────────────────────────────── */
.ls-appearance {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ls-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-color-label {
  font-size: 0.82rem;
  color: #475569;
  width: 80px;
  flex-shrink: 0;
}

input[type="color"] {
  width: 36px;
  height: 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: #f8fafc;
  flex-shrink: 0;
}

input[type="range"] {
  flex: 1;
  accent-color: #3b82f6;
  max-width: 160px;
}

.ls-opacity-val {
  font-size: 0.8rem;
  color: #64748b;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Info block ──────────────────────────────────────── */
.ls-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ls-info-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.ls-info-steps {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ls-info-steps li {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

.ls-info-states {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.ls-state-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.ls-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ls-dot.live    { background: #22c55e; }
.ls-dot.paused  { background: #f59e0b; }
.ls-dot.neutral { background: #94a3b8; }

.ls-info-tip {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}
